diff options
Diffstat (limited to 'lisp/emacs-lisp/chart.el')
-rw-r--r-- | lisp/emacs-lisp/chart.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el index 1ec7fda4014..0f0e4046167 100644 --- a/lisp/emacs-lisp/chart.el +++ b/lisp/emacs-lisp/chart.el @@ -134,8 +134,7 @@ Useful if new Emacs is used on B&W display.") (defun chart-new-buffer (obj) "Create a new buffer NAME in which the chart OBJ is displayed. Returns the newly created buffer." - (save-excursion - (set-buffer (get-buffer-create (format "*%s*" (oref obj title)))) + (with-current-buffer (get-buffer-create (format "*%s*" (oref obj title))) (chart-mode) (setq chart-local-object obj) (current-buffer))) |