GNU bug report logs - #80030
30.1; emacs server raises other frame on frame close

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Richard van der Hoff <emacs@HIDDEN>; dated Fri, 19 Dec 2025 01:08:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 80030 <at> debbugs.gnu.org:


Received: (at 80030) by debbugs.gnu.org; 19 Dec 2025 13:24:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 19 08:24:38 2025
Received: from localhost ([127.0.0.1]:38287 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWaTG-00044p-5a
	for submit <at> debbugs.gnu.org; Fri, 19 Dec 2025 08:24:38 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45448)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vWaTD-00044Y-Em
 for 80030 <at> debbugs.gnu.org; Fri, 19 Dec 2025 08:24:36 -0500
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 <eliz@HIDDEN>)
 id 1vWaT7-0006XC-Vj; Fri, 19 Dec 2025 08:24:30 -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=h+V8gy6VB3KB3DcU20rX69C0stFDkXKRloKKWkD6Up0=; b=iowfFXu7QAlZ
 L/Qlq7ANUwoWcYlDkx25LFmb+LNVF4h7IvEDfZSwoKKTifeQ0sOo/MXsD2TbTAOl2f3e1H8XZtcGV
 irifvgGRxHnAF171TftH9Jk2ns+ZTUrrTjhA6LewD721gjiin3tuU67hV4y8vMaK8EQHIT45hxMtS
 IeTzHh4MyqGaapg2CV80Gr/7POkFpH0RnQWWITvI/T6BZyOwuh/TVQeGgM5ZRy+4DDK9mePg0wxGI
 Jc6gNc9qjP2vjhC4gBZxJB54Gbt/zxpbb2AeHSRuzsAR14jBihYB67pAvxZu7M2f+tvlra43UZnnQ
 7+XxRlT6tM95L4NSnayOpA==;
Date: Fri, 19 Dec 2025 15:24:27 +0200
Message-Id: <86h5tm1u5w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Richard van der Hoff <emacs@HIDDEN>
In-Reply-To: <b033e39d-8258-4017-aca1-5dd878553924@HIDDEN> (message from
 Richard van der Hoff on Thu, 18 Dec 2025 12:25:00 +0000)
Subject: Re: bug#80030: 30.1; emacs server raises other frame on frame close
References: <b033e39d-8258-4017-aca1-5dd878553924@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80030
Cc: 80030 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 18 Dec 2025 12:25:00 +0000
> From: Richard van der Hoff <emacs@HIDDEN>
> 
> Steps to repeat:
> 
> * Have a running emacs server
> * Open a frame using `emacsclient a.txt`
> * Change virtual desktop, and/or open another window on top of the emacs 
> window.
> * Open a second frame using `emacsclient b.txt`.
> * Close the most recent frame with `C-x # (server-edit)`
> * The previous frame is now raised to the top of the stack, and the 
> window manager
> changes virtual desktop.
> 
> In my opinion, closing the frame associated with one client should have
> no effect on the frame from another client, and it *certainly* shouldn't
> cause my desktop environment to change virtual desktop.

Sorry, I don't understand your expectations.  When the selected frame
is deleted, Emacs must select some other frame.  What frame should it
select in the above scenario, in your opinion, and why do you think
it's wrong for it to select the frame that just happens to belong to
another emacsclient?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80030; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Dec 2025 01:07:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 20:07:43 2025
Received: from localhost ([127.0.0.1]:59540 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWOy4-0006mJ-8l
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 20:07:42 -0500
Received: from lists.gnu.org ([2001:470:142::17]:49272)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <prvs=1447436d56=emacs@HIDDEN>)
 id 1vWDAy-0008U3-2L
 for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 07:32:12 -0500
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 <prvs=1447436d56=emacs@HIDDEN>)
 id 1vWDAn-0003tZ-58
 for bug-gnu-emacs@HIDDEN; Thu, 18 Dec 2025 07:32:01 -0500
Received: from [2a01:7e00:e000:2b9::1] (helo=mx.sw1v.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <prvs=1447436d56=emacs@HIDDEN>)
 id 1vWDAd-0001Lz-ES
 for bug-gnu-emacs@HIDDEN; Thu, 18 Dec 2025 07:31:58 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sw1v.org;
 s=sw1v_03; h=Content-Transfer-Encoding:Content-Type:From:Subject:To:
 MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=okc5Cw11o6i2z+0/sqzaL9AmmQWqpMaoUPuRvDcMxuw=; b=TmSWGLLFdCap31xfGt8CoE7Xi6
 31Rk6DEbTjTfmD8exGoGE4EUfNZW/cn7VLoWEaCmoTU52d4qvOapUrRreL3Ru/EbM9twW26IkQyGo
 I2HoCV8tGoYKmHVJBziG2NBjLswdypTYlBeyxaPxTGy+i2Xh/KAlj3V2XTRyJKy4F4scz9+xfnTco
 +TYOld4/j0A/ZD21+iX56ljrdPsQNufacJ5ZSdrqdqYrVDWdUqMFdlZ+VwSzM4149LPU1E6Sbx2Gd
 iIty5Hp3w6fjpoFsMJvuNM1eHbDAi++T2FPBMeNHIAJv+83Im5nDalqBsmufgHz00t1uBhIlaApU+
 xNv7yADQ==;
Received: from [2001:8b0:ba7a:e98f:a80d:3c50:52d2:20db]
 by kendra.sw1v.org with esmtpa (Exim 4.96)
 (envelope-from <emacs@HIDDEN>) id 1vWD40-004NBe-2j
 for bug-gnu-emacs@HIDDEN; Thu, 18 Dec 2025 12:25:00 +0000
Message-ID: <b033e39d-8258-4017-aca1-5dd878553924@HIDDEN>
Date: Thu, 18 Dec 2025 12:25:00 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: bug-gnu-emacs@HIDDEN
Subject: 30.1; emacs server raises other frame on frame close
Content-Language: en-GB
From: Richard van der Hoff <emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-SMTP-SW1V-Spam-User: 
X-SMTP-SW1V-Spam-Level: 
X-SMTP-SW1V-Spam-Bar: 
X-SMTP-SW1V-Spam-Report: 
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:7e00:e000:2b9::1
 (failed)
Received-SPF: pass client-ip=2a01:7e00:e000:2b9::1;
 envelope-from=prvs=1447436d56=emacs@HIDDEN; helo=mx.sw1v.org
X-Spam_score_int: -12
X-Spam_score: -1.3
X-Spam_bar: -
X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 18 Dec 2025 20:07:38 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Steps to repeat:

* Have a running emacs server
* Open a frame using `emacsclient a.txt`
* Change virtual desktop, and/or open another window on top of the emacs 
window.
* Open a second frame using `emacsclient b.txt`.
* Close the most recent frame with `C-x # (server-edit)`
* The previous frame is now raised to the top of the stack, and the 
window manager
changes virtual desktop.

In my opinion, closing the frame associated with one client should have
no effect on the frame from another client, and it *certainly* shouldn't
cause my desktop environment to change virtual desktop.

In case it matters, my desktop environment is GNOME 48.


In GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49,
cairo version 1.18.4) of 2025-07-18, modified by Debian built on sbuild
Windowing system distributor 'The X.Org Foundation', version 11.0.12401006
System Description: Debian GNU/Linux 13 (trixie)

Configured using:
'configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/libexec
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-libsystemd --with-pop=yes
--enable-locallisppath=/etc/emacs:/usr/local/share/emacs/30.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/30.1/site-lisp:/usr/share/emacs/site-lisp 

--with-sound=alsa --without-gconf --with-mailutils --build
x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/libexec --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --with-libsystemd
--with-pop=yes
--enable-locallisppath=/etc/emacs:/usr/local/share/emacs/30.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/30.1/site-lisp:/usr/share/emacs/site-lisp 

--with-sound=alsa --without-gconf --with-mailutils --with-cairo
--with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
'CFLAGS=-g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/emacs-30.1+1=. 
-fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security
-fcf-protection -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
LDFLAGS=-Wl,-z,relro'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
minibuffer-regexp-mode: t
column-number-mode: t
line-number-mode: t
auto-fill-function: do-auto-fill
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/llvm-14/emacs hides 
/usr/share/emacs/site-lisp/llvm-19/emacs
/usr/share/emacs/site-lisp/llvm-14/llvm-mode hides 
/usr/share/emacs/site-lisp/llvm-19/llvm-mode
/usr/share/emacs/site-lisp/llvm-14/tablegen-mode hides 
/usr/share/emacs/site-lisp/llvm-19/tablegen-mode
/usr/share/emacs/30.1/lisp/loaddefs hides 
/home/rav/dotfiles/emacs.d/packages/loaddefs

Features:
(shadow sort mail-extr emacsbug message yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util text-property-search time-date mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start advice
html-helper-mode finder-inf cus-edit pp cus-load wid-edit
markdown-mode-autoloads package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt
gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list
replace newcomment text-mode lisp-mode prog-mode register page tab-bar
menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice seq simple cl-generic indonesian philippine cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process native-compile emacs)

Memory information:
((conses 16 322190 17675) (symbols 48 16080 0) (strings 32 105219 3932)
(string-bytes 1 2385142) (vectors 16 22677) (vector-slots 8 276032 16927)
(floats 8 38 36) (intervals 56 311 0) (buffers 992 11))





Acknowledgement sent to Richard van der Hoff <emacs@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#80030; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 19 Dec 2025 13:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.