From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 50935@debbugs.gnu.org
Subject: bug#50935: minibuffer-electric-default-mode interface
Date: Tue, 05 Oct 2021 09:43:49 +0300 [thread overview]
Message-ID: <874k9wc8je.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmm7V9AM-3=AVm2zCfjVBZJV361tFiAnUnuW2ECsV2fKTQ@mail.gmail.com> (Stefan Kangas's message of "Mon, 4 Oct 2021 02:17:38 +0000")
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
> A third option is to add 'minibuffer-default-prompt-format' on emacs-28,
> but make the suggested deletion on master -- which give us more time to
> get `minibuffer-default-prompt-format' up to scrap.
>
> Thoughts?
Thanks for adding format-prompt to many more prompts. I noticed
that when minibuffer-default-prompt-format is customized to the
recommended format " [%s]", then the prompt of proced-send-signal
is confusing with two pairs of the same brackets:
Send signal [3 processes] [TERM]:
The following patch makes the prompt more readable:
Send signal to 3 processes [TERM]:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: proced-send-signal.patch --]
[-- Type: text/x-diff, Size: 1159 bytes --]
diff --git a/lisp/proced.el b/lisp/proced.el
index 29996068f9..cb66d68302 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -1773,7 +1773,7 @@ proced-send-signal
`(:annotation-function
,(lambda (s) (cdr (assoc s proced-signal-list))))))
(proced-with-processes-buffer process-alist
- (list (completing-read (format-prompt "Send signal [%s]"
+ (list (completing-read (format-prompt "Send signal to %s"
"TERM" pnum)
proced-signal-list
nil nil nil nil "TERM")
@@ -1798,7 +1798,7 @@ proced-send-signal
`(:annotation-function
,(lambda (s) (cdr (assoc s proced-signal-list))))))
(proced-with-processes-buffer process-alist
- (setq signal (completing-read (format-prompt "Send signal [%s]"
+ (setq signal (completing-read (format-prompt "Send signal to %s"
"TERM" pnum)
proced-signal-list
nil nil nil nil "TERM"))))))
next prev parent reply other threads:[~2021-10-05 6:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 11:43 bug#50935: minibuffer-electric-default-mode interface Stefan Kangas
2021-10-02 19:15 ` Juri Linkov
2021-10-02 23:14 ` Stefan Kangas
2021-10-03 16:54 ` Juri Linkov
2021-10-04 2:17 ` Stefan Kangas
2021-10-04 17:22 ` Juri Linkov
2021-10-05 16:55 ` Stefan Kangas
2022-09-02 12:51 ` Lars Ingebrigtsen
2021-10-05 6:43 ` Juri Linkov [this message]
2021-10-05 14:11 ` Stefan Kangas
2021-10-05 15:52 ` Eli Zaretskii
2021-10-05 16:46 ` Juri Linkov
2021-10-05 16:42 ` Juri Linkov
2021-10-03 11:51 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874k9wc8je.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=50935@debbugs.gnu.org \
--cc=stefan@marxist.se \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.