emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-30 73c1252bb6b: Fix link to major mode variable in docstring


From: Thierry Volpiatto
Subject: Re: emacs-30 73c1252bb6b: Fix link to major mode variable in docstring
Date: Tue, 09 Jul 2024 10:06:23 +0000

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Thierry Volpiatto <thievol@posteo.net> writes:
>
>> Or even better would be to eval directly the getter and tell user
>> "mode is %s" on/off instead of proposing to eval.
>
> AFAIU, this is not about telling whether the mode is on at the moment,
> but to tell the user - or programmer - how to check that.
>
>> IIUC the only expessions we may have are (default-value
>> 'global-foo-mode) for global mmodes or foo-mode for normal mmodes.
>
> No, there are more complicated ones, like these:
>
> (frame-parameter nil 'auto-raise)      - auto-raise-mode
> (frame-parameter nil 'auto-lower)      - auto-lower-mode
> (show-paren--enabled-p)                - show-paren-local-mode
> (get-scroll-bar-mode)                  - scroll-bar-mode
> (and buffer-auto-save-file-name
>   (>= buffer-saved-size 0))            - auto-save-mode
> (eq (terminal-parameter nil 'normal-erase-is-backspace) 1)
>                              - normal-erase-is-backspace-mode
> (eq standard-display-table iso-ascii-display-table)
>                              - iso-ascii-mode
>
> AFAIU that piece of docstring we discuss is especially helpful in these
> special cases.

Ok, good to know, thanks.

> [ did we lose emacs-dev intentially btw? ]

No, don't know what's happened, now CCing to all.

>
> Regards,
>
> Michael.

-- 
Thierry

Attachment: signature.asc
Description: PGP signature


reply via email to

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