Now, I can hide *spurious* buffers on Gentoo Linux

This commit is contained in:
Gerard Vermeulen 2022-09-01 15:47:33 +02:00
parent e094edfeef
commit 45d59c8da2
1 changed files with 15 additions and 17 deletions

View File

@ -4683,34 +4683,32 @@ using =emms= with =elfeed=. Listing [[lst:configure-emms]] configures =emms=.
,(no-littering-expand-etc-file-name "emms/streams.emms")))))
#+end_src
*** Taming spurious buffers :noexport:
*** Hiding spurious buffers
:PROPERTIES:
:CUSTOM_ID: sec:taming-spurious-buffers
:HEADER-ARGS: :tangle no
:CUSTOM_ID: sec:hiding-spurious-buffers
:END:
When =emms-player-mpd= opens a connection to =mpd=, =mpd= responds with a
message of the form "OK MPD 0.23.5". Neither =emms-player-mpd= nor its support
library =tq= anticipate the "OK MPD 0.23.5" message, but send such messages to a
new intrusive buffer called =*spurious*=. Listing [[lst:taming-spurious-buffers]]
makes those =*spurious*= buffers less intrusive. See:
When =emms-player-mpd= opens a connection to =mpd= and =mpd= is not running,
=mpd= responds with a message of the form "OK MPD 0.23.5". Neither
=emms-player-mpd= nor its support library =tq= anticipate the "OK MPD 0.23.5"
message, but send such messages to a new intrusive buffer called =*spurious*=.
Listing [[lst:hiding-spurious-buffers]] hides those =*spurious*= buffers, but you
can always switch to them. See:
1. [[info:elisp#The Zen of Buffer Display][The Zen of Buffer Display (info)]]
2. [[https://e17i.github.io/articles-emacs-display-1/][Configuring the Emacs display system]]
3. [[https://www.masteringemacs.org/article/demystifying-emacs-window-manager][Demystifying Emacs's Window Manager]]
for technical information.
#+caption[Taming =*spurious*= buffers]:
#+caption: Taming =*spurious*= buffers.
#+name: lst:taming-spurious-buffers
#+caption[Hiding =*spurious*= buffers]:
#+caption: Hiding =*spurious*= buffers.
#+name: lst:hiding-spurious-buffers
#+begin_src emacs-lisp
(with-eval-after-load 'emms-player-mpd
;; https://stackoverflow.com/a/47587185 answers:
;; How to avoid pop-up of *Async Shell Command* buffers in Emacs?
;; Avoid popping up of `*spurious*' buffers:
;; https://www.masteringemacs.org/article/demystifying-emacs-window-manager
;; Hide `*spurious*' buffers, but you can always switch to them:
(add-to-list 'display-buffer-alist
'("\\*spurious\\*.*"
(display-buffer-at-bottom)
(window-height . fit-window-to-buffer))))
'("\\*spurious\\*.*" display-buffer-no-window
(allow-no-window . t))))
#+end_src
*** [[https://www.musicpd.org/][Music Player Daemon]] configuration