unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 513c5d827d: Use `format-prompt' in
Date: Sat, 03 Sep 2022 12:15:22 +0300	[thread overview]
Message-ID: <83ilm4om39.fsf@gnu.org> (raw)

> branch: master
> commit 513c5d827decf474f923f6f66abd2ed62e0e64f0
> Author: Robert Pluim <rpluim@gmail.com>
> Commit: Robert Pluim <rpluim@gmail.com>
> 
>     Use `format-prompt' in `describe-char-fold-equivalences'
>     
>     * lisp/char-fold.el (describe-char-fold-equivalences): Use `format-prompt'.
> ---
>  lisp/char-fold.el | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/lisp/char-fold.el b/lisp/char-fold.el
> index 2ac4cb0543..43e3cd45ec 100644
> --- a/lisp/char-fold.el
> +++ b/lisp/char-fold.el
> @@ -439,7 +439,9 @@ non-nil, means also include partially matching ligatures and
>  non-canonical equivalences."
>    (interactive (list (ignore-errors
>                         (read-char-by-name
> -                        "Unicode name, single char, or hex, default all: " t))
> +                        (format-prompt "Unicode name, single char, or hex"
> +                                       "all")
> +                        t))

Thanks, but is this supposed to be an improvement?  Before the change,
I knew what the text meant and what was the "all" part about; after
the change, I don't.  It's a net loss, since the code is now less
readable, and in fact without either running the code or looking at
what format-prompt does, one cannot understand what the prompt will
say in Real Life.

And don't get me started about the problems this should cause if and
when we'd like to translate our prompts.

IMO, format-prompt is useful where it makes the code more clear, but
blindly using it everywhere is not TRT in the long run.



             reply	other threads:[~2022-09-03  9:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-03  9:15 Eli Zaretskii [this message]
2022-09-03  9:22 ` master 513c5d827d: Use `format-prompt' in Lars Ingebrigtsen
2022-09-03  9:38   ` Eli Zaretskii
2022-09-03  9:45     ` Lars Ingebrigtsen
2022-09-03  9:56       ` Eli Zaretskii
2022-09-03 15:50       ` [External] : " Drew Adams
2022-09-05  4:04         ` Richard Stallman
2022-09-05  8:26           ` Robert Pluim
2022-09-05 11:42             ` Eli Zaretskii
2022-09-05 11:54               ` Robert Pluim
2022-09-05 12:19                 ` Eli Zaretskii
2022-09-05 12:29                   ` Robert Pluim
2022-09-05 12:33                     ` Eli Zaretskii
2022-09-05 16:02                       ` Gregory Heytings
2022-09-05 16:10                         ` Robert Pluim
2022-09-06  4:16               ` Richard Stallman
2022-09-06 12:37                 ` Eli Zaretskii
2022-09-07  2:23                   ` Richard Stallman
2022-09-07 10:03                     ` Robert Pluim

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=83ilm4om39.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@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).