Re: Somewhat reliable multimedia management for Emacs?
Yoni Rabkin <[email protected]> Tue, 30 Jun 2026 11:25:01 -0400
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
"Fran Burstall (Gmail)" <[email protected]> writes: >> >> Also, the command =E2=80=98emms-setup-discover=E2=80=99 generates =E2=80= =98setq=E2=80=99 >> expressions instead of =E2=80=98setopt=E2=80=99 expressions. I expect t= hat >> you know if there are other functions that could be updated >> to use =E2=80=98setopt=E2=80=99. > > > Hmmm, this would force the minimum emacs version with which emms is > compatible to be 29, no? Is that desirable? > > ---Fran Not desirable, nor necessary. Emms currently compiles cleanly on 30.1, so I don't see a problem. > On Tue, 30 Jun 2026 at 15:16, <[email protected]> wrote: > >> Yoni Rabkin <[email protected]> writes: >> >> >> >> >> The descriptions of =E2=80=98emms-player-list=E2=80=99 and >> >> =E2=80=98emms-info-functions=E2=80=99 say that these variables are us= er >> >> options (instead of ordinary variables). >> >> >> >> Starting with Emacs 29, =E2=80=98setopt=E2=80=99 is recommended in pl= ace of >> >> =E2=80=98setq=E2=80=99 for user options. This has two advantages over >> >> =E2=80=98setq=E2=80=99. From the docstring for =E2=80=98setopt=E2=80= =99: >> >> >> >> 1. It allows the authors to use a =E2=80=98custom-set=E2=80=99 form= for >> >> the user option, if desired. >> >> >> >> 2. It emits a warning when the type of the value specified >> >> does not match the type of the user option (especially >> >> useful for new users of a given option). >> >> >> >> Possibly, this could be used in the next version of EMMS? >> > >> > That example is just that; an example. It's from the quickstart section >> > of the Emms manual. I can change the documentation to use setopt no >> > problem though. >> >> Also, the command =E2=80=98emms-setup-discover=E2=80=99 generates =E2=80= =98setq=E2=80=99 >> expressions instead of =E2=80=98setopt=E2=80=99 expressions. I expect t= hat >> you know if there are other functions that could be updated >> to use =E2=80=98setopt=E2=80=99. >> >> -- >> The lyf so short, the craft so long to lerne. >> - Geoffrey Chaucer, The Parliament of Birds. >> >> --=20 "Cut your own wood and it will warm you twice"