From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: discoverability, better defaults and which-key in Emacs Date: Thu, 08 Feb 2024 21:25:02 +0800 Message-ID: <87o7cr2imp.fsf@yahoo.com> References: <874jetaxri.fsf@jeremybryant.net> <87le84oqbd.fsf@yahoo.com> <87plxdpsxw.fsf@posteo.net> <87r0hridvr.fsf@posteo.net> <5dd3d04c-c0eb-43fe-b7c2-957f80261ea3@gutov.dev> <87eddqiw84.fsf@posteo.net> <32071337-c91d-46ad-bb9b-10b8d0c83965@gutov.dev> <86h6ikzc38.fsf@gnu.org> <1056a72d-af5c-487e-be33-67522fe47d17@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27674"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , justin@burkett.cc, philipk@posteo.net, jb@jeremybryant.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 08 14:26:19 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rY4Pz-0006xm-2k for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Feb 2024 14:26:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY4P5-00039G-Km; Thu, 08 Feb 2024 08:25:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY4P4-00038l-3q for emacs-devel@gnu.org; Thu, 08 Feb 2024 08:25:22 -0500 Original-Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY4P1-0001W2-PA for emacs-devel@gnu.org; Thu, 08 Feb 2024 08:25:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707398715; bh=rJfyo+n06PQ4HX0avwABFYcwOUpm/Ou5DzOgw+A/rhU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=QWhcx2vpZe+9emaNLM0VvaGjTk9DlnYevf9UtjZkcbQ0+CKhJT5kPCedgMel59Z3NrobAcOicSClyoU5ji7STFv3vsILDb7bXTlM3QDRgclelm/zQ85P/PYMcjGfJ6wdlH13e7HLzB1DiMMPTa9OyXZOK+UN4alB/YYxWjuXot0xqXypYu3qcWNni4wLejuxZB/LlX6Jx9u3/bPw3YYQri8HXX9SXys93HTGVMRODvxepAkob3dLPmu33l2r0joBMB2sDXViij60Dq8zYzL93ySh6sZb4MC9//bCppdb9JkFA/V5+3MSteTL2qpQ/hgBSmkYW7XA6t9ujwYPW4NMHw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707398715; bh=CDPjK0gtFdDeOUSz4ghTI7Ib8AxhS5pvTWlC6z6wwoi=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=BcqsUMIXGjtw3JmTGr6yB4Ur/1/59BWTbZcvOo+O8gFVBXt6yHS8vPd1qnXdnvYFgOWyugSo/qJFh7kNdwbOiyiHps1sWAsMIffkGdaHjY1WGtrxNEe0Gsb7+h9qyZtumKJaqJTdiJK8OLwtivVdqQdf0BLiNEvZJVG6sOiYJiFXtnAlUpXUnPV+K0+UYFKnHtIh2GkdWOuFg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: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 8 Feb 2024 13:25:15 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-ddr5z (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ffa21638d1af1c42c7b2c2d690ac2fb4; Thu, 08 Feb 2024 13:25:11 +0000 (UTC) In-Reply-To: <1056a72d-af5c-487e-be33-67522fe47d17@gutov.dev> (Dmitry Gutov's message of "Wed, 7 Feb 2024 20:31:04 +0200") X-Mailer: WebService/1.1.22046 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.147; envelope-from=luangruo@yahoo.com; helo=sonic305-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316028 Archived-At: Dmitry Gutov 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.