summaryrefslogtreecommitdiff
path: root/lisp/org/org-plot.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-plot.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-plot.el')
-rw-r--r--lisp/org/org-plot.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org/org-plot.el b/lisp/org/org-plot.el
index 04894c0e75f..81605f79c38 100644
--- a/lisp/org/org-plot.el
+++ b/lisp/org/org-plot.el
@@ -279,8 +279,8 @@ line directly before or after the table."
(save-window-excursion
(delete-other-windows)
(when (get-buffer "*gnuplot*") ;; reset *gnuplot* if it already running
- (save-excursion
- (set-buffer "*gnuplot*") (goto-char (point-max))
+ (with-current-buffer "*gnuplot*"
+ (goto-char (point-max))
(gnuplot-delchar-or-maybe-eof nil)))
(org-plot/goto-nearest-table)
;; set default options