aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-tag-editor.el
diff options
context:
space:
mode:
authorYoni Rabkin <yonirabkin@member.fsf.org>2014-04-22 14:17:02 -0400
committerYoni Rabkin <yonirabkin@member.fsf.org>2014-04-22 14:17:02 -0400
commita6baeec15ee331c90907414f0e21592460765ed6 (patch)
treed9fac17d6c5e036d274515cdbae7c5b569c9c413 /lisp/emms-tag-editor.el
parent5f026f84a9024305382eff2ee933088ad29088c3 (diff)
* lisp/emms-tag-editor.el: Use newer paradigm.
Diffstat (limited to 'lisp/emms-tag-editor.el')
-rw-r--r--lisp/emms-tag-editor.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emms-tag-editor.el b/lisp/emms-tag-editor.el
index 7ce4533..6ed23f2 100644
--- a/lisp/emms-tag-editor.el
+++ b/lisp/emms-tag-editor.el
@@ -226,8 +226,7 @@ This string is suitable for inserting into the tags buffer."
(defsubst emms-tag-editor-erase-buffer (&optional buf)
"Erase the buffer BUF, and ensure that it exists."
(let ((inhibit-read-only t))
- (save-excursion
- (set-buffer (get-buffer-create buf))
+ (with-current-buffer (get-buffer-create buf)
(erase-buffer))))
(defsubst emms-tag-editor-insert-track (track)
@@ -439,8 +438,7 @@ Available tags are:
(mapc (lambda (tag)
(princ (format "\t%s - %S\n" (cdr tag) (car tag))))
emms-tag-editor-tags)
- (save-excursion
- (set-buffer standard-output)
+ (with-current-buffer standard-output
(help-mode)))))
map))
current-prefix-arg))