Re: Somewhat reliable multimedia management for Emacs?
[email protected] Tue, 30 Jun 2026 10:15:56 -0400
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
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 user >> options (instead of ordinary variables). >> >> Starting with Emacs 29, =E2=80=98setopt=E2=80=99 is recommended in place= 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=98= setq=E2=80=99 expressions instead of =E2=80=98setopt=E2=80=99 expressions. I expect that you know if there are other functions that could be updated to use =E2=80=98setopt=E2=80=99. --=20 The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds.