From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68081: 30.0.50; derived-mode and display-buffer-alist Date: Thu, 04 Jan 2024 12:39:33 +0200 Message-ID: <835y09xtzu.fsf@gnu.org> References: <83r0j6774p.fsf@gnu.org> <342c493e-b0ba-40a8-8023-58a9bb04abd6@gmx.at> <83v88h5j7z.fsf@gnu.org> <9fc1e566-d99e-479a-bb38-fce6a964dfc0@gmx.at> <83edf43soc.fsf@gnu.org> <9cfb6641-9fda-4623-8623-a17341369c18@gmx.at> <8db30606-c98c-4078-a448-6ad31bd59768@gmx.at> <83plyl1c47.fsf@gnu.org> <27b95070-c8d6-4607-bd21-bacabe13c673@gmx.at> <83frzezkyv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: germanp82@hotmail.com, 68081@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 04 11:40:25 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 1rLL9D-0009ET-QF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jan 2024 11:40:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLL8v-0004Ja-Mh; Thu, 04 Jan 2024 05:40:05 -0500 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 1rLL8p-0004J0-V2 for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 05:39:59 -0500 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 1rLL8p-00024m-Ky for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 05:39:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLL8s-0005mK-TW for bug-gnu-emacs@gnu.org; Thu, 04 Jan 2024 05:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jan 2024 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68081 X-GNU-PR-Package: emacs Original-Received: via spool by 68081-submit@debbugs.gnu.org id=B68081.170436480222206 (code B ref 68081); Thu, 04 Jan 2024 10:40:02 +0000 Original-Received: (at 68081) by debbugs.gnu.org; 4 Jan 2024 10:40:02 +0000 Original-Received: from localhost ([127.0.0.1]:53643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLL8r-0005ly-Lg for submit@debbugs.gnu.org; Thu, 04 Jan 2024 05:40:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLL8p-0005lk-31 for 68081@debbugs.gnu.org; Thu, 04 Jan 2024 05:40:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLL8f-00023n-8o; Thu, 04 Jan 2024 05:39:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Nu04gsxqGBvzAiBtpZJ5T+l4gpDZt21fJHvCcK7NkTM=; b=FH3m/pCTMWoZ HRT5yz+GFjInH5wnAgz1upNcP7r2Y/ARxF/womfi8vAheTsnsH9pk1ndOPcyhNNYBmiuy/dBcP80y itKzffNukyUM0oUJKb34/b//Nwbbr29cNDq8V0er3f/+RUi29cwGbL5C6E709zbbxu4y2lR4DcAym BUYr4mtektVkykMOr+a2JoUeMuZaCtMyN6jakNh0KqJLZO/GPCeSUsgLQfft0Lddlo4uUbx6xQKxR LK/QlLTWcE3+7VUONfz9hXBja1h2wGMmB/u3K3ACiYIih3kG5DiglrLCVowdyjja9r/sDc9Zy1MF9 RS+HGl4RoUCpRPmIV1yw2g==; In-Reply-To: (message from martin rudalics on Thu, 4 Jan 2024 11:21:17 +0100) 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:277304 Archived-At: > Date: Thu, 4 Jan 2024 11:21:17 +0100 > Cc: germanp82@hotmail.com, 68081@debbugs.gnu.org > From: martin rudalics > > >> 'info' initially used 'switch-to-buffer' > >> > >> (if (get-buffer "*info*") > >> (switch-to-buffer "*info*") > >> (Info-directory)))) > >> > >> Later it called 'pop-to-buffer' as > >> > >> (if (get-buffer "*info*") > >> (pop-to-buffer "*info*") > >> (Info-directory)))) > >> > >> The breakage occurred when it started to call > >> > >> (pop-to-buffer "*info*") > >> > >> without checking whether that buffer exists. It sometimes backfires to > >> use a feature meant for interactive use (like 'pop-to-buffer' creating > >> its buffer autonomously) in non-interactive calls. Sometimes it happens > >> decades after that feature was misused. > > > > Do other places that are affected by the same change do the same > > mistake of unconditionally calling pop-to-buffer? > > Maybe my formulation was not clear. Basically, all calls of 'info' > without first argument are affected by the change. Thanks, but I was asking about callers of pop-to-buffer other than 'info'. German said in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68081#26 that other callers, in addition to 'info' are also affected.