Re: Playlists getting deleted
Yoni Rabkin <[email protected]> Thu, 16 Jul 2026 13:56:07 -0400
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
George <[email protected]> writes: > Hi Yoni, > > Can you tell me how the playlists are restored when Emacs is opened? Or t= he > names of the functions involved? > It seems to me that the playlist buffers ARE the playlists i.e the > playlists aren't generated by a reading from a file but from restoring the > buffers. > > Killing a playlist buffer seems to delete the playlist? Doesn't this resu= lt > in playlists being occasionally unintentionally deleted? > > Thanks, > George In Emms, playlists are just buffers with text in them. Those lines of text have overlays which carry additional information. Apologies; I didn't realize this wasn't clear from your previous emails. If you are in an Emms buffer with tracks, you can see the information in the overlay by putting point over any track and evaluating: (get-text-property (point) 'emms-track) > On Sat, Jul 11, 2026 at 10:33=E2=80=AFPM George <[email protected]> w= rote: > >> Thanks! >> >> On Mon, 6 Jul 2026 at 03:41, Yoni Rabkin <[email protected]> wrote: >> >>> George <[email protected]> writes: >>> >>> > Hi there, >>> > >>> > Sometimes (I'm not quite sure when exactly) I open Emacs to find all = of >>> my >>> > Emms playlists have disappeared... >>> >>> That's the tricky part; the "sometimes". Without a way to recreate the >>> bug it's hard. >>> >>> I'll install the setup and check to see if I can observe it in the wild. >>> >>> > I assume the playlist buffers must've been killed before Emacs was >>> killed. >>> > >>> > I've mapped "C-x k" to 'bury-buffer' so I don't accidently delete a >>> > playlist when killing its buffer. >>> > >>> > Do you have an idea why this might be happening? >>> > >>> > Here's my config: >>> > >>> > (use-package emms >>> > :ensure t >>> > :init >>> > (emms-all) >>> > (add-hook 'emms-metaplaylist-mode-hook #'hl-line-mode) >>> > :hook >>> > (after-init . emms-history-load) >>> > :bind >>> > ("<f7>" . emms-playlist-mode-go) >>> > ("C-c e b" . emms-browser) >>> > ("<f6>" . emms-metaplaylist-mode-go) >>> > >>> > (:map emms-playlist-mode-map >>> > ("C-x k" . bury-buffer) >>> > ("DEL" . emms-metaplaylist-mode-go) >>> > ("M-<up>" . emms-playlist-mode-shift-track-up) >>> > ("M-<down>" . emms-playlist-mode-shift-track-down)) >>> > >>> > :config >>> > (require 'emms-history) >>> > (emms-mode-line-mode -1) >>> > >>> > (setq emms-player-list '(emms-player-mpv) >>> > emms-info-functions '(emms-info-native)) >>> > (setq-default emms-single-track t) >>> > >>> > (setq-default >>> > >>> > emms-source-playlist-default-format 'm3u >>> > emms-player-mpv-parameters '("--quiet" "--really-quiet" >>> > "--no-audio-display" "--force-window=3Dno" "--fullscreen" >>> > ;"--config-dir=3D~/.emacs.d/" >>> > "--save-position-on-quit"))) >>> > >>> > Thanks for your help! >>> > George >>> >>> -- >>> "Cut your own wood and it will warm you twice" >>> >> --=20 "Cut your own wood and it will warm you twice"