[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: discoverability, better defaults and which-key in Emacs
From: |
Po Lu |
Subject: |
Re: discoverability, better defaults and which-key in Emacs |
Date: |
Thu, 08 Feb 2024 21:25:02 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Dmitry Gutov <dmitry@gutov.dev> writes:
> + if (echo_keystrokes_help)
> + {
> + AUTO_STRING (help, " (\\`C-h' for help)");
> + kset_echo_string (current_kboard,
> + concat2 (KVAR (current_kboard, echo_string),
> + calln (Qsubstitute_command_keys, help)));
> + }
Just for the record, calling functions defined in Lisp with automatic
variables as arguments will give rise to mysterious crashes down the
line. Strings constructed by AUTO_STRING must never be returned,
provided to Lisp, or referenced after moving out of scope, as its name
suggests.
- Re: discoverability, better defaults and which-key in Emacs, (continued)
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/11
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/11
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/11
- Re: discoverability, better defaults and which-key in Emacs, Eli Zaretskii, 2024/02/11
- Re: discoverability, better defaults and which-key in Emacs, Dmitry Gutov, 2024/02/11
- 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
- Rebinding Fn [Re: discoverability, better defaults and which-key in Emacs], Alan Mackenzie, 2024/02/08
- Re: Rebinding Fn [Re: discoverability, better defaults and which-key in Emacs], Eli Zaretskii, 2024/02/08
- Re: Rebinding Fn [Re: discoverability, better defaults and which-key in Emacs], Alan Mackenzie, 2024/02/08
- Re: discoverability, better defaults and which-key in Emacs,
Po Lu <=
- 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