diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-11-05 21:00:31 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-11-05 21:00:31 +0000 |
commit | 81ad75af15f169655ba4c8eada78782367cabbf0 (patch) | |
tree | 2d3cbd9cfac65ce61d80cfdbca0772c55588100d /lisp/org/org-docbook.el | |
parent | 148623016fb5ff868bae887ac52b71a90b470bb2 (diff) | |
download | emacs-81ad75af15f169655ba4c8eada78782367cabbf0.tar.gz |
* org.el (org-version, org-get-refile-targets, org-refile)
(org-store-log-note, org-diary-to-ical-string)
(org-speedbar-set-agenda-restriction):
* org-publish.el (org-publish-find-title):
* org-plot.el (org-plot/gnuplot):
* org-mouse.el (org-mouse-do-remotely):
* org-mobile.el (org-mobile-move-capture):
* org-mac-message.el (org-mac-message-insert-flagged):
* org-latex.el (org-replace-region-by-latex):
* org-docbook.el (org-replace-region-by-docbook):
* org-clock.el (org-clock-out, org-clock-cancel):
* org-bibtex.el (org-execute-file-search-in-bibtex):
Use with-current-buffer.
Diffstat (limited to 'lisp/org/org-docbook.el')
-rw-r--r-- | lisp/org/org-docbook.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org/org-docbook.el b/lisp/org/org-docbook.el index 37d13cfe1d6..11f37999190 100644 --- a/lisp/org/org-docbook.el +++ b/lisp/org/org-docbook.el @@ -285,8 +285,7 @@ then use this command to convert it." beg end t 'string)) (setq reg (buffer-substring beg end) buf (get-buffer-create "*Org tmp*")) - (save-excursion - (set-buffer buf) + (with-current-buffer buf (erase-buffer) (insert reg) (org-mode) |