X-Loop: help-debbugs@HIDDEN Subject: bug#50785: 28.0.50; error doesn't use help-key-binding face from substitute-command-keys Resent-From: Stefan Kangas <stefan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Sep 2021 18:34:02 +0000 Resent-Message-ID: <handler.50785.B.16325084191342 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 50785 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50785 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16325084191342 (code B ref -1); Fri, 24 Sep 2021 18:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Sep 2021 18:33:39 +0000 Received: from localhost ([127.0.0.1]:59261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTq0x-0000La-K1 for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 14:33:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:48880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1mTq0w-0000LS-RM for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 14:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1mTq0w-0006S8-Jd for bug-gnu-emacs@HIDDEN; Fri, 24 Sep 2021 14:33:38 -0400 Received: from mail-pj1-f44.google.com ([209.85.216.44]:37795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1mTq0v-0001qE-Ak for bug-gnu-emacs@HIDDEN; Fri, 24 Sep 2021 14:33:38 -0400 Received: by mail-pj1-f44.google.com with SMTP id me5-20020a17090b17c500b0019af76b7bb4so10243105pjb.2 for <bug-gnu-emacs@HIDDEN>; Fri, 24 Sep 2021 11:33:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=fCBNdLTr+F4Co/ssRktYPSrnznQ/mEMqtDjdIPkPqJY=; b=q1elPz2457/xqOIyDFsHdh+7mxsKvHHtv+eQMjNtFqKfCMM3RqBPpL0eEl4oXDh4Ks 4RIKne6EjZaoF8eCyIbmhWXHyJcSoJvcFMKhfZgR5SWWAuBw2i4cleVW5/emW9zOyXXI gJtOfubUFluP+vrGfBfAGTRCxzQ/9WVo8hsvt5as4FGkhEAiyOlaVQSCVTaRJa+QECmo x51yzWw6+n7dRq2U9pSO4E61efZdltVdsrp+fPIkVAVUBzGnvoyZHw6hBhJNXR1slpbi P0q9l1dUDNLegkwqpaZ9f7pghgi24eRP//4qlpm0t+LZxx6EIyzBNsPv0aZ2aWkjlD6z 43bA== X-Gm-Message-State: AOAM532jXltb5FchIjB36IMYrN4wtwdSrDNtUBUA6lMS8B/Q+l7KiP/Y fKbMKrxjhdmDEggCeC22EBtbDiP0FvSylkquqUTbF0s5 X-Google-Smtp-Source: ABdhPJxwztE168Gi0dvbAuQcB/x6vFIdkb59T2liCAITY5dm1J96SaktuXcgoiFwCa9svsXV9UsTI7wnNXiIVxR9SQQ= X-Received: by 2002:a17:90a:5583:: with SMTP id c3mr3833485pji.133.1632508415596; Fri, 24 Sep 2021 11:33:35 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Sep 2021 11:33:35 -0700 From: Stefan Kangas <stefan@HIDDEN> MIME-Version: 1.0 Date: Fri, 24 Sep 2021 11:33:35 -0700 Message-ID: <CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@HIDDEN> Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.216.44; envelope-from=stefankangas@HIDDEN; helo=mail-pj1-f44.google.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_20=-0.001, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.8 (-) Severity: minor In "emacs -Q", if I use the following function: (defun foo () (interactive) (error (substitute-command-keys "Use \\[next-line]"))) The error message says "Use C-n", but "C-n" is not displayed with the `help-key-binding' face. In contrast, `message' does not have this problem: (defun foo2 () (interactive) (message (substitute-command-keys "Use \\[next-line]"))) Here, "C-n" is displayed with the correct face.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Stefan Kangas <stefan@HIDDEN> Subject: bug#50785: Acknowledgement (28.0.50; error doesn't use help-key-binding face from substitute-command-keys) Message-ID: <handler.50785.B.16325084191342.ack <at> debbugs.gnu.org> References: <CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@HIDDEN> X-Gnu-PR-Message: ack 50785 X-Gnu-PR-Package: emacs Reply-To: 50785 <at> debbugs.gnu.org Date: Fri, 24 Sep 2021 18:34:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 50785 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 50785: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50785 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#50785: 28.0.50; error doesn't use help-key-binding face from substitute-command-keys Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 25 Sep 2021 02:04:02 +0000 Resent-Message-ID: <handler.50785.B50785.163253543012055 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 50785 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas <stefan@HIDDEN> Cc: 50785 <at> debbugs.gnu.org Received: via spool by 50785-submit <at> debbugs.gnu.org id=B50785.163253543012055 (code B ref 50785); Sat, 25 Sep 2021 02:04:02 +0000 Received: (at 50785) by debbugs.gnu.org; 25 Sep 2021 02:03:50 +0000 Received: from localhost ([127.0.0.1]:59822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mTx2b-00038L-Uk for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 22:03:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mTx2X-000383-CB for 50785 <at> debbugs.gnu.org; Fri, 24 Sep 2021 22:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uKQH5L5/jx4AzdHuPJwmAg/2faZ6uR7ZzljGklMRbD8=; b=RktLCy30PYl8XqA6OAOUZ9g98+ 54HW1LABccKPl2zlMO3tfOl4sJCIvP9U9xxzT+pIjwo3+eVZWOxf/kFmlwVAMuFRFktHfEZ4AhpRD Zl+eNwqFPzhB+KxrUH97Ip0Uev/6+ob6jfZ5iv1o5PIwwwWNNfQX6yWjDiQ26pS2Y6m8=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mTx2P-0008Ha-AL; Sat, 25 Sep 2021 04:03:39 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@HIDDEN> X-Now-Playing: Bertine Zetlitz's _Beautiful So Far_: "Tigerlily" Date: Sat, 25 Sep 2021 04:03:36 +0200 In-Reply-To: <CADwFkmmDDUedcLyP_-FFAsGzTxH4Xj=k_=RJvwZ+KrJD_6_5eg@HIDDEN> (Stefan Kangas's message of "Fri, 24 Sep 2021 11:33:35 -0700") Message-ID: <87sfxtpg1z.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas <stefan@HIDDEN> writes: > In "emacs -Q", if I use the following function: > > (defun foo () > (interactive) > (error (substitute-command-keys "Use \\[next-line]"))) > > The error message says "Use C-n", but "C-n" is not disp [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Stefan Kangas <stefan@HIDDEN> writes: > In "emacs -Q", if I use the following function: > > (defun foo () > (interactive) > (error (substitute-command-keys "Use \\[next-line]"))) > > The error message says "Use C-n", but "C-n" is not displayed with the > `help-key-binding' face. Hm... is `error' stripping text properties before displaying, by any chance? If so, is there any particular reason why that would make sense in general? Hm... perhaps the idea is that `error' is used in low-level circumstances, so we don't want to rely on faces etc actually working? Anybody know? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.