GNU bug report logs -
#58543
29.0.50; The 'q' key is not shown by "C-h ?"
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 15 Oct 2022 09:41:01 UTC
Severity: normal
Found in version 29.0.50
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 58543 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Cc: larsi <at> gnus.org, 58543 <at> debbugs.gnu.org, stefankangas <at> gmail.com
>> Date: Sun, 16 Oct 2022 13:39:12 +0000
>>
>> Eli Zaretskii <eliz <at> 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 <at> gnus.org> writes:
> Eli Zaretskii <eliz <at> 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 <at> gmail.com> writes:
> Philip Kaludercic <philipk <at> 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:
[0001-src-keyboard.c-echo_add_key-Mention-quick-help.patch (text/x-patch, inline)]
From c25e78d8020364e1ecae795ffb79b1612bdc0d0b Mon Sep 17 00:00:00 2001
From: Philip Kaludercic <philipk <at> 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
This bug report was last modified 2 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.