help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Is there a way of setting a variable only when it exists?


From: Marcin Borkowski
Subject: Re: Is there a way of setting a variable only when it exists?
Date: Tue, 15 Mar 2022 08:45:42 +0100
User-agent: mu4e 1.1.0; emacs 29.0.50

On 2022-03-15, at 07:58, Jean Louis <bugs@gnu.support> wrote:

> * Marcin Borkowski <mbork@mbork.pl> [2022-03-15 09:28]:
>> What if it's an internal Emacs variable which might become a user option
>> one day (I submitted a bug report about it) and then my customization
>> silently disappears?  It's the "silently" part I want to guard
>> against...
>
> I am trying to understand:
>
> - what is user option?

It is defined in the Emacs manual.

> Now, if variable becomes in future "user option" most probably your
> settings will still be kept in place, your customization will not
> silently disappear unless you delete it from your files.
>
> Did I understand it all well?

No.  If an internal variable (= one whose name contains two dashes)
becomes a user option, its name will most probably change.

Best,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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