From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16767: 24.3.50; `C-x 5 b' for special-display buffers Date: Tue, 7 Sep 2021 10:15:12 +0200 Message-ID: <2b306c6f-8c25-b8c2-0390-305e5c42036d@gmx.at> References: <530093D6.70002@gmx.at> <87sfyihx4q.fsf@gnus.org> <79c1e006-3871-ee08-dd3d-df7957f7343b@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 16767@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 10:28:56 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 1mNWTQ-0006P5-Jp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 10:28:56 +0200 Original-Received: from localhost ([::1]:51234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNWTO-00062V-Lq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 04:28:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNWGx-0007mS-Gs for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 04:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNWGx-0007ED-89 for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 04:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNWGw-0001HX-1G for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 04:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 08:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16767-submit@debbugs.gnu.org id=B16767.16310025244866 (code B ref 16767); Tue, 07 Sep 2021 08:16:01 +0000 Original-Received: (at 16767) by debbugs.gnu.org; 7 Sep 2021 08:15:24 +0000 Original-Received: from localhost ([127.0.0.1]:55383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNWGK-0001GQ-Lw for submit@debbugs.gnu.org; Tue, 07 Sep 2021 04:15:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:38765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNWGJ-0001G7-NQ for 16767@debbugs.gnu.org; Tue, 07 Sep 2021 04:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631002515; bh=Z+1HfED7G0n84/T50s2C9IMundNwsCHT9OrP/V9mWYI=; h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To; b=JzNa1EQsgI3to4eV2WMintM8NxbBmwOnjXT4P/a6DTSYuCZhhUu2Oz3OdNc/oW54i KIT2P7fE4h8j2T6FPFz5D2y7VsPaHi4LMADI82bNCNvrklfKGM2E98UpsFIa0lvElM p3JKVNgvD4dMTQkmxeqfFy5qmguuejAinGIsf8nE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgvvT-1mtFRW1ijF-00hK2d; Tue, 07 Sep 2021 10:15:15 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:eNnSq1setVqI5fuZT1luTvBYEmu16G4Oqkj5JoUjtrR0Utf7p6q 2cVUMfLYdtEXkW4Ih6QjmjjUVhd8uqehV/l7WIOufBAaBu0Nouh4OrsxwHyeAKqTrkZh3r4 gWJtjVvw8O5+INmuGPDfjKsB6I1aWbszrRqjPxdyzBl/JQYGKiR6UziiQh+jtMy2Q8EKONO WS1Bqjhr3TvtW8CxFs7yg== X-UI-Out-Filterresults: notjunk:1;V03:K0:yP3So3kPw44=:/mBo4bXG9pGCJa9ewkfivB ljfqjVztsZ7B6vPQB59q6q5ChnH84X55ZwzeepyCnk3u/xw5q8Dkp//BL7J4TmD5PFwln0Hhx WWaNdv/jdM7xWFoQ1wC3XWpJ7ZFhB22FNl15EA0Sc92asus4Yhv/2VF3u4Rhermh/yOZo+XZT bVKRBlmfej+1o6FCY2t+v/xziuKW7rOyD50Sa98WydsUb1gJqLQ3SAFooMoWjsPIzzlLvLRFK d/DuM8mBiS2EtoVqMYtNXgv/ISWI4Vaxny4KF3l32LkBiw+GrRQBhSwvXPtP8edZdIHZpL6Sh LEx/4xggLotNPZkZaI2huj2gpqy5UmrfR7DJIN59PqnazYSqbI3AI7hRqGcfFy4ACccFsGtnb 3H8vWjQ43wpGLvKZ3Dk6yz/2qcdkW4uNGe43zeAde7bpGwrgaAr8KQtRa1aF0EI4XT+8HQeJs X50f/KNQcEYK8q+qoN6gv3DzXrLQH3Rmo/lgJGoalx67uo66gwUzCkMEK1OTC0upAPj7xrKRK BLh3k1n+/3DU8GE1nIubm8NurSm6zD4f0VLsXp6Ktl60VXDga5wfrPTjb9FFdxcGFkpauO7Yx IYamXadnK86h27Ho8kUcKtbPOOj9EFo5Uu0++Gh9k9IeRMmxW0XZ1YVTcCy4DQYWn7SEC2w7L w8Pz2HTJj9xOzNObWxPHxBjVFp6b4as6zmgnUYlxxuXRBDvTZrBpXEYIihRwdRktKqjYRoeAJ 7XvjwSM7IE5GpDLIoOQQ4qYPof7IVSLGsOuspGb339ceIcQeIzZhUg0z3r+l8E1+t+Hc0NqD 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:213675 Archived-At: > So the bug seems rather that C-x 5 b with `special-display-regexps' nil > pops up a new frame when the buffer already appears on some frame. Summarizing: C-x 5 b with `special-display-regexps' uncustomized behaves as expected with one minor inaccuracy: - The doc-string says that "By default, if the buffer is already displayed (even in the current frame), that window is selected." - The manual says more accurately that "If the specified buffer is already displayed in another window, in any frame on the current terminal, this switches to that window instead of creating a new frame. However, the selected window is never used for this." So if *scratch* is displayed in the selected window, that window is not used but the doc-string doesn't tell that. C-x 5 b with `special-display-regexps' customized in a way that matches the name of the buffer to switch to, behaves as advertised. In the case at hand, it assumes that if *scratch* already appears in a window, *scratch* has been "displayed specially" in that window and consequently reuses that window as prescribed. Popping up a separate window or frame for *scratch* would be wrong. Concluding: This is "not a bug" and all statements made in the original report are based on a misunderstanding of the now obsolete concept of the special display of buffers. It's probably about time to remove that code from base. martin