Skip to content

Commit

Permalink
Stop flickering (issues pft#26 and pft#30)
Browse files Browse the repository at this point in the history
with-current-buffer nows how to operate on a buffer without switching
to it, or needing to save the current window configuration.
  • Loading branch information
jaor committed Nov 21, 2019
1 parent 640de94 commit 940b9c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mingus.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 940b9c8

Please sign in to comment.