From unknown Sat Jun 21 05:15:26 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4702: 23.1.50; named frame switching in terminal + emacsclient Reply-To: Jose Antonio Ortega Ruiz , 4702@debbugs.gnu.org Resent-From: Jose Antonio Ortega Ruiz Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 11 Oct 2009 22:55:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4702 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125530130132507 (code B ref -1); Sun, 11 Oct 2009 22:55:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Oct 2009 22:48:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9BMmJqD032504 for ; Sun, 11 Oct 2009 15:48:20 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38892) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Mx7D8-0007C3-Qj for emacs-pretest-bug@gnu.org; Sun, 11 Oct 2009 18:48:18 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Mx7D7-0001qS-EU for emacs-pretest-bug@gnu.org; Sun, 11 Oct 2009 18:48:18 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:29245) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mx7D6-0001q6-VS for emacs-pretest-bug@gnu.org; Sun, 11 Oct 2009 18:48:17 -0400 Received: by ey-out-1920.google.com with SMTP id 3so7515209eyh.34 for ; Sun, 11 Oct 2009 15:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:mime-version:content-type; bh=l9r0XIA/cc3Zm3JUP1Xkje5vymKSZIeeDE7ns/X9TOM=; b=CF89CSJWz3fxWmPdbpMulXAE7IoeEi+6bJF3ElgroKsk4bPo4Fa06vvnFI5ExUvmwi LvJ2YzuytpXBElX4JBezGM5jE+8u6H9aebBiDk6ADtsnwOjfRJ27JkqKQJhSvr0btHJC zqE4dzCGS6CdwnL14edODHbHyoAabvUSGsvFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type; b=Nc5UGgk9mtkPU+/XrxFN52gJDPis+IJ3CoI1LAQzIo3j/N5k+3Zb2vX2vN6KsbQYrG jqruK0arBN9i0fiM2YLKq0n3XX7InkT8yOH7fusz2ygcwspnZwgxu2/G5Rdv3JSZance gBRpqDQjKftGXeX+lV6ymnL0++I3Qh4ZPvetk= Received: by 10.211.160.14 with SMTP id m14mr3299922ebo.30.1255301295792; Sun, 11 Oct 2009 15:48:15 -0700 (PDT) Received: from mithrandir.homeunix.net (128.Red-83-43-32.dynamicIP.rima-tde.net [83.43.32.128]) by mx.google.com with ESMTPS id 7sm336522eyb.4.2009.10.11.15.48.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Oct 2009 15:48:15 -0700 (PDT) Received: from jao by mithrandir.homeunix.net with local (Exim 4.69) (envelope-from ) id 1Mx7D5-0007oj-QU; Mon, 12 Oct 2009 00:48:15 +0200 From: Jose Antonio Ortega Ruiz To: emacs-pretest-bug@gnu.org Cc: rfrancoise@debian.org Date: Mon, 12 Oct 2009 00:48:15 +0200 Message-ID: <87k4z1h7io.fsf@mithrandir.homeunix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) There seem to be several situations where, if one has more than one frame in a terminal-based emacs session and opens another one in a different terminal, the frame selected in the first terminal changes as a consequence. You can reproce the effect in a simple way: (0) emacs -nw -Q -daemon (1) open a new terminal and execute `emacsclient -t' (you're in frame F2) (2) eval (make-frame '((name . "test"))) (you're still in frame F2) (3) open a *second* xterm and `emacsclient -t' in it (4) the frame focused in the first terminal (opened at (1)) is now in frame "test", instead of F2 The frame jump does *not* happen if the frame you create in step (2) has no name parameter (i.e. Fn is assigned by `make-frame' internally). These frame jumps happen in other situations, but they're difficult to reproduce; they always involve some activity by a second emacsclient, and always have an explicitly name frame as destination. Also, sometimes they're provoked also by calls of the form `emacsclient -e ', instead of -t as in (3), but not in this simple case. Thanks! In GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-10-10 on elegiac, modified by Debian (emacs-snapshot package, version 1:20091010-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1.50/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ( m a k e - f r a m ESC TAB ESC TAB SPC C-b C-b C-h f RET SPC DEL C-e ' ( ( n a m e SPC . SPC " t e s t " ) ) ) C-j C-x 1 C-x 5 o C-x b RET C-n C-p C-x 5 0 C-x 5 2 C-x 5 o C-x b RET C-p C-n C-p C-p C-x 5 0 C-x 5 0 C-x 5 0 C-p C-p C-x 5 0 C-x 5 2 ( s e t - f r a m e - n ESC TAB SPC " t e s t " ) C-j C-x 5 0 C-x b m e s RET C-x 5 C-g C-p C-n C-n C-p C-p C-x 5 o C-x 5 o C-x 5 0 C-x b s DEL RET ESC x o t h e r - f r a TAB RET C-x 5 o C-x 5 o C-p C-k C-p C-e C-x 5 2 C-j C-x 5 o C-x b m e s RET C-x 5 o C-x 5 o ESC x r e m p o r TAB DEL DEL DEL DEL p o r TAB RET Recent messages: ("emacs") Starting Emacs daemon. When done with this frame, type C-x 5 0 Making completion list... Complete, but not unique Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. When done with this frame, type C-x 5 0 [5 times] Load-path shadows: /usr/share/emacs/23.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/23.1.50/site-lisp/ruby1.8-elisp/ruby-mode hides /usr/share/emacs/23.1.50/lisp/progmodes/ruby-mode Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sendmail regexp-opt help-fns pp time-date time help-mode easymenu view server tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gtk x-toolkit x multi-tty emacs) From unknown Sat Jun 21 05:15:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#4702: 23.1.50; named frame switching in terminal + emacsclient Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jun 2012 06:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4702 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jose Antonio Ortega Ruiz Cc: 4702@debbugs.gnu.org Received: via spool by 4702-submit@debbugs.gnu.org id=B4702.134008897713314 (code B ref 4702); Tue, 19 Jun 2012 06:57:01 +0000 Received: (at 4702) by debbugs.gnu.org; 19 Jun 2012 06:56:17 +0000 Received: from localhost ([127.0.0.1]:47718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgsMK-0003Sf-B0 for submit@debbugs.gnu.org; Tue, 19 Jun 2012 02:56:16 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33828) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgsMG-0003SX-SJ for 4702@debbugs.gnu.org; Tue, 19 Jun 2012 02:56:14 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SgsJ1-0002uy-Li; Tue, 19 Jun 2012 02:52:51 -0400 From: Chong Yidong In-Reply-To: <87k4z1h7io.fsf@mithrandir.homeunix.net> (Jose Antonio Ortega Ruiz's message of "Mon, 12 Oct 2009 00:48:15 +0200") Date: Tue, 19 Jun 2012 14:51:29 +0800 Message-ID: <87y5njokum.fsf@gnu.org> References: <87k4z1h7io.fsf@mithrandir.homeunix.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Jose Antonio Ortega Ruiz writes: > There seem to be several situations where, if one has more than one > frame in a terminal-based emacs session and opens another one in a > different terminal, the frame selected in the first terminal changes > as > a consequence. > > (0) emacs -nw -Q -daemon > (1) open a new terminal and execute `emacsclient -t' (you're in frame > F2) > (2) eval (make-frame '((name . "test"))) (you're still in frame F2) > (3) open a *second* xterm and `emacsclient -t' in it > (4) the frame focused in the first terminal (opened at (1)) is now in > frame "test", instead of F2 Thanks for the bug report. I've committed a fix to trunk. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 19 02:56:30 2012 Received: (at control) by debbugs.gnu.org; 19 Jun 2012 06:56:30 +0000 Received: from localhost ([127.0.0.1]:47721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgsMW-0003T2-S2 for submit@debbugs.gnu.org; Tue, 19 Jun 2012 02:56:29 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33830) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgsMV-0003Sw-Dp for control@debbugs.gnu.org; Tue, 19 Jun 2012 02:56:27 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SgsJH-0002vP-73 for control@debbugs.gnu.org; Tue, 19 Jun 2012 02:53:07 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 4702 Date: Tue, 19 Jun 2012 14:51:40 +0800 Message-ID: <871ulbeqv7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 4702 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 01:51:00 2012 Received: (at control) by debbugs.gnu.org; 20 Jun 2012 05:51:00 +0000 Received: from localhost ([127.0.0.1]:49256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShDoi-0005oF-H8 for submit@debbugs.gnu.org; Wed, 20 Jun 2012 01:51:00 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58852) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShDog-0005o8-Gx for control@debbugs.gnu.org; Wed, 20 Jun 2012 01:50:59 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ShDlM-0003ka-JP for control@debbugs.gnu.org; Wed, 20 Jun 2012 01:47:32 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: forcemerge 4702 5758 Date: Wed, 20 Jun 2012 01:47:32 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forcemerge 4702 5758 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 13:00:33 2012 Received: (at control) by debbugs.gnu.org; 20 Jun 2012 17:00:33 +0000 Received: from localhost ([127.0.0.1]:50091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShOGe-0001PJ-Nq for submit@debbugs.gnu.org; Wed, 20 Jun 2012 13:00:32 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50383) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShOGd-0001PD-Lo for control@debbugs.gnu.org; Wed, 20 Jun 2012 13:00:32 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ShODH-0003xQ-9S for control@debbugs.gnu.org; Wed, 20 Jun 2012 12:57:03 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: forcemerge 4702 6884 Date: Wed, 20 Jun 2012 12:57:03 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forcemerge 4702 6884 thanks