Mercurial > emacs
diff lisp/org/org-mobile.el @ 105865:131bccfc4f5d
* 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.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 05 Nov 2009 21:00:31 +0000 |
parents | 2a8a3a69c1c7 |
children | b7d8222914b4 |
line wrap: on
line diff
--- a/lisp/org/org-mobile.el Thu Nov 05 20:54:34 2009 +0000 +++ b/lisp/org/org-mobile.el Thu Nov 05 21:00:31 2009 +0000 @@ -391,8 +391,7 @@ 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