emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Name for `setopt` (was: Comments on setopt)


From: Stefan Monnier
Subject: Name for `setopt` (was: Comments on setopt)
Date: Sat, 19 Feb 2022 09:41:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

We've clearly entered bikeshed territory, so I'll just +1 here to what
Lars said.


        Stefan


Lars Ingebrigtsen [2022-02-19 12:13:23] wrote:

> Richard Stallman <rms@gnu.org> writes:
>
>> Since it isn't meant for the command line options that `getopt' examines,
>> the name `setopt' is misleading.  (It already misled me!)
>> This name should be changed to something longer and clearer.
>
> You mean you thought this had something to do with getopt.h?  I don't
> thing confusing `setopt' with that has potential to confuse many people
> writing Lisp code -- most people haven't heard of getopt.h, there is no
> `getopt' function in Emacs Lisp, and what would setting a command line
> switch even mean?
>
> The point is that we need a variant of `setq' for user options that
> people can use when saying `M-:' and in init files, so it needs to be
> short and snappy.  `seto' and `setc' were proposed, but I thought those
> were too confusing.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]