unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Stefan Kangas <stefankangas@gmail.com>,
	 Eshel Yaron <me@eshelyaron.com>,
	 emacs-devel@gnu.org
Subject: Re: emacs-30 73c1252bb6b: Fix link to major mode variable in docstring
Date: Tue, 09 Jul 2024 10:06:23 +0000	[thread overview]
Message-ID: <87o776517k.fsf@posteo.net> (raw)
In-Reply-To: <87r0c3f1a4.fsf@web.de> (Michael Heerdegen's message of "Tue, 09 Jul 2024 09:54:43 +0200")

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

      parent reply	other threads:[~2024-07-09 10:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171956993509.30805.5525504753117432129@vcs2.savannah.gnu.org>
     [not found] ` <20240628101855.7E69DC2BC60@vcs2.savannah.gnu.org>
2024-07-08  9:34   ` emacs-30 73c1252bb6b: Fix link to major mode variable in docstring Eshel Yaron
2024-07-08 11:48     ` Stefan Kangas
2024-07-08 15:58       ` Thierry Volpiatto
2024-07-08 23:26         ` Michael Heerdegen via Emacs development discussions.
2024-07-09  0:37           ` Michael Heerdegen via Emacs development discussions.
2024-07-09  4:22         ` Thierry Volpiatto
2024-07-09  5:01           ` Michael Heerdegen via Emacs development discussions.
     [not found]             ` <87y16b3zhk.fsf@posteo.net>
     [not found]               ` <87r0c3f1a4.fsf@web.de>
2024-07-09 10:06                 ` Thierry Volpiatto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o776517k.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=me@eshelyaron.com \
    --cc=michael_heerdegen@web.de \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).