From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Generality of defvar Date: Thu, 28 Jul 2022 08:42:30 +0200 Message-ID: References: <87r127h40s.fsf@posteo.net-N7wjq17--3-2> <87pmhqbuoo.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18713"; mail-complaints-to="usenet@ciao.gmane.io" Cc: carlmarcos@tutanota.com, Emanuel Berg , help-gnu-emacs To: thibaut.verron@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 28 08:58:22 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1oGxTS-0004cc-Ei for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 08:58:22 +0200 Original-Received: from localhost ([::1]:36762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGxTQ-0004Uu-35 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 02:58:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGxEC-0007I5-Re for help-gnu-emacs@gnu.org; Thu, 28 Jul 2022 02:42:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:38321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGxEA-0002y5-84 for help-gnu-emacs@gnu.org; Thu, 28 Jul 2022 02:42:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658990550; bh=uKalzW2PE/BcygpwgRd91v1HQ0F4VAbkq7OEoqFxRtw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=PmR/RBhYOQvPUfmWNnM4tVkebijy4A/164YiRWpMVYQyH2LGDhRBf5Bfr+UQsUdGU HRpXbo7pVi3JyOmz5STSAeOCsI0qjbVoA5N1jsnR5Q0BoUmNuepRwsWTuWMUw1fkCP jVU/4KGk9QQtjWLSl2gEukN+VilEutYxHBGe/Zkw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Thu, 28 Jul 2022 08:42:30 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:De5llYjZ2OXp9uXhX0yp5sibDe5uBOxdyOjb7Kfs5ftEUNKojTX0793gvojTozc24Rv/e gfp4hR+vsxeuxGVRyC9//ZUacU4rdem5S4EMcxfLJ3Z3FP3sgho8JAb8WCIdro1cl7i37vfR6Wpq CPY6MMi7+2nqubdUpfvglUucYeWjAsP+Pp/WbG8eyvfd57e32mUtr9xwuYkLYUsBOyQYanfhJ8FJ mD+dT3fCWu5DBHrWSEWiAfbF43+VsuyaoTtyFS/uw+gWaAx+UlDlqRADL1xU0JWveKBA+66Yguum E0= X-UI-Out-Filterresults: notjunk:1;V03:K0:swwMjXeS0SY=:SHh9jsuuNnFj/+IMIZbAjC vDIV9TiMuOv7V8a0PPA2NEu9DuIrVz9M+GyWqzhZhSoR8Ee8lxMIIPCTkvaYsxbzM1U77mE// Vw578B8YVes8jYURbRQWemAMULHvrXETgTLDo5s9NStUkhWdgnkIBlh4Q9RJhnG1bk4SGY3JX V7MsSFGUbz6kX3h++EJAVElWQo1KpkEQ1IqG82VGNj0aFRuO+m/1U7ByXBjK2jtiaHKFg9/VZ k5964XYE2FF/Y7aHBw1/Uez2GgEeeN1PTBXCJQKXil/oCNIw7pmsu2gzPckUkxvlac+vBPI2S 7d2ycPmZyqbtzH3JHcx/b7Ry8itRnuvS/0sml9gNJNQBPIxBR2L4eVlcVb2mzD9EMHcf1CRGb VwpPOm7Ex8T1HdLj2QUfEGJ1FeBmp4eUi6coSW2MaO0nS6TJGxO4fzkAQylMqvlpmoQCssEWD OMKgfVl55+h/eqvzA9sC45aJqF+C5zgjTLOzetLxUd0V2BWOzohYeAlZ0sU7dzir78ovhi946 id49RwQjCaKszJ6ORPEWwbNyPpnwRWS4Rzrsv+BiV8AE+FbyP1wczkH6pWWMMx50/jyPuANYp C39Ysa3sSjTYVz+EU+/L2IH7hPXg1k6+ECsWQrWqt21P8YOnXd9UWOPqTpO2iiXFYyLa2iDXr 3C4tS+PhyEcXdCvYwoLjWjbWsbV3beBpCquz/OGbIhPVR09TktS/oJJebHIfgXBqYVASxB3ph NSyR/wVjIhf7BzAoZHkkyMsrQO3Yffcl1uquo23B/6WzQQmFS+fG2K41gg2ZRI1Hj7ocH8B0 Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138652 Archived-At: Sent: Thursday, July 28, 2022 at 4:39 AM From: "Thibaut Verron" To: "Christopher Dimech" Cc: carlmarcos@tutanota.com, "Emanuel Berg" , "help-gnu-emacs" Subject: Re: Generality of defvar Le mer. 27 juil. 2022 à 18:29, Christopher Dimech <[1]dimech@gmx.com> a écrit : > Sent: Thursday, July 28, 2022 at 1:47 AM > From: "Thibaut Verron" <[2]thibaut.verron@gmail.com> > To: [3]carlmarcos@tutanota.com > Cc: "Emanuel Berg" <[4]incal@dataswamp.org>, "help-gnu-emacs" <[5]help-gnu-emacs@gnu.org> > Subject: Re: Generality of defvar > > Le mer. 27 juil. 2022 à 15:24, <[6]carlmarcos@tutanota.com> a écrit : > > > > > Jul 27, 2022, 13:21 by [7]thibaut.verron@gmail.com: > > > > > Le mer. 27 juil. 2022 à 14:52, carlmarcos--- via Users list for the GNU > > Emacs text editor <> [8]help-gnu-emacs@gnu.org> > a écrit : > > > > > >> > > >> > > >> Jul 27, 2022, 12:34 by >> [9]incal@dataswamp.org>> : > > >> > > >> > carlmarcos--- via Users list for the GNU Emacs text editor wrote: > > >> > > > >> >> (defun enable-error-diagnostics () > > >> >> "Enable error diagnostics with backtrace buffer. > > >> >> One can exit the debugger with the q command." > > >> >> > > >> > > > >> > You can refer to keys in docstrings like this: > > >> > > > >> > \\[forward-word] > > >> > > > >> > That way, it isn't hardcoded so if later changed/configured > > >> > it'll still show the right key. > > >> > > > >> How can I figure out what key to use in the docstring for exiting the > > backtrace buffer? > > >> > > > > > > The function bound to 'q' is quit-window. But since this function > > doesn't have a global binding, you need to tell the docstring to use the > > appropriate keymap to look the binding up. > > > > > > Something like > > > > > > "Enable error diagnostics with backtrace buffer. > > > > > > \\ (note: this is the part telling emacs where to > > look for the key) > > > One can exit the debugger with the `quit-window' command (bound to > > \\[quit-window])." > > > > > > > > Although quit-window is bound to q, the command \\[quit-window] just > > inserts > > M-x quit-window, rather than q. > > > > Yes, that's precisely because quit-window doesn't have a global binding. > You need to add \\ somewhere in the docstring to tell > emacs to show bindings for the backtrace buffers, rather than global > bindings. > > Best wishes, > Thibaut Sounds good advice, but the result could be Uses keymap ‘backtrace-mode-map’, which is not currently defined. My bad, it should have been debugger-mode-map. Not quite right yet. References 1. mailto:dimech@gmx.com 2. mailto:thibaut.verron@gmail.com 3. mailto:carlmarcos@tutanota.com 4. mailto:incal@dataswamp.org 5. mailto:help-gnu-emacs@gnu.org 6. mailto:carlmarcos@tutanota.com 7. mailto:thibaut.verron@gmail.com 8. mailto:help-gnu-emacs@gnu.org 9. mailto:incal@dataswamp.org