From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#6462: `disabled-command-function' corrupts the `help-xref-stack' Date: Thu, 03 Jun 2021 10:43:15 +0200 Message-ID: <87bl8n8hjw.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29105"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 6462@debbugs.gnu.org To: MON KEY Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 10:44:34 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 1loixu-0007LH-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 10:44:34 +0200 Original-Received: from localhost ([::1]:40452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loixt-0003O0-IY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 04:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loixO-0003Ix-AN for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 04:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loixO-0004iz-1H for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 04:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loixN-0003hB-Uf for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 04:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2021 08:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6462 X-GNU-PR-Package: emacs Original-Received: via spool by 6462-submit@debbugs.gnu.org id=B6462.162270980614146 (code B ref 6462); Thu, 03 Jun 2021 08:44:01 +0000 Original-Received: (at 6462) by debbugs.gnu.org; 3 Jun 2021 08:43:26 +0000 Original-Received: from localhost ([127.0.0.1]:42197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loiwo-0003g6-GQ for submit@debbugs.gnu.org; Thu, 03 Jun 2021 04:43:26 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loiwm-0003fn-DG for 6462@debbugs.gnu.org; Thu, 03 Jun 2021 04:43:25 -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=EDCzuRZfDisU8n1HzUgIQD7WGMVL6XuPUMVET61rkbI=; b=M99NHwhx/L2m+NYoKqNPKspOXR 80jtQFTbk/6R+Zu7tz3JqaVya+JML37UMkrVqocviEZvLwadWuxA5UFCnOgL0iIp1umijKGAnqW64 eK0tk7nRGb/7P9hbvKrdc9LwIrSkQWTEvyB4SHzDFX3IkWOuqLXniC7zasCoQhisCEvA=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loiwd-0008R2-WA; Thu, 03 Jun 2021 10:43:18 +0200 X-Now-Playing: Little Simz's _Grey Area_: "Offence" In-Reply-To: (MON KEY's message of "Fri, 18 Jun 2010 17:17:00 -0400") 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:207915 Archived-At: MON KEY writes: > A recipe to reproduce the offending behavior: > > (progn > (when (get-buffer "*Help*") > (kill-buffer (get-buffer "*Help*"))) > (unless (get 'set-goal-column 'disabled) > (put 'set-goal-column 'disabled t)) > (describe-function 'enable-command) > (with-current-buffer (get-buffer "*Help*") > (describe-function 'disabled-command-function) > (help-go-back)) > (pop-to-buffer (get-buffer "*Help*"))) > > Tickle the command-loop to trigger on `set-goal-column' by typing: > > "C-x C-n" > > Tell the `disabled-command-function' to get f*cked by typing: > > "n" > > Remap `set-goal-column' to something irrelevant: > > (define-key ctl-x-map [remap set-goal-column] 'ignore) > > Now navigate through the `help-xref-stack' with either: > "C-c C-b" `help-go-back' > "C-C C-f" `help-go-forward' > > You should eventually run into the "*Disabled Command*" buffer. (I'm going through old bug reports that unfortunately got no response at the time.) I'm trying to follow the recipe, but you lost me here -- I just get "no previous help buffer". Are you still seeing this problem in more recent Emacs versions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no