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 18:39:35 +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="39140"; mail-complaints-to="usenet@ciao.gmane.io" Cc: carlmarcos@tutanota.com, Emanuel Berg , help-gnu-emacs To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 19:02:31 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 1oGkQZ-0009y3-CF for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 19:02:31 +0200 Original-Received: from localhost ([::1]:36814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGkQX-0002SX-T5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 13:02:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGk4b-00068B-T7 for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:39:51 -0400 Original-Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:38793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGk4Z-0008C6-Nl for help-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:39:49 -0400 Original-Received: by mail-io1-xd35.google.com with SMTP id e69so13972607iof.5 for ; Wed, 27 Jul 2022 09:39:47 -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=4FTlDUCOSogEl91513ohQI+L/gn8qAgX3BzvfaKRDuc=; b=Ze9WAcTNgWFN55KwukXuRToHpXz073FkVzguuFM80usGUeq9Yx64d0rjB60c+wh3zS Q3moTe2RE+2IGx6g4yAogCz1Shrvnf/+nrlnk/5Utjsg310FE6Xv2HiNhtmJuJJ4nHoT YhNI4PkOjdSSzicgQj26DHKxp6WlcLP1PXoUDZDbyVPij6E0c9jP9oEiU+TVx/HRJj6c hteszKKGxZB4EczHfbNy28NcSvL9Oyu0paXaLVfw1c2oQQQYFpdJTEOhZX9yhetCcS18 40lzLikbpmzG3YxqgN7dmQh9lWJ9MvsRCWdIv5Yjz118NGtAGVVV2j+EJz80TuHJfc6m 019g== 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=4FTlDUCOSogEl91513ohQI+L/gn8qAgX3BzvfaKRDuc=; b=zwy7AH3ownlAi/plIKPlD10PtKqRdPABAZTpxxwYqcO5D6laEmwgJaYmJXdRHMFeA5 WNn3scVjsCt0xMI/4xl2FfUYE0Dh5dVDIc++8Xrf3Uq/GjOOZGodWJD79sDL1mPl/6EQ PZnxfcy5rGBlWgMH9+pmPJ0K8980gXWxHmF2ZPC3bPDAVnBfEJGh2Ujbkqs3St51h7vW ZjSZw5iK3dxDowwd6ZlbYues2BjunvPLZvW94eSTO2uyJ6sW1WS8kxjrd1ar/sdF79Tb gIP9jEbn3AVPN9fKDzeghWn4saXBesid83Tme0PlySwvM9bTmEFZGpv+RBnaraXAQ/Nf 5FBg== X-Gm-Message-State: AJIora9D9/6pP3G5v/JeIQ/UHbL/d7WxhyGYAVQV2HRAn1taQGRKH0dU e55ituUqLB0bs+3E1NGqo5/7136GMPB+OCzIlko= X-Google-Smtp-Source: AGRyM1ufSZ6UmOPCT6m1WKCevSjLDq5psX+xcbfB5pOHMBafqz0zuHySCKT7fmwea9JIutf4GnLZTJJMNWMwzbqXgZI= X-Received: by 2002:a6b:cd4f:0:b0:675:b0bf:d999 with SMTP id d76-20020a6bcd4f000000b00675b0bfd999mr8051893iog.193.1658939986388; Wed, 27 Jul 2022 09:39:46 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=thibaut.verron@gmail.com; helo=mail-io1-xd35.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:138651 Archived-At: Le mer. 27 juil. 2022 =C3=A0 18:29, Christopher Dimech a = =C3=A9crit : > > > > Sent: Thursday, July 28, 2022 at 1:47 AM > > From: "Thibaut Verron" > > To: carlmarcos@tutanota.com > > Cc: "Emanuel Berg" , "help-gnu-emacs" < > help-gnu-emacs@gnu.org> > > Subject: Re: Generality of defvar > > > > Le mer. 27 juil. 2022 =C3=A0 15:24, a =C3=A9c= rit : > > > > > > > > Jul 27, 2022, 13:21 by thibaut.verron@gmail.com: > > > > > > > Le mer. 27 juil. 2022 =C3=A0 14:52, carlmarcos--- via Users list fo= r the > GNU > > > Emacs text editor <> help-gnu-emacs@gnu.org> > a =C3=A9crit : > > > > > > > >> > > > >> > > > >> Jul 27, 2022, 12:34 by >> incal@dataswamp.org>> : > > > >> > > > >> > carlmarcos--- via Users list for the GNU Emacs text editor wrot= e: > > > >> > > > > >> >> (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 te= ll > > 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 =E2=80=98backtrace-mode-map=E2=80=99, which is not currently = defined. > My bad, it should have been debugger-mode-map.