emacs-devel
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]