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: Wed, 27 Jul 2022 18:29:49 +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 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29760"; 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 Wed Jul 27 18:31:59 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 1oGjx1-0007Sp-AV for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 18:31:59 +0200 Original-Received: from localhost ([::1]:39264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGjwz-0008OF-Gu for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 12:31:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjv4-0008MD-Mw for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:29:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjv2-0006iT-Ok for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:29:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658939389; bh=cKwrXIjBQnDmQKYUTHy4n7ionjU+UAXvBkJAaVJOGkY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=SQcFhKptX1nAEuwN13EAe9QIuQhhuP33SEZuz4gzyVFT4ooKji3d1Y32GkfXeQ3r2 Rwd5tThSBEG2I54BVu9aK2Rj0pbIzFaxSJCnDWh29ngr46MHpP74jJhWx0K+cVkOH4 F6v3NhcaYJcnYiB6SrKCjLny9mg2S7Y+S7xAql/A= 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-bs05.server.lan [172.19.170.173]) (via HTTP); Wed, 27 Jul 2022 18:29:49 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:yeUV5lWoGXrxpfhQLsiUAfXAY+2dG5xVCUwDdhsnHwKGcMtxW0RRaajbKYqa+EGUvVKDQ kZddRzhJTvLHuORHkx5JpZJZKqz7xq0QKSsigOTt9dcRhZ1jv/p90RA89aQfpoGrllLEfoZikQhn RjwqDSaB8DYfCL9nYQAaw0HSf8ZlxwEjoYZIX2RiD1csLWCDo14/8TQOa+gPDTBNnAxxRcmZI0wV Vo/9vTlj/t5MxmFz8ZOP6kmfmgWdLGGf0u6iEBVaMz7XtSGkZXjL2NmPK8RuVc0hHQa599FWY7BR Yo= X-UI-Out-Filterresults: notjunk:1;V03:K0:oZ/4p+1vRSU=:1lzY4QELOr5E5OR01PtTKs /kD1m17pV/Ts5Nee1LuXCsP+MxHUe0DHOI1rpDD/Rr4w8+L0mn7317TF5QnTQS7Qeh1zEy/ax 0gi3C1ROBc253nbBWttixvSmmZt8ek8NJNanOBsnDFhqC5C1QQwUhRU+G9MIPcMNtSoBCIUSI cLeuWajBgNFS1t0innZxJg5RRcGuX6M5IVo9eEtBAXSndb7I6RIfhT1UxzVfUlowOJjXq/vYX PRhl4LD2JhFOGwQAOiSVQuZQ9F7KpsIg2xxGrLGmvHHXcaT3z+zz4HUbSF/74Sk6hGIg+UAP1 xshjEfCRuWkHFyaZI4RfOxhITn9Of/T5CudWQDBGDio2vHv9wo3sJsy0pFnoJyXcF2o/Owmbx wDKKhEY6sJDlrcG4YVm6qu0/FPn4iVF95TnFh8pSwwKwq+MeTlOmAC7XqIeocJrvjsIQUR+bo 0P8lWmu5rC//yp4pqWuSkRrP8pEZzr1iqQu9j0kATmcvDX4EceGEWCtHop53qi6fWT06zDPrx Phb7DC7kAqoeeYux8/c8kjV9e+8CZwM0k2210OfDAQuFGKC+rnsGoYcjy9ss0rH3yu6ZxCmtp 4nhevM1rC1ZYu8y+o1AXCbm2+Sw2z9DPtOEYFwISDmSRfjOh29hl8qZxpzk6/UVR98UAmVq0o +/8Fe1ODh/4oPzE00T+/cxyItHDs0fXOic0Fv3ZsXmEbuiueGuHUgTTFgebFxMIPA+J1SHWx9 oC+CLqV6YeHNG7Nt9miVYxofoW0evoxbq9+ibV8ZwLX/cKb6bj7b/JswbjZh9+6IxJ1ESzxM Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=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-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:138650 Archived-At: > Sent: Thursday, July 28, 2022 at 1:47 AM > From: "Thibaut Verron" > To: carlmarcos@tutanota=2Ecom > Cc: "Emanuel Berg" , "help-gnu-emacs" > Subject: Re: Generality of defvar > > Le mer=2E 27 juil=2E 2022 =C3=A0 15:24, a = =C3=A9crit : >=20 > > > > Jul 27, 2022, 13:21 by thibaut=2Everron@gmail=2Ecom: > > > > > Le mer=2E 27 juil=2E 2022 =C3=A0 14:52, carlmarcos--- via Users list= for the GNU > > Emacs text editor <> help-gnu-emacs@gnu=2Eorg> > a =C3=A9crit : > > > > > >> > > >> > > >> Jul 27, 2022, 12:34 by >> incal@dataswamp=2Eorg>> : > > >> > > >> > carlmarcos--- via Users list for the GNU Emacs text editor wrote= : > > >> > > > >> >> (defun enable-error-diagnostics () > > >> >> "Enable error diagnostics with backtrace buffer=2E > > >> >> One can exit the debugger with the q command=2E" > > >> >> > > >> > > > >> > 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=2E > > >> > > > >> 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=2E But since this function > > doesn't have a global binding, you need to tell the docstring to use t= he > > appropriate keymap to look the binding up=2E > > > > > > Something like > > > > > > "Enable error diagnostics with backtrace buffer=2E > > > > > > \\ (note: this is the part telling emacs where t= o > > look for the key) > > > One can exit the debugger with the `quit-window' command (bound to > > \\[quit-window])=2E" > > > > > > > > Although quit-window is bound to q, the command \\[quit-window] just > > inserts > > M-x quit-window, rather than q=2E > > >=20 > Yes, that's precisely because quit-window doesn't have a global binding= =2E > You need to add \\ somewhere in the docstring to tel= l > emacs to show bindings for the backtrace buffers, rather than global > bindings=2E >=20 > Best wishes, > Thibaut Sounds good advice, but the result could be Uses keymap =E2=80=98backtrace-mode-map=E2=80=99, which is not currently d= efined=2E