[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: discoverability, better defaults and which-key in Emacs
From: |
Visuwesh |
Subject: |
Re: discoverability, better defaults and which-key in Emacs |
Date: |
Thu, 08 Feb 2024 07:16:56 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
[புதன் பிப்ரவரி 07, 2024] Dmitry Gutov wrote:
> [...]
> diff --git a/src/keyboard.c b/src/keyboard.c
> index 1f7253a7da1..6d3db5ab615 100644
> --- a/src/keyboard.c
> +++ b/src/keyboard.c
> @@ -589,6 +589,15 @@ echo_dash (void)
> AUTO_STRING (dash, "-");
> kset_echo_string (current_kboard,
> concat2 (KVAR (current_kboard, echo_string), dash));
> +
> + if (echo_keystrokes_help)
> + {
> + AUTO_STRING (help, " (\\`C-h' for help)");
^^^^^^^
Shouldn't this part use the value of help-char instead? (There's also
the complication with help-form.)
> + kset_echo_string (current_kboard,
> + concat2 (KVAR (current_kboard, echo_string),
> + calln (Qsubstitute_command_keys, help)));
> + }
> +
> echo_now ();
> }
>
> @@ -13228,6 +13237,10 @@ syms_of_keyboard (void)
> If the value is zero, don't echo at all. */);
> Vecho_keystrokes = make_fixnum (1);
>
> + DEFVAR_BOOL ("echo-keystrokes-help", echo_keystrokes_help,
> + doc: /* Non-nil means append small help text to the unfinished
> commands' echo. */);
> + echo_keystrokes_help = true;
> +
> DEFVAR_LISP ("polling-period", Vpolling_period,
> doc: /* Interval between polling for input during Lisp execution.
> The reason for polling is to make C-g work to stop a running program.
- Re: discoverability, better defaults and which-key in Emacs, (continued)
- Re: discoverability, better defaults and which-key in Emacs, Philip Kaludercic, 2024/02/05
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/05
- Re: discoverability, better defaults and which-key in Emacs, Justin Burkett, 2024/02/05
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/05
- Re: discoverability, better defaults and which-key in Emacs, Justin Burkett, 2024/02/05
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/06
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/07
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/07
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/07
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/07
- Re: discoverability, better defaults and which-key in Emacs,
Visuwesh <=
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/10
- Re: discoverability, better defaults and which-key in Emacs, Po Lu, 2024/02/10
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/11