From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#52053: 29.0.50; Nonsensical button "C-x C-f" in scratch buffer Date: Thu, 25 Nov 2021 11:07:44 +0000 Message-ID: <612d659daabc268505c4@heytings.org> References: <87czmr5gr7.fsf.ref@yahoo.com> <87czmr5gr7.fsf@yahoo.com> <612d659daa29af13c2e5@heytings.org> <83y25c5wn0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5237"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, larsi@gnus.org, 52053@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 25 12:08:14 2021 Return-path: Envelope-to: geb-bug-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 1mqCbs-00017L-Ou for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 12:08:12 +0100 Original-Received: from localhost ([::1]:42372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqCbp-0005qQ-LR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 06:08:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqCbi-0005q4-2h for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 06:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqCbh-0000W9-Pw for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 06:08:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqCbh-0001X1-Lu for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 06:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Nov 2021 11:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52053 X-GNU-PR-Package: emacs Original-Received: via spool by 52053-submit@debbugs.gnu.org id=B52053.16378384695869 (code B ref 52053); Thu, 25 Nov 2021 11:08:01 +0000 Original-Received: (at 52053) by debbugs.gnu.org; 25 Nov 2021 11:07:49 +0000 Original-Received: from localhost ([127.0.0.1]:55933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqCbV-0001Wb-L3 for submit@debbugs.gnu.org; Thu, 25 Nov 2021 06:07:49 -0500 Original-Received: from heytings.org ([95.142.160.155]:48586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqCbS-0001WO-2A for 52053@debbugs.gnu.org; Thu, 25 Nov 2021 06:07:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1637838464; bh=A3ietKAi6REO8s/yCFT49jha97lKsgBxCAm+60M9MAE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Qjs14NEje83F596tRx3O21i3TKlD5M66O/b8BvRAuHQR6BoV60sTXxdx+McPcedoI 6yu6IS5DAsR4G8YLngvEP/nxL6Tvc5WmJWjc+hwAFVXBTLn2/baP+mJOh7QjiAuONr gz5qOlwhYRnMDHPlc0KVaYc5F1CTg1XRJSCPolyOtt9Opj4iJm9qyA8qPbsm6o6bx+ 2aiEHrrZgHYdQERuZZjVdEA1O1QrPXRWaWvGAmZZTipv/mIctuam5lJgXUFcll7KSi oLI501P2PfN27clVzKH51y3qLx3bznwmi/gxd1w8yJdL2cx6UkEQrDC1ARqopFXOu5 xGTLIkZPi92Pg== In-Reply-To: <83y25c5wn0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220812 Archived-At: > > Thanks, but I'd prefer a less obscure way of telling whether this is > going into *Help* buffers. Is this really the only way? > I agree with you that it's a bit obscure, and I tried to find a better way, but couldn't. Someone else might have a better idea. I think another possible way would be to query this-command: (in-help (or (eq major-mode 'help-mode) (and this-command (where-is-internal this-command help-map t)))) But somehow I find this even less elegant, and I'm less certain about its correctness. > > Or maybe the mouse-face etc. should not be put as part of > substitute-command-keys, but by the Help mode itself, when the text is > already in the *Help* buffer? As we use substitute-command-keys more > and more, these problems will probably pop up more and more, so maybe we > should rethink whether this part is really something it should do. > With this patch it shouldn't happen outside of Help mode anymore.