Re: Playlists getting deleted
George <[email protected]> Thu, 16 Jul 2026 20:35:54 +0200
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <CAAh4ApPLMnweZfW53ohV92qavqBmW9YvQXO6tbxRjYvkSf0iTw@mail.gmail.com> |
--000000000000ec32410656beb640
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
That's helpful - thanks.
My new config couldn't be simpler - let's see if I still have issues...
;;; EMMS
(emms-all)
(emms-history-load)
(setq emms-player-list '(emms-player-mpv)
emms-info-functions '(emms-info-native))
(define-key emms-playlist-mode-map (kbd "DEL") #'emms-metaplaylist-mode-go)
(setq-default emms-single-track t)
(keymap-global-set "<f7>" #'emms-playlist-mode-go)
(keymap-global-set "<f6>" #'emms-metaplaylist-mode-go)
On Thu, Jul 16, 2026 at 7:56=E2=80=AFPM Yoni Rabkin <[email protected]> wrot=
e:
> George <[email protected]> writes:
>
> > 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
>
> 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]>=
wrote:
> >
> >> 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 al=
l
> of
> >>> my
> >>> > Emms playlists have disappeared...
> >>>
> >>> That's the tricky part; the "sometimes". Without a way to recreate th=
e
> >>> 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"
> >>>
> >>
>
> --
> "Cut your own wood and it will warm you twice"
>
--000000000000ec32410656beb640
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>That's helpful - thanks.</div><div><br></div><div=
>My new config couldn't be simpler - let's see if I still have issu=
es...</div><div><br></div><div>;;; EMMS<br>(emms-all)<br>(emms-history-load=
)<br><br>(setq emms-player-list '(emms-player-mpv)<br>=C2=A0 =C2=A0 =C2=
=A0 emms-info-functions '(emms-info-native))<br><br>(define-key emms-pl=
aylist-mode-map (kbd "DEL") #'emms-metaplaylist-mode-go)<br><=
br>(setq-default emms-single-track t)<br><br>(keymap-global-set "<f=
7>" #'emms-playlist-mode-go)<br>(keymap-global-set "<f6=
>" #'emms-metaplaylist-mode-go)<br><br></div></div><br><div cla=
ss=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_at=
tr">On Thu, Jul 16, 2026 at 7:56=E2=80=AFPM Yoni Rabkin <<a href=3D"mail=
to:[email protected]">[email protected]</a>> wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">George <<a href=3D"mailto:georgehad=
[email protected]" target=3D"_blank">[email protected]</a>> writes:<br>
<br>
> Hi Yoni,<br>
><br>
> Can you tell me how the playlists are restored when Emacs is opened? O=
r the<br>
> names of the functions involved?<br>
> It seems to me that the playlist buffers ARE the playlists i.e the<br>
> playlists aren't generated by a reading from a file but from resto=
ring the<br>
> buffers.<br>
><br>
> Killing a playlist buffer seems to delete the playlist? Doesn't th=
is result<br>
> in playlists being occasionally unintentionally deleted?<br>
><br>
> Thanks,<br>
> George<br>
<br>
In Emms, playlists are just buffers with text in them. Those lines of<br>
text have overlays which carry additional information. Apologies; I<br>
didn't realize this wasn't clear from your previous emails.<br>
<br>
If you are in an Emms buffer with tracks, you can see the information in<br=
>
the overlay by putting point over any track and evaluating:<br>
(get-text-property (point) 'emms-track)<br>
<br>
> On Sat, Jul 11, 2026 at 10:33=E2=80=AFPM George <<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>> wrot=
e:<br>
><br>
>> Thanks!<br>
>><br>
>> On Mon, 6 Jul 2026 at 03:41, Yoni Rabkin <<a href=3D"mailto:yon=
[email protected]" target=3D"_blank">[email protected]</a>> wrote:<br>
>><br>
>>> 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 Em=
acs to find all of<br>
>>> my<br>
>>> > Emms playlists have disappeared...<br>
>>><br>
>>> That's the tricky part; the "sometimes". Without=
a way to recreate the<br>
>>> bug it's hard.<br>
>>><br>
>>> I'll install the setup and check to see if I can observe i=
t in the wild.<br>
>>><br>
>>> > I assume the playlist buffers must've been killed bef=
ore Emacs was<br>
>>> killed.<br>
>>> ><br>
>>> > I've mapped "C-x k" to 'bury-buffer'=
; so I don'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 #&=
#39;hl-line-mode)<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-m=
ode-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" . bur=
y-buffer)<br>
>>> > ("DEL" . emms-metaplaylist-mode-go)<br>
>>> > ("M-<up>" . emms-playlist-mode-shift-trac=
k-up)<br>
>>> > ("M-<down>" . emms-playlist-mode-shift-tr=
ack-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-native))<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 '("--qui=
et" "--really-quiet"<br>
>>> > "--no-audio-display" "--force-window=3Dno&=
quot;=C2=A0 "--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 twic=
e"<br>
>>><br>
>><br>
<br>
-- <br>
=C2=A0 =C2=A0"Cut your own wood and it will warm you twice"<br>
</blockquote></div>
--000000000000ec32410656beb640--