From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: Ed Avis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Apr 2015 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20472@debbugs.gnu.org X-Debbugs-Original-To: "'bug-gnu-emacs@gnu.org'" Received: via spool by submit@debbugs.gnu.org id=B.14304080245568 (code B ref -1); Thu, 30 Apr 2015 15:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Apr 2015 15:33:44 +0000 Received: from localhost ([127.0.0.1]:57727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnqT5-0001Rg-PA for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46696) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnqT0-0001RO-CJ for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnqSt-0001dv-QJ for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSt-0001dr-Mm for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSp-0007nf-Rr for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnqSl-0001cI-Ux for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:23 -0400 Received: from mail1.bemta3.messagelabs.com ([195.245.230.166]:27059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSl-0001c4-M4 for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:19 -0400 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id 89/17-12069-93B42455; Thu, 30 Apr 2015 15:33:13 +0000 X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1430407993!7667478!1 X-Originating-IP: [213.212.127.155] X-StarScan-Received: X-StarScan-Version: 6.13.14; banners=waniasset.com,-,- X-VirusChecked: Checked Received: (qmail 7720 invoked from network); 30 Apr 2015 15:33:13 -0000 Received: from unknown (HELO WCL-EXCHCAS03.wcl.local) (213.212.127.155) by server-9.tower-31.messagelabs.com with AES128-SHA encrypted SMTP; 30 Apr 2015 15:33:13 -0000 Received: from WCL-EXCH02.wcl.local ([169.254.1.57]) by WCL-EXCHCAS03.wcl.local ([149.85.126.212]) with mapi id 14.03.0123.003; Thu, 30 Apr 2015 16:33:12 +0100 From: Ed Avis Thread-Topic: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Thread-Index: AdCDWvNSIyPXHUbCS6+n/GFnG8hk+w== Date: Thu, 30 Apr 2015 15:33:11 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.168] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Sometimes Emacs creates a small window such as *log-edit-files*. If you go to that window and do C-x b, you enter the name of the buffer to switch to as usual, but then see the error Cannot switch buffers in a dedicated window This error message should appear earlier, as soon as C-x b is given. Emacs should not ask you to type in the new buffer name before it tells you that switching buffers is not allowed. In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-11-03 on wcl-linux04.wcl.local Configured using: `configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png= --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC c g TAB C-a C-k C-x b G u TAB RET . TAB RET C-x=20 v =3D ESC=20[ 6 ~ ESC [ 5 ~ C-x o C-x o C-x v =3D C-x v v=20 R e d u c e SPC DEL d SPC f i l l i n g SPC f r o m=20 SPC 1 0 0 SPC t o SPC 3 0 SPC d a t DEL y s SPC f o=20 r SPC s o m e SPC m o n t h l y SPC s t r a t e g i=20 e s . RET T h i s SPC c a n SPC b e SPC d o n e SPC=20 n o w SPC t h e SPC h DEL g a p s SPC i n SPC C o n=20 s e n e s u s DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL=20 C-x o C-x b b u TAB RET C-g C-g C-g C-x b b u TAB RET=20 C-g C-g C-g C-x o C-x b b u TAB C-g C-x o C-x o C-x=20 b * l o TAB g - e TAB C-g C-x b C-g C-x o C-x o C-x=20 o ESC x C-g C-x b f a RET C-x b g g RET C-g C-g C-x=20 o C-x b g g RET C a n n o t SPC s w i t c h SPC b u=20 f f e r s SPC i n SPC a SPC d e d i c a t e d SPC w=20 i n d o w C-x o C-x o C-x o C-@ C-a ESC w ESC x r e=20 p o r SPC e SPC b SPC RET Recent messages: Press C-c C-c when you are done editing. Enter a change comment. Type C-c C-c when done user-error: Cannot switch buffers in a dedicated window Quit [3 times] user-error: Cannot switch buffers in a dedicated window Quit [4 times] Making completion list... Quit [3 times] user-error: Cannot switch buffers in a dedicated window [2 times] Quit [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail warnings dired-aux vc-bzr vc-sccs vc-svn vc-cvs vc-rcs mule-util macros smerge-mode rect novice edmacro kmacro etags log-view nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sql view diff-mode vc vc-dispatcher tabify imenu man sh-script smie executable pcmpl-rpm dabbrev ffap thingatpt url-parse auth-source eieio eieio-core gnus-util password-cache url-vars nroff-mode help-mode dired misearch multi-isearch vc-git cus-edit wid-edit cus-start cus-load perl-mode pcmpl-unix xterm time-date log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log server csharp-mode advice help-fns byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs cl-lib compile shell pcomplete comint ring ansi-color tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 1254638 183358) (symbols 48 29960 0) (miscs 40 760 4364) (strings 32 63447 13092) (string-bytes 1 3117305) (vectors 16 32306) (vector-slots 8 1444102 177426) (floats 8 560 1031) (intervals 56 189950 392) (buffers 960 151) (heap 1024 93365 1704)) --=20 Ed Avis Please ignore any autogenerated disclaimer below this line. This email is intended only for the person to whom it is addressed and may= contain confidential information. Any retransmission, copying, disclosure= or other use of, this information by persons other than the intended reci= pient is prohibited. If you received this email in error, please contact t= he sender and delete the material. This email is for information only and = is not intended as an offer or solicitation for the purchase or sale of an= y financial instrument. Wadhwani Asset Management LLP is a Limited Liabili= ty Partnership registered in England (OC303168) with registered office at = 40 Berkeley Square, 3rd Floor, London, W1J 5AL. It is authorised and regul= ated by the Financial Conduct Authority. From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Apr 2015 16:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ed Avis , 20472@debbugs.gnu.org Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143041142016505 (code B ref 20472); Thu, 30 Apr 2015 16:31:03 +0000 Received: (at 20472) by debbugs.gnu.org; 30 Apr 2015 16:30:20 +0000 Received: from localhost ([127.0.0.1]:57754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnrLu-0004Hb-95 for submit@debbugs.gnu.org; Thu, 30 Apr 2015 12:30:19 -0400 Received: from mout.gmx.net ([212.227.15.15]:52799) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnrLp-0004HD-Er for 20472@debbugs.gnu.org; Thu, 30 Apr 2015 12:30:15 -0400 Received: from [62.46.213.218] ([62.46.213.218]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lee2I-1Zd9sW2Ql4-00qOra; Thu, 30 Apr 2015 18:30:06 +0200 Message-ID: <55425888.6080106@gmx.at> Date: Thu, 30 Apr 2015 18:30:00 +0200 From: martin rudalics MIME-Version: 1.0 References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> In-Reply-To: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Fl+wdslimCr9MidxqqcsTEGJ67KrJ+qXg1dPRH0q9ADRMPSGEWJ 6bdmWyTNkj+sISb2DeFcVnJbexVQ/PulvAbv/gcFtJZRy1tudNJ4voGlk3uYzuTxpu9Rz7M LrFes0f8a23l541NKZfnS8rT6gCA2xuZQrTLZWbFq6wxq1XaeAPwAo8B27cJoLSPpU1Br+E vhZva4X9B2/imjvG3S7KA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Sometimes Emacs creates a small window such as *log-edit-files*. > If you go to that window and do C-x b, you enter the name of the buffer > to switch to as usual, but then see the error > > Cannot switch buffers in a dedicated window > > This error message should appear earlier, as soon as C-x b is given. > Emacs should not ask you to type in the new buffer name before it tells > you that switching buffers is not allowed. Indeed. Unless someone has a better idea I'll install something like the below. martin --- a/lisp/window.el +++ b/lisp/window.el @@ -6916,7 +6916,13 @@ window. Return the buffer switched to." (interactive - (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window)) + (cond + ((eq (window-dedicated-p) t) + (user-error "Cannot switch buffers in a dedicated window")) + ((window-minibuffer-p) + (user-error "Cannot switch buffers in minibuffer window")) + (t + (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window)))) (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) (cond ;; Don't call set-window-buffer if it's not needed since it From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2015 01:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143044478931049 (code B ref 20472); Fri, 01 May 2015 01:47:02 +0000 Received: (at 20472) by debbugs.gnu.org; 1 May 2015 01:46:29 +0000 Received: from localhost ([127.0.0.1]:57952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yo028-00084i-F3 for submit@debbugs.gnu.org; Thu, 30 Apr 2015 21:46:29 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14916) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yo026-00084V-AP for 20472@debbugs.gnu.org; Thu, 30 Apr 2015 21:46:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVS4rw4V/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3ALIFIDAQKDPgMDEwSDVgSjY4RY X-IPAS-Result: AgUFAGvvdVS4rw4V/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3ALIFIDAQKDPgMDEwSDVgSjY4RY X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="117953068" Received: from 184-175-14-21.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([184.175.14.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Apr 2015 21:46:21 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A3C7FAE0BD; Thu, 30 Apr 2015 21:46:20 -0400 (EDT) From: Stefan Monnier Message-ID: References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> Date: Thu, 30 Apr 2015 21:46:20 -0400 In-Reply-To: <55425888.6080106@gmx.at> (martin rudalics's message of "Thu, 30 Apr 2015 18:30:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Cannot switch buffers in a dedicated window >> >> This error message should appear earlier, as soon as C-x b is given. >> Emacs should not ask you to type in the new buffer name before it tells >> you that switching buffers is not allowed. > Indeed. Unless someone has a better idea I'll install something like > the below. An alternative would be to make C-x b use another window in such a case. I.e. remove the `force-same-window' argument (I think that would make sense at least for the window-minibuffer-p case). An other alternative would be to un-dedicate the window (only after prompting the user, tho). Stefan From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2015 10:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143047692323061 (code B ref 20472); Fri, 01 May 2015 10:43:03 +0000 Received: (at 20472) by debbugs.gnu.org; 1 May 2015 10:42:03 +0000 Received: from localhost ([127.0.0.1]:58122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yo8OQ-0005zg-Be for submit@debbugs.gnu.org; Fri, 01 May 2015 06:42:03 -0400 Received: from mout.gmx.net ([212.227.15.19]:61756) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yo8ON-0005zH-7k for 20472@debbugs.gnu.org; Fri, 01 May 2015 06:42:00 -0400 Received: from [88.117.112.225] ([88.117.112.225]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MYx2x-1YirRW15IB-00VdAu; Fri, 01 May 2015 12:41:49 +0200 Message-ID: <55435866.40006@gmx.at> Date: Fri, 01 May 2015 12:41:42 +0200 From: martin rudalics MIME-Version: 1.0 References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> In-Reply-To: Content-Type: multipart/mixed; boundary="------------020504030004070904070100" X-Provags-ID: V03:K0:SmKPudMW3oCRbjZxW+V1YCsfdIFvJ8+CUnKNBCBF+YZ3deHd8MT Dd+7GkNdUy2FjGoIP8Wu2S3n8AKdlvQoja9cXnMOjcmZZQURE3w3dbDwac5eiliPaIQAx8O d6OlxJdl35fO+f9LPWDY39XWBLUtc6Lv7EuDyG9ssRSIFbXVyUi/N+CArkRNqpfnQyvFFZ2 7Fz+pBtS0z8kvO0yU3rTg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------020504030004070904070100 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > An alternative would be to make C-x b use another window in such a case. > I.e. remove the `force-same-window' argument (I think that would make > sense at least for the window-minibuffer-p case). Agreed. > An other alternative > would be to un-dedicate the window (only after prompting the user, tho). Patch attached. In the *log-edit-files* case we could additionally make the window weakly dedicated in order to avoid this problem all together. martin --------------020504030004070904070100 Content-Type: text/plain; charset=windows-1252; name="switch-to-buffer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="switch-to-buffer.patch" --- a/lisp/window.el +++ b/lisp/window.el @@ -6887,10 +6887,13 @@ WARNING: This is NOT the way to work on another buffer temporarily within a Lisp program! Use `set-buffer' instead. That avoids messing with the window-buffer correspondences. -If the selected window cannot display the specified -buffer (e.g. if it is a minibuffer window or strongly dedicated -to another buffer), call `pop-to-buffer' to select the buffer in -another window. +If the selected window cannot display the specified buffer +because it is a minibuffer window or strongly dedicated to +another buffer, call `pop-to-buffer' to select the buffer in +another window. But if the optional argument FORCE-SAME-WINDOW +is non-nil and the selected window is strongly dedicated to its +buffer, prompt the user whether to undedicate the selected window +first. If called interactively, read the buffer name using the minibuffer. The variable `confirm-nonexistent-file-or-buffer' @@ -6906,10 +6909,6 @@ If optional argument NORECORD is non-nil, do not put the buffer at the front of the buffer list, and do not make the window displaying it the most recently selected one. -If optional argument FORCE-SAME-WINDOW is non-nil, the buffer -must be displayed in the selected window; if that is impossible, -signal an error rather than calling `pop-to-buffer'. - The option `switch-to-buffer-preserve-window-point' can be used to make the buffer appear at its last position in the selected window. @@ -6923,13 +6922,14 @@ Return the buffer switched to." ;; might signal an error (e.g. if the window is dedicated). ((eq buffer (window-buffer))) ((window-minibuffer-p) - (if force-same-window - (user-error "Cannot switch buffers in minibuffer window") - (pop-to-buffer buffer norecord))) - ((eq (window-dedicated-p) t) - (if force-same-window - (user-error "Cannot switch buffers in a dedicated window") - (pop-to-buffer buffer norecord))) + (pop-to-buffer buffer norecord)) + ((and (eq (window-dedicated-p) t) + (or (not force-same-window) + (not (y-or-n-p + (format "Window is dedicated to %s; undedicate it" + (window-buffer)))) + (set-window-dedicated-p nil nil))) + (pop-to-buffer buffer norecord)) (t (let* ((entry (assq buffer (window-prev-buffers))) (displayed (and (eq switch-to-buffer-preserve-window-point --------------020504030004070904070100-- From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2015 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143050363319610 (code B ref 20472); Fri, 01 May 2015 18:08:02 +0000 Received: (at 20472) by debbugs.gnu.org; 1 May 2015 18:07:13 +0000 Received: from localhost ([127.0.0.1]:58925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoFLF-00056D-9J for submit@debbugs.gnu.org; Fri, 01 May 2015 14:07:13 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:36108) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoFLD-000566-IW for 20472@debbugs.gnu.org; Fri, 01 May 2015 14:07:11 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D79EE85F54; Fri, 1 May 2015 14:07:10 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id B2E741E5B96; Fri, 1 May 2015 14:06:47 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 957AAB40E9; Fri, 1 May 2015 14:06:47 -0400 (EDT) From: Stefan Monnier Message-ID: References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> <55435866.40006@gmx.at> Date: Fri, 01 May 2015 14:06:47 -0400 In-Reply-To: <55435866.40006@gmx.at> (martin rudalics's message of "Fri, 01 May 2015 12:41:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Patch attached. AFAICT, the patch affects the switch-to-buffer function's behavior, whereas I only want to affect the command bound to C-x b. IOW, I don't want to affect non-interactive calls. Stefan From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 May 2015 09:01:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143055724118639 (code B ref 20472); Sat, 02 May 2015 09:01:05 +0000 Received: (at 20472) by debbugs.gnu.org; 2 May 2015 09:00:41 +0000 Received: from localhost ([127.0.0.1]:59112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoTHr-0004qT-I8 for submit@debbugs.gnu.org; Sat, 02 May 2015 05:00:40 -0400 Received: from mout.gmx.net ([212.227.17.22]:56343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoTHo-0004qC-Sa for 20472@debbugs.gnu.org; Sat, 02 May 2015 05:00:37 -0400 Received: from [194.118.143.216] ([194.118.143.216]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lg6op-1ZdmSm0ziV-00pfT8; Sat, 02 May 2015 11:00:27 +0200 Message-ID: <5544916C.3020200@gmx.at> Date: Sat, 02 May 2015 10:57:16 +0200 From: martin rudalics MIME-Version: 1.0 References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> <55435866.40006@gmx.at> In-Reply-To: Content-Type: multipart/mixed; boundary="------------080108020104020400010307" X-Provags-ID: V03:K0:WrHKO4mrKZYXChgp13aEPsP0dLAJKBE8mj2rBCVQdZQx5OvNV1k VfOTZcVNgfAQAvn63fqpfE4og/FHKREW0FRxK/Ajq8zRnDWPNpcBV6PG0qpj+qDlwGo1wkn 4oPiRUbBNjQrBssD24s561YYFhdFv3Ul9J0HzS4kjnzJmsA4Roj2ULifWakjCARuULb4dtW Vue6kDvNPcauNu8LG87xg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------080108020104020400010307 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > AFAICT, the patch affects the switch-to-buffer function's behavior, > whereas I only want to affect the command bound to C-x b. > > IOW, I don't want to affect non-interactive calls. At your service. martin --------------080108020104020400010307 Content-Type: text/plain; charset=windows-1252; name="switch-to-buffer.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="switch-to-buffer.diff" --- a/lisp/window.el +++ b/lisp/window.el @@ -6887,10 +6887,11 @@ WARNING: This is NOT the way to work on another buffer temporarily within a Lisp program! Use `set-buffer' instead. That avoids messing with the window-buffer correspondences. -If the selected window cannot display the specified -buffer (e.g. if it is a minibuffer window or strongly dedicated -to another buffer), call `pop-to-buffer' to select the buffer in -another window. +If the selected window cannot display the specified buffer +because it is a minibuffer window or strongly dedicated to +another buffer, call `pop-to-buffer' to select the buffer in +another window. In interactive use offer to undedicate the +selected window before. If called interactively, read the buffer name using the minibuffer. The variable `confirm-nonexistent-file-or-buffer' @@ -6916,7 +6917,15 @@ window. Return the buffer switched to." (interactive - (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window)) + (let ((force-same-window + (and (not (window-minibuffer-p)) + (or (not (eq (window-dedicated-p) t)) + (and (y-or-n-p + (format "Window is dedicated to %s; undedicate it" + (window-buffer))) + (or (set-window-dedicated-p nil nil) t))) + 'force-same-window))) + (list (read-buffer-to-switch "Switch to buffer: ") nil force-same-window))) (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) (cond ;; Don't call set-window-buffer if it's not needed since it --------------080108020104020400010307-- From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 May 2015 01:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143070311217843 (code B ref 20472); Mon, 04 May 2015 01:32:02 +0000 Received: (at 20472) by debbugs.gnu.org; 4 May 2015 01:31:52 +0000 Received: from localhost ([127.0.0.1]:32873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yp5Ec-0004di-U6 for submit@debbugs.gnu.org; Sun, 03 May 2015 21:31:51 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yp5EZ-0004cd-QR for 20472@debbugs.gnu.org; Sun, 03 May 2015 21:31:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVRFpYts/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQSFBgNJIgTohGMcAODPgMDEwSDVgSjY4RYgTcP X-IPAS-Result: AnEFAGvvdVRFpYts/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQSFBgNJIgTohGMcAODPgMDEwSDVgSjY4RYgTcP X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="118162956" Received: from 69-165-139-108.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 May 2015 21:31:42 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A4276AE12D; Sun, 3 May 2015 21:31:42 -0400 (EDT) From: Stefan Monnier Message-ID: References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> <55435866.40006@gmx.at> <5544916C.3020200@gmx.at> Date: Sun, 03 May 2015 21:31:42 -0400 In-Reply-To: <5544916C.3020200@gmx.at> (martin rudalics's message of "Sat, 02 May 2015 10:57:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > At your service. Looks OK, thanks (I'm not 100% sure prompting will turn out to be a good idea, but we can give it a try) Stefan > --- a/lisp/window.el > +++ b/lisp/window.el > @@ -6887,10 +6887,11 @@ WARNING: This is NOT the way to work on another buffer temporarily > within a Lisp program! Use `set-buffer' instead. That avoids > messing with the window-buffer correspondences. > -If the selected window cannot display the specified > -buffer (e.g. if it is a minibuffer window or strongly dedicated > -to another buffer), call `pop-to-buffer' to select the buffer in > -another window. > +If the selected window cannot display the specified buffer > +because it is a minibuffer window or strongly dedicated to > +another buffer, call `pop-to-buffer' to select the buffer in > +another window. In interactive use offer to undedicate the > +selected window before. > If called interactively, read the buffer name using the > minibuffer. The variable `confirm-nonexistent-file-or-buffer' > @@ -6916,7 +6917,15 @@ window. > Return the buffer switched to." > (interactive > - (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window)) > + (let ((force-same-window > + (and (not (window-minibuffer-p)) > + (or (not (eq (window-dedicated-p) t)) > + (and (y-or-n-p > + (format "Window is dedicated to %s; undedicate it" > + (window-buffer))) > + (or (set-window-dedicated-p nil nil) t))) > + 'force-same-window))) > + (list (read-buffer-to-switch "Switch to buffer: ") nil force-same-window))) > (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) > (cond > ;; Don't call set-window-buffer if it's not needed since it From unknown Sat Sep 06 13:45:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 May 2015 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 20472@debbugs.gnu.org, Ed Avis Received: via spool by 20472-submit@debbugs.gnu.org id=B20472.143081946310979 (code B ref 20472); Tue, 05 May 2015 09:52:01 +0000 Received: (at 20472) by debbugs.gnu.org; 5 May 2015 09:51:03 +0000 Received: from localhost ([127.0.0.1]:34364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpZVF-0002qs-Bz for submit@debbugs.gnu.org; Tue, 05 May 2015 05:51:02 -0400 Received: from mout.gmx.net ([212.227.17.21]:55663) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpZVC-0002qb-JW for 20472@debbugs.gnu.org; Tue, 05 May 2015 05:50:59 -0400 Received: from [93.82.78.52] ([93.82.78.52]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LuKHz-1ZHrcD1JqB-011mXk; Tue, 05 May 2015 11:50:50 +0200 Message-ID: <55488AFC.5040403@gmx.at> Date: Tue, 05 May 2015 11:18:52 +0200 From: martin rudalics MIME-Version: 1.0 References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> <55435866.40006@gmx.at> <5544916C.3020200@gmx.at> In-Reply-To: Content-Type: multipart/mixed; boundary="------------060007080703070608050609" X-Provags-ID: V03:K0:2qiQ96KDv2VfFuQF/l+zuiyNlWwNmei437DCEE2ojdu186RHI5a FwCys6TadDp+LkV2/QqaxMlJgsYZZMhhS3Yh99J+ov+/EC9Evdrv94ObNicJZ9tl2Ot2lYC bU7tzIl+CvUGu559aaPNvhvXtZ8y139GUUMXW9vpYZ1c49XkR4SspDeINwOOPuK6bAtgexn 2kGUEO4kqywMVvdY8HWVQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------060007080703070608050609 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > (I'm not 100% sure prompting will turn out to be a good > idea, but we can give it a try) Then let's make it customizable right away. martin --------------060007080703070608050609 Content-Type: text/plain; charset=windows-1252; name="switch-to-buffer-in-dedicated-window.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="switch-to-buffer-in-dedicated-window.diff" --- a/lisp/window.el +++ b/lisp/window.el @@ -6880,6 +6880,33 @@ the selected window or never appeared in it before, or if :group 'windows :version "24.3") +(defcustom switch-to-buffer-in-dedicated-window nil + "Allow switching to buffer in dedicated window. +If non-nil, allow `switch-to-buffer' to proceed when called +interactively and the selected window is strongly dedicated to +its buffer. + +The following values are recognized: + +nil - disallow switching; signal an error + +prompt - prompt user whether to allow switching + +pop - perform `pop-to-buffer' instead + +t - undedicate selected window and switch + +When called non-interactively, `switch-to-buffer' always signals +an error when the selected window is dedicated to its buffer and +FORCE-SAME-WINDOW is non-nil." + :type '(choice + (const :tag "Disallow" nil) + (const :tag "Prompt" prompt) + (const :tag "Pop" pop) + (const :tag "Allow" t)) + :group 'windows + :version "25.1") + (defun switch-to-buffer (buffer-or-name &optional norecord force-same-window) "Display buffer BUFFER-OR-NAME in the selected window. @@ -6887,10 +6914,12 @@ WARNING: This is NOT the way to work on another buffer temporarily within a Lisp program! Use `set-buffer' instead. That avoids messing with the window-buffer correspondences. -If the selected window cannot display the specified -buffer (e.g. if it is a minibuffer window or strongly dedicated -to another buffer), call `pop-to-buffer' to select the buffer in -another window. +If the selected window cannot display the specified buffer +because it is a minibuffer window or strongly dedicated to +another buffer, call `pop-to-buffer' to select the buffer in +another window. In interactive use, if the selected window is +dedicated to its buffer `switch-to-buffer-in-dedicated-window' +specifies how to proceed. If called interactively, read the buffer name using the minibuffer. The variable `confirm-nonexistent-file-or-buffer' @@ -6907,8 +6936,9 @@ at the front of the buffer list, and do not make the window displaying it the most recently selected one. If optional argument FORCE-SAME-WINDOW is non-nil, the buffer -must be displayed in the selected window; if that is impossible, -signal an error rather than calling `pop-to-buffer'. +must be displayed in the selected window when called +non-interactively; if that is impossible, signal an error rather +than calling `pop-to-buffer'. The option `switch-to-buffer-preserve-window-point' can be used to make the buffer appear at its last position in the selected @@ -6916,7 +6946,25 @@ window. Return the buffer switched to." (interactive - (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window)) + (let ((force-same-window + (cond + ((window-minibuffer-p) nil) + ((not (eq (window-dedicated-p) t)) 'force-same-window) + ((pcase switch-to-buffer-in-dedicated-window + (`nil (user-error + "Cannot switch buffers in a dedicated window")) + (`prompt + (if (y-or-n-p + (format "Window is dedicated to %s; undedicate it" + (window-buffer))) + (progn + (set-window-dedicated-p nil nil) + 'force-same-window) + (user-error + "Cannot switch buffers in a dedicated window"))) + (`pop nil) + (_ (set-window-dedicated-p nil nil) 'force-same-window)))))) + (list (read-buffer-to-switch "Switch to buffer: ") nil force-same-window))) (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) (cond ;; Don't call set-window-buffer if it's not needed since it --------------060007080703070608050609-- From unknown Sat Sep 06 13:45:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ed Avis Subject: bug#20472: closed (Re: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier) Message-ID: References: <555C5847.7030702@gmx.at> <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> X-Gnu-PR-Message: they-closed 20472 X-Gnu-PR-Package: emacs Reply-To: 20472@debbugs.gnu.org Date: Wed, 20 May 2015 09:49:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1432115343-25993-1" This is a multi-part message in MIME format... ------------=_1432115343-25993-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20472: 24.4; Cannot switch buffers in a dedicated window - report this err= or earlier which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20472@debbugs.gnu.org. --=20 20472: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20472 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1432115343-25993-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20472-done) by debbugs.gnu.org; 20 May 2015 09:48:07 +0000 Received: from localhost ([127.0.0.1]:50702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv0be-0006jm-Ra for submit@debbugs.gnu.org; Wed, 20 May 2015 05:48:07 -0400 Received: from mout.gmx.net ([212.227.17.20]:50887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv0bc-0006jI-LI for 20472-done@debbugs.gnu.org; Wed, 20 May 2015 05:48:05 -0400 Received: from [178.191.136.40] ([178.191.136.40]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M1zFf-1ZBIQw3x87-00u18y; Wed, 20 May 2015 11:47:58 +0200 Message-ID: <555C5847.7030702@gmx.at> Date: Wed, 20 May 2015 11:47:51 +0200 From: martin rudalics MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#20472: 24.4; Cannot switch buffers in a dedicated window - report this error earlier References: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> <55425888.6080106@gmx.at> <55435866.40006@gmx.at> <5544916C.3020200@gmx.at> <55488AFC.5040403@gmx.at> In-Reply-To: <55488AFC.5040403@gmx.at> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:B/sIuJA03tNXLEXlwPGNIz9YJKjlBY0iyKd496qu23BWFwlLA9z pe0MWon3/KrfM9gR3TI3K4W/AdRHii/4EnMJeCtEEcn9X2nD/zVIvDsEEhKVrnkXAKg/+nB fUP9sdKZtYiES0qmaj2u4OFmJUy/BFMrWVMmcUx00J6Hgmejbygh421Hs8Qh8NQoarebvxl SLUMoZIXJ1pZ79voZdvCw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20472-done Cc: 20472-done@debbugs.gnu.org, Ed Avis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Then let's make it customizable right away. Installed with commit f743819..31d58d4 on trunk/master. Bug closed. Thanks, martin ------------=_1432115343-25993-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Apr 2015 15:33:44 +0000 Received: from localhost ([127.0.0.1]:57727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnqT5-0001Rg-PA for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46696) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnqT0-0001RO-CJ for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnqSt-0001dv-QJ for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSt-0001dr-Mm for submit@debbugs.gnu.org; Thu, 30 Apr 2015 11:33:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSp-0007nf-Rr for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnqSl-0001cI-Ux for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:23 -0400 Received: from mail1.bemta3.messagelabs.com ([195.245.230.166]:27059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqSl-0001c4-M4 for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2015 11:33:19 -0400 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id 89/17-12069-93B42455; Thu, 30 Apr 2015 15:33:13 +0000 X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1430407993!7667478!1 X-Originating-IP: [213.212.127.155] X-StarScan-Received: X-StarScan-Version: 6.13.14; banners=waniasset.com,-,- X-VirusChecked: Checked Received: (qmail 7720 invoked from network); 30 Apr 2015 15:33:13 -0000 Received: from unknown (HELO WCL-EXCHCAS03.wcl.local) (213.212.127.155) by server-9.tower-31.messagelabs.com with AES128-SHA encrypted SMTP; 30 Apr 2015 15:33:13 -0000 Received: from WCL-EXCH02.wcl.local ([169.254.1.57]) by WCL-EXCHCAS03.wcl.local ([149.85.126.212]) with mapi id 14.03.0123.003; Thu, 30 Apr 2015 16:33:12 +0100 From: Ed Avis To: "'bug-gnu-emacs@gnu.org'" Subject: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Thread-Topic: 24.4; Cannot switch buffers in a dedicated window - report this error earlier Thread-Index: AdCDWvNSIyPXHUbCS6+n/GFnG8hk+w== Date: Thu, 30 Apr 2015 15:33:11 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743032E18D99@WCL-EXCH02.wcl.local> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.168] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Sometimes Emacs creates a small window such as *log-edit-files*. If you go to that window and do C-x b, you enter the name of the buffer to switch to as usual, but then see the error Cannot switch buffers in a dedicated window This error message should appear earlier, as soon as C-x b is given. Emacs should not ask you to type in the new buffer name before it tells you that switching buffers is not allowed. In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-11-03 on wcl-linux04.wcl.local Configured using: `configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png= --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC c g TAB C-a C-k C-x b G u TAB RET . TAB RET C-x=20 v =3D ESC=20[ 6 ~ ESC [ 5 ~ C-x o C-x o C-x v =3D C-x v v=20 R e d u c e SPC DEL d SPC f i l l i n g SPC f r o m=20 SPC 1 0 0 SPC t o SPC 3 0 SPC d a t DEL y s SPC f o=20 r SPC s o m e SPC m o n t h l y SPC s t r a t e g i=20 e s . RET T h i s SPC c a n SPC b e SPC d o n e SPC=20 n o w SPC t h e SPC h DEL g a p s SPC i n SPC C o n=20 s e n e s u s DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL=20 C-x o C-x b b u TAB RET C-g C-g C-g C-x b b u TAB RET=20 C-g C-g C-g C-x o C-x b b u TAB C-g C-x o C-x o C-x=20 b * l o TAB g - e TAB C-g C-x b C-g C-x o C-x o C-x=20 o ESC x C-g C-x b f a RET C-x b g g RET C-g C-g C-x=20 o C-x b g g RET C a n n o t SPC s w i t c h SPC b u=20 f f e r s SPC i n SPC a SPC d e d i c a t e d SPC w=20 i n d o w C-x o C-x o C-x o C-@ C-a ESC w ESC x r e=20 p o r SPC e SPC b SPC RET Recent messages: Press C-c C-c when you are done editing. Enter a change comment. Type C-c C-c when done user-error: Cannot switch buffers in a dedicated window Quit [3 times] user-error: Cannot switch buffers in a dedicated window Quit [4 times] Making completion list... Quit [3 times] user-error: Cannot switch buffers in a dedicated window [2 times] Quit [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail warnings dired-aux vc-bzr vc-sccs vc-svn vc-cvs vc-rcs mule-util macros smerge-mode rect novice edmacro kmacro etags log-view nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sql view diff-mode vc vc-dispatcher tabify imenu man sh-script smie executable pcmpl-rpm dabbrev ffap thingatpt url-parse auth-source eieio eieio-core gnus-util password-cache url-vars nroff-mode help-mode dired misearch multi-isearch vc-git cus-edit wid-edit cus-start cus-load perl-mode pcmpl-unix xterm time-date log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log server csharp-mode advice help-fns byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs cl-lib compile shell pcomplete comint ring ansi-color tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 1254638 183358) (symbols 48 29960 0) (miscs 40 760 4364) (strings 32 63447 13092) (string-bytes 1 3117305) (vectors 16 32306) (vector-slots 8 1444102 177426) (floats 8 560 1031) (intervals 56 189950 392) (buffers 960 151) (heap 1024 93365 1704)) --=20 Ed Avis Please ignore any autogenerated disclaimer below this line. This email is intended only for the person to whom it is addressed and may= contain confidential information. Any retransmission, copying, disclosure= or other use of, this information by persons other than the intended reci= pient is prohibited. If you received this email in error, please contact t= he sender and delete the material. This email is for information only and = is not intended as an offer or solicitation for the purchase or sale of an= y financial instrument. Wadhwani Asset Management LLP is a Limited Liabili= ty Partnership registered in England (OC303168) with registered office at = 40 Berkeley Square, 3rd Floor, London, W1J 5AL. It is authorised and regul= ated by the Financial Conduct Authority. ------------=_1432115343-25993-1--