From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Generality of defvar Date: Wed, 27 Jul 2022 15:21:17 +0200 Message-ID: References: <87r127h40s.fsf@posteo.net-N7wjq17--3-2> <87pmhqbuoo.fsf@dataswamp.org> Reply-To: thibaut.verron@gmail.com 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="34229"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emanuel Berg , help-gnu-emacs To: carlmarcos@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 15:26:49 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 1oGh3o-0008dG-DP for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 15:26:48 +0200 Original-Received: from localhost ([::1]:41162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGh3n-0001zS-8u for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 09:26:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGgym-0006dT-FY for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 09:21:39 -0400 Original-Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]:44930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGgyh-0000w7-UP for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 09:21:35 -0400 Original-Received: by mail-il1-x129.google.com with SMTP id 1so8802167ill.11 for ; Wed, 27 Jul 2022 06:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=rPghlWjWS8pE2+MBfr37z6eMZG2cg1V/00+nwNHyRR4=; b=eQ4Gl156m7l5cnGTJdm8d8UJOKzryUBsFOpc4jSjl9b6hw79a7yNt9ZHN9svfjAevA se1ED3TW7Tc7xRQLj88mdwDi5r78NTzQCOW4EiBsDgThQzj+SavUUyKPpD0pLXmEr9qw uj+cDgh31NpUzqEI+bFhUEjDIJVciNP08J6QszwOAmy9zYa1Au2upmz/V5RXSdoB+AxP SF4wHRlJnAwOZGDUfxxip+9+gi+JRd4MbQ05VDVtgZPrLqUIOuJUBcAeO0lAeJSe2k0A dm4N5Dbj/aRKiOJdTjzmxtY1tt6HEV66ZO2XuDSbRtna/Rn53L2zEHRHmHF2oASnWGt6 e5wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=rPghlWjWS8pE2+MBfr37z6eMZG2cg1V/00+nwNHyRR4=; b=rZwYeWyZRu9fbWDAlfNJB1XC4Hw12NSwpzlPVAd8/3Hhm4eF8y+Olm8De8d5q2b4OH q/kH5wOm0I2otxthehk9CRbOf7KuBerzgqlNq0W126V8rmDx06vuZiBRZ/fDzbb3ZhLy tCVug27m2FQJcOxAKoD1rQb+IaEZOOWsa/CQSlJf8bS6MibyCG1eB4fJDos//VWNeRZY fvjUcRroyU06S2vGqFBAzwVdKYdKsqdtJT8MVcHTSeakkDfoAkMewqpv9l1PEH+Zqgte LySUOZK9qEzEGX0ev6AiDHZsQpij1/LN1uggAWGIFWmBOt6oYpnIsdY8o71WplvAl6AR TlIA== X-Gm-Message-State: AJIora/B01qKNJ+nj/GhhZC8t+ncSHtGXgxmUQCeKvLvoR9y8vzuYrlk W59klvrhtt6JjQZ0000a4Br2xePFSkfCagS9snI= X-Google-Smtp-Source: AGRyM1tLf6fHK0y3PFzW/CosSJ8qrnJYRpFJXR7Nk9aEJc8XDf8SsXki6ZlLGs1Zh7Qh/okb2LReFa0ztveTepI1Wp0= X-Received: by 2002:a05:6e02:178d:b0:2dd:e86:85e9 with SMTP id y13-20020a056e02178d00b002dd0e8685e9mr8127258ilu.244.1658928089366; Wed, 27 Jul 2022 06:21:29 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::129; envelope-from=thibaut.verron@gmail.com; helo=mail-il1-x129.google.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:138646 Archived-At: Le mer. 27 juil. 2022 =C3=A0 14:52, carlmarcos--- via Users list for the GN= U Emacs text editor a =C3=A9crit : > > > -- > Sent with Tutanota, enjoy secure & ad-free emails. > > > > Jul 27, 2022, 12:34 by 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])."