From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "kassick@gmail.com" Newsgroups: gmane.emacs.bugs Subject: bug#71654: [PATCH] Fix display-buffer-override-next-command Date: Wed, 19 Jun 2024 18:53:08 -0300 Message-ID: References: <87zfrg3a4g.fsf@jeremybryant.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fd5d82061b45398e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9045"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71654@debbugs.gnu.org To: Jeremy Bryant Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 20 00:41:35 2024 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 1sK3zi-00029p-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jun 2024 00:41:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sK3zB-00016e-17; Wed, 19 Jun 2024 18:41:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sK3z9-000166-AK for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 18:40:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sK3z9-0001Lj-2x for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 18:40:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sK3zC-0005VE-H6 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2024 18:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "kassick@gmail.com" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jun 2024 22:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71654-submit@debbugs.gnu.org id=B71654.171883685821114 (code B ref 71654); Wed, 19 Jun 2024 22:41:02 +0000 Original-Received: (at 71654) by debbugs.gnu.org; 19 Jun 2024 22:40:58 +0000 Original-Received: from localhost ([127.0.0.1]:33758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK3z7-0005UK-O0 for submit@debbugs.gnu.org; Wed, 19 Jun 2024 18:40:58 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:59427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK3G9-00041y-CD for 71654@debbugs.gnu.org; Wed, 19 Jun 2024 17:54:29 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42249a4f9e4so2003815e9.2 for <71654@debbugs.gnu.org>; Wed, 19 Jun 2024 14:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718834000; x=1719438800; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4ExysXP0PtCyFrrqHuDJzEJ+9/tt+yA7DG32l9CSRjk=; b=hSg+Jm8eNpgih7r1P+NhGB90lGP0P1bM46j8kCTsQX6zIPCi7G9tOzqkCFFRtLM0zF ehXcroOOgfTUR1Wd2mlFmgKExFysIcSiLzHeIG6SFlUc4j/0UlJyI8JHaKwh6mwiTpOz bbexCOO81TG2YBA4nDsIIshV9xwu9y4Fb5UYhlRA8HbhfY91JFqJzH4yE/VdTr8Ooxnk PQ9NA5E29HZZi6XJGErtYS3vAhF9ZF+hXYH+DjEDTK8/499yMSMY+GgTnb3qxiFqx5Fy RATMGYUzOGfoWAylr+DT+CXnaEqIYDyg2q3Efn6QOtxbcM3D8pL3/Z5kReTHX2aW0sni wzxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718834000; x=1719438800; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4ExysXP0PtCyFrrqHuDJzEJ+9/tt+yA7DG32l9CSRjk=; b=n7oBXwoZCUUh/pKVq/y3tIlsueWO5efr8s9lKpIL54DB26O7rB/RC4AkJS3KiQ+HrB r3xefDTB4mkBaX2KgJkqy/15hwszE8oke/hHlTI6Hf9b9fifXp02dfEkA7fmtzf2rj/E mxr99mYdswGFBaVksrYeC/ndqUal/il3PZSEwsOJpCdyAU1S9MJ6xoNul1Mynp8l1vew cCEpt+LyTaRgHMVHlZjf3LiYGQs+p5Ksu3vU2GtSEZsh2JdHj5QiUNDTuxjoH4QHKKx8 QGWS+jCMu+91O855XasgxFAsebg6tgIRpDHMKPRmNPCcS3kGmp1MWsEJqWEbRe6v1QBC nw+A== X-Gm-Message-State: AOJu0YyeiD3xYW2V6Iuon5G3XKQOXrUWykwnlWENgjLLRH3R4X3Nymkm 6MNey6BIwLh/ZPk7KDOQ4ro5i4+DFHCr7vO7VdnfvdEooNkZi6XFGYIZWVD8LD3KGZZDPN58QIE XVlk0n8p4JoV3X4p3rnVWHFiP8R0= X-Google-Smtp-Source: AGHT+IFKYQBcv7ff6Qve4Y7tPplgt5lLOUe+kvf63dYSHNfZjAGoiHFUqaLru6lPuJLaN3o+3Jcd4Icmv/Je8/6VWr0= X-Received: by 2002:a05:600c:48a3:b0:424:78c5:c562 with SMTP id 5b1f17b1804b1-42478c5c698mr18806835e9.0.1718833999861; Wed, 19 Jun 2024 14:53:19 -0700 (PDT) In-Reply-To: <87zfrg3a4g.fsf@jeremybryant.net> X-Mailman-Approved-At: Wed, 19 Jun 2024 18:40:55 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287517 Archived-At: --000000000000fd5d82061b45398e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No need for any mode, just - M-S-: (setq display-buffer-overriding-action (cons #'ignore nil)) RET ;; Eval - C-x 4 4 ;; (other-window-prefix) - C-x C-f ;; (find-file) and you should already see the error. After that, you probably will end up with an unusable emacs, so just eval (setq display-buffer-overriding-action (cons nil nil)) and you'll be good to go. Em qua., 19 de jun. de 2024 =C3=A0s 18:17, Jeremy Bryant escreveu: > "kassick@gmail.com" writes: > > > When display-buffer-overriding-action's car is set to a function > > instead of a list, display-buffer-override-next-command must ensure > > that the car is a list before pushing a new element to it, otherwise > > the car will become a itself a cons-cell and the clear-fun will > > trigger a wrong-type-argumen error when trying to delq the action. > > > > The error can be triggered by using some minor mode that > > updates display-buffer-override-next-command (such as purpose-mode) > > and then calling other-window-prefix. > > > > To reproduce the bug, what other built-in modes (instead of > purpose-mode) can be used? > --=20 Rodrigo Virote Kassick ------------------------------------------------------------ --000000000000fd5d82061b45398e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No need for any mode, just

-= M-S-:=C2=A0 (setq display-buffer-overriding-action (cons #'ignore nil)= ) RET=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Eval
- C-x 4 4=C2=A0= =C2=A0 ;;=C2=A0 (other-window-prefix)
- C-x C-f=C2=A0 ;; (fin= d-file)

and you should already see the error.<= /div>

After that, you probably will end up with an unusa= ble emacs, so just eval (setq display-buffer-overriding-action (cons nil ni= l)) and you'll be good to go.

Em qua., 19 de jun. de 2024 =C3= =A0s 18:17, Jeremy Bryant <jb@jer= emybryant.net> escreveu:
"kassick@gmail.com" <kassick@gmail.com> writes:

> When=C2=A0display-buffer-overriding-action's car is set to a funct= ion
> instead of a list, display-buffer-override-next-command must ensure > that the car is a list before pushing a new element to it, otherwise > the car will become a itself a cons-cell and the clear-fun will
> trigger a wrong-type-argumen error when trying to delq the action.
>
> The error can be triggered by using some minor mode that
> updates=C2=A0display-buffer-override-next-command (such as purpose-mod= e)
> and then calling other-window-prefix.
>

To reproduce the bug, what other built-in modes (instead of
purpose-mode) can be used?


--
Rodrigo Virote Kassick
---------------------------------------------= ---------------
--000000000000fd5d82061b45398e--