Re: Playlists getting deleted
George <[email protected]> Thu, 16 Jul 2026 19:49:20 +0200
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <CAAh4ApMaTPFFeETzs+Xos_nRhjxwRXnggMKdquApjvXoC1XzRg@mail.gmail.com> |
--0000000000004700d80656be10a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Yoni, Can you tell me how the playlists are restored when Emacs is opened? Or the 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 result in playlists being occasionally unintentionally deleted? Thanks, George On Sat, Jul 11, 2026 at 10:33=E2=80=AFPM George <[email protected]> wro= te: > 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 o= f >> 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" >> > --0000000000004700d80656be10a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi Yoni,</div><div><br></div><div>Can you tell me how= the playlists are restored when Emacs is opened? Or the names of the funct= ions involved?</div><div>It seems to me that the playlist buffers ARE the p= laylists i.e the playlists aren't generated by a reading from a file bu= t from restoring the buffers.</div><div><br></div><div>Killing a playlist b= uffer seems to delete the playlist? Doesn't this result in playlists be= ing occasionally unintentionally deleted?=C2=A0</div><div><br></div><div>Th= anks,</div><div>George=C2=A0</div></div><br><div class=3D"gmail_quote gmail= _quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jul 11, 202= 6 at 10:33=E2=80=AFPM George <<a href=3D"mailto:[email protected]">g= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"auto">Thanks!</div><div><br><div class=3D"g= mail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 6 Jul 2026 at 03:= 41, Yoni Rabkin <<a href=3D"mailto:[email protected]" target=3D"_blank">y= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">George <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>> writes:<br> <br> > Hi there,<br> ><br> > Sometimes (I'm not quite sure when exactly) I open Emacs to find a= ll of my<br> > Emms playlists have disappeared...<br> <br> That's the tricky part; the "sometimes". Without a way to rec= reate the<br> bug it's hard.<br> <br> I'll install the setup and check to see if I can observe it in the wild= .<br> <br> > I assume the playlist buffers must've been killed before Emacs was= killed.<br> ><br> > I've mapped "C-x k" to 'bury-buffer' so I don= 9;t accidently delete a<br> > playlist when killing its buffer.<br> ><br> > Do you have an idea why this might be happening?<br> ><br> > Here's my config:<br> ><br> > (use-package emms<br> >=C2=A0 =C2=A0:ensure t<br> >=C2=A0 =C2=A0:init<br> >=C2=A0 =C2=A0(emms-all)<br> >=C2=A0 =C2=A0(add-hook 'emms-metaplaylist-mode-hook #'hl-line-m= ode)<br> >=C2=A0 =C2=A0:hook<br> >=C2=A0 =C2=A0(after-init . emms-history-load)<br> >=C2=A0 =C2=A0:bind<br> >=C2=A0 =C2=A0("<f7>" . emms-playlist-mode-go)<br> >=C2=A0 =C2=A0("C-c e b" . emms-browser)<br> >=C2=A0 =C2=A0("<f6>" . emms-metaplaylist-mode-go)<br> ><br> >=C2=A0 =C2=A0(:map emms-playlist-mode-map<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("C-x k" . bury-buffer)<br> > ("DEL" . emms-metaplaylist-mode-go)<br> > ("M-<up>" . emms-playlist-mode-shift-track-up)<br> > ("M-<down>" . emms-playlist-mode-shift-track-down))<br= > ><br> >=C2=A0 =C2=A0:config<br> >=C2=A0 =C2=A0(require 'emms-history)<br> >=C2=A0 =C2=A0(emms-mode-line-mode -1)<br> ><br> >=C2=A0 =C2=A0(setq emms-player-list '(emms-player-mpv)<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0emms-info-functions '(emms-info-n= ative))<br> >=C2=A0 =C2=A0(setq-default emms-single-track t)<br> ><br> >=C2=A0 =C2=A0(setq-default<br> ><br> >=C2=A0 =C2=A0 emms-source-playlist-default-format 'm3u<br> >=C2=A0 =C2=A0 emms-player-mpv-parameters '("--quiet" &quo= t;--really-quiet"<br> > "--no-audio-display" "--force-window=3Dno"=C2=A0 &= quot;--fullscreen"<br> > ;"--config-dir=3D~/.emacs.d/"<br> > "--save-position-on-quit")))<br> ><br> > Thanks for your help!<br> > George<br> <br> -- <br> =C2=A0 =C2=A0"Cut your own wood and it will warm you twice"<br> </blockquote></div></div> </blockquote></div> --0000000000004700d80656be10a6--