summaryrefslogtreecommitdiff
path: root/lisp/org/org-mobile.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-11-05 21:00:31 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-11-05 21:00:31 +0000
commit81ad75af15f169655ba4c8eada78782367cabbf0 (patch)
tree2d3cbd9cfac65ce61d80cfdbca0772c55588100d /lisp/org/org-mobile.el
parent148623016fb5ff868bae887ac52b71a90b470bb2 (diff)
downloademacs-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-mobile.el')
-rw-r--r--lisp/org/org-mobile.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org/org-mobile.el b/lisp/org/org-mobile.el
index 0204b5c2300..65d063db7d1 100644
--- a/lisp/org/org-mobile.el
+++ b/lisp/org/org-mobile.el
@@ -391,8 +391,7 @@ If nothing new has beed added, return nil."
org-mobile-directory)))
(insertion-point (make-marker))
not-empty content)
- (save-excursion
- (set-buffer capture-buffer)
+ (with-current-buffer capture-buffer
(setq content (buffer-string))
(setq not-empty (string-match "\\S-" content))
(when not-empty