From 940b9c81d3aa074fd058368fd1f94dc82830a5da Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 21 Nov 2019 02:02:44 +0000 Subject: [PATCH] Stop flickering (issues #26 and #30) with-current-buffer nows how to operate on a buffer without switching to it, or needing to save the current window configuration. --- mingus.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingus.el b/mingus.el index ac2db8a..365d47b 100644 --- a/mingus.el +++ b/mingus.el @@ -2205,9 +2205,8 @@ Argument OVERRIDE defines whether to treat the situation as new." (condition-case nil (let ((pos (or pos (getf (mpd-get-status mpd-inter-conn) 'song)))) (and pos - (save-excursion - (save-window-excursion - (mingus-switch-to-playlist) + (with-current-buffer "*Mingus*" + (save-excursion (let (buffer-read-only) (mingus-goto-line (1+ pos)) (mingus-move-NP-mark