From: Philip Kaludercic <philipk@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 58543@debbugs.gnu.org, larsi@gnus.org, stefankangas@gmail.com
Subject: bug#58543: 29.0.50; The 'q' key is not shown by "C-h ?"
Date: Sun, 16 Oct 2022 22:39:35 +0000 [thread overview]
Message-ID: <87y1tf1jh4.fsf@posteo.net> (raw)
In-Reply-To: <83h70350i7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Oct 2022 17:03:28 +0300")
[-- Attachment #1: Type: text/plain, Size: 1814 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Philip Kaludercic <philipk@posteo.net>
>> Cc: larsi@gnus.org, 58543@debbugs.gnu.org, stefankangas@gmail.com
>> Date: Sun, 16 Oct 2022 13:39:12 +0000
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> >> > How about mentioning it in the "C-h" prompt itself?
>> >>
>> >> Do you mean the "C-h (Type ? for further options)-" prompt?
>> >
>> > Yes. Make it say
>> >
>> > C-h (Type ? for further options, q for quick help)-
>> >
>> > or somesuch.
>>
>> That sounds good. How about this patch:
>
> LGTM, but please wait for others to comment. After all, I'm not the
> main audience for this stuff ;-)
Will do.
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> LGTM, but please wait for others to comment.
>
> Makes sense to me.
>
>> After all, I'm not the main audience for this stuff ;-)
>
> Me neither.
Looks like nobody will be using the feature :')
Stefan Kangas <stefankangas@gmail.com> writes:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>> diff --git a/src/keyboard.c b/src/keyboard.c
>> index 8ab4a451b4..8386b599c3 100644
>> --- a/src/keyboard.c
>> +++ b/src/keyboard.c
>> @@ -503,7 +503,7 @@ echo_add_key (Lisp_Object c)
>> if ((NILP (echo_string) || SCHARS (echo_string) == 0)
>> && help_char_p (c))
>> {
>> - AUTO_STRING (str, " (Type ? for further options)");
>> + AUTO_STRING (str, " (Type ? for further options, q for quick help)");
>> AUTO_LIST2 (props, Qface, Qhelp_key_binding);
>> Fadd_text_properties (make_fixnum (7), make_fixnum (8), props, str);
>
> Also add the text property to the "q" here. Something like:
>
> Fadd_text_properties (make_fixnum (30), make_fixnum (31), props,
> str);
You're right, I've added it and it does the right thing:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-src-keyboard.c-echo_add_key-Mention-quick-help.patch --]
[-- Type: text/x-patch, Size: 978 bytes --]
From c25e78d8020364e1ecae795ffb79b1612bdc0d0b Mon Sep 17 00:00:00 2001
From: Philip Kaludercic <philipk@posteo.net>
Date: Mon, 17 Oct 2022 00:36:06 +0200
Subject: [PATCH] * src/keyboard.c (echo_add_key): Mention quick-help
---
src/keyboard.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/keyboard.c b/src/keyboard.c
index 8ab4a451b4..224512bfc9 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -503,9 +503,11 @@ echo_add_key (Lisp_Object c)
if ((NILP (echo_string) || SCHARS (echo_string) == 0)
&& help_char_p (c))
{
- AUTO_STRING (str, " (Type ? for further options)");
+ AUTO_STRING (str, " (Type ? for further options, q for quick help)");
AUTO_LIST2 (props, Qface, Qhelp_key_binding);
Fadd_text_properties (make_fixnum (7), make_fixnum (8), props, str);
+ Fadd_text_properties (make_fixnum (30), make_fixnum (31), props,
+str);
new_string = concat2 (new_string, str);
}
--
2.37.3
next prev parent reply other threads:[~2022-10-16 22:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-15 9:40 bug#58543: 29.0.50; The 'q' key is not shown by "C-h ?" Eli Zaretskii
2022-10-16 9:49 ` Lars Ingebrigtsen
2022-10-16 10:21 ` Philip Kaludercic
2022-10-16 10:39 ` Eli Zaretskii
2022-10-16 11:11 ` Philip Kaludercic
2022-10-16 11:42 ` Eli Zaretskii
2022-10-16 12:11 ` Stefan Kangas
2022-10-16 13:39 ` Philip Kaludercic
2022-10-16 14:03 ` Eli Zaretskii
2022-10-16 14:23 ` Lars Ingebrigtsen
2022-10-16 22:39 ` Philip Kaludercic [this message]
2022-11-04 22:59 ` Philip Kaludercic
2022-10-16 16:50 ` Stefan Kangas
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=87y1tf1jh4.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=58543@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
--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).