From unknown Thu Aug 14 21:43:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25547 <25547@debbugs.gnu.org> To: bug#25547 <25547@debbugs.gnu.org> Subject: Status: 25.1.91; emacsclient -c creates frames on the wrong display Reply-To: bug#25547 <25547@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:43:59 +0000 retitle 25547 25.1.91; emacsclient -c creates frames on the wrong display reassign 25547 emacs submitter 25547 Alex Hutcheson severity 25547 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 13:10:08 2017 Received: (at submit) by debbugs.gnu.org; 26 Jan 2017 18:10:08 +0000 Received: from localhost ([127.0.0.1]:45824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWoUq-0005LN-72 for submit@debbugs.gnu.org; Thu, 26 Jan 2017 13:10:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUp-0005LB-1z for submit@debbugs.gnu.org; Thu, 26 Jan 2017 13:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUg-0005t8-7n for submit@debbugs.gnu.org; Thu, 26 Jan 2017 13:10:01 -0500 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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58913) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUg-0005t2-4C for submit@debbugs.gnu.org; Thu, 26 Jan 2017 13:09:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUb-0008GR-3C for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 13:09:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUZ-0005sd-22 for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 13:09:53 -0500 Received: from mail-yb0-x24a.google.com ([2607:f8b0:4002:c09::24a]:33298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <3bDuKWA0KDdU1C5O8LK385JFE7FF7C5.3FD2L7-7EL-5D13J7EL.FI7@flex--alexhutcheson.bounces.google.com>) id 1cWoUY-0005sK-SF for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 13:09:50 -0500 Received: by mail-yb0-x24a.google.com with SMTP id j82so2343145ybg.0 for ; Thu, 26 Jan 2017 10:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to; bh=fS3BgjuKyFF3OioIGTilycFg6Az9uxs5izaRg4k0G34=; b=eAqhr1MccrdgGry4VagRSkYg1iw428ZKuaaNDoiK8DvbXiXg+oIVBInmqkqfe9DiMp 2Ry/mI5OJXjh5kRrg32nALeZUVLlwqt/RLckjNDUquQyuQKZYwd3UKzGGF/3pOkX1Ns/ hyOAAFcypiON+2j+Tr46Df/qph66jyb9MeZI/Gp2zjcfHGaMvYtqDIihxzk42JLQRkCG B9L7lWKb1DcobHwIb27G9cLwlG5I0nEcBk6y3gc4DEVFL4IwQYyla8Z8NNFtlNKie5WW Uv8GJCPndsYRBp/5HugQRIcrpRhVunOB8KKEtL5Wkbl8nK6Uyhf+P1GTrPCnLKLVzTY2 wNIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to; bh=fS3BgjuKyFF3OioIGTilycFg6Az9uxs5izaRg4k0G34=; b=AxAIRrVQYEKe2Sav5mfZ40hOPRhuU/ohP4ss8kr+/Y3NM/QHqz3em75NCndI+7NjSC ZfXWIcjBeaGvyxxCeWWInistF2DYuerapghJJ4EvsM4cxvJySTB5kLyGTX8nYoqy7p9P wEr3sG6hVRNWHwO7XaTFX1x8Ns6vEu4djT0d9+3F8rbYbx4Ydr+0vZg/n+65pzzmwJUF drWqHD4dizMBUAJOIVz1BrB3kdUScxnjNwD6HyCB1/jucMlrtnbgZFNsC4YESqCwW7P2 XliMzZcE7TJ4JxjohaJK7biZn9XBGNLsggim5uolF4bzmRJD7ynZHFgXN0kEX7OR5R4y m++A== X-Gm-Message-State: AIkVDXKyv3ZyM+Znjifzd0r9wvSkSwaVc20WV6Tj+cQjqw/C+Uzl95GnXOEAmxzCrQ8NiLtRAKM1YN85hlDeHzHbwvb0i6EBQ/COyJKF13czYOrM8naiIVubZ0O+MyvhBtWRmo+/TqUaZNkCAV5TKMdEXy8OLm2+bpvXyoVHpqEUeFBX+1Lp8+OEubtNbgfDVNuWfdGcGw== X-Received: by 10.13.200.3 with SMTP id k3mr1000995ywd.136.1485454188180; Thu, 26 Jan 2017 10:09:48 -0800 (PST) Date: Thu, 26 Jan 2017 13:09:46 -0500 Message-Id: Mime-Version: 1.0 Subject: 25.1.91; emacsclient -c creates frames on the wrong display From: Alex Hutcheson To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.18 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 (----) When an emacsclient running in a terminal is connected to an Emacs instance running in a graphical environment, running `emacsclient -c' from a comint buffer (such as M-x shell) creates a frame in the graphical environment, where it may be inaccessible to the user who ran the command. To reproduce: 1. Run `emacs --daemon' on a system with a graphical display. 2. Login to the system using a terminal with no graphical display. You could do this by switching to another virtual terminal (Ctrl-Alt-F1 works on Ubuntu), or SSH in from another machine. 3. Run `emacsclient -c' or `emacsclient -t' in the terminal to connect to the running Emacs instance. 4. Inside Emacs, run M-x shell. 5. In the M-x shell buffer, run `emacsclient -c'. Ideal behavior: emacsclient creates a frame on the current terminal. Actual behavior: emacsclient creates a graphical frame in the environment in which it was launched, which is inaccessible from the terminal. Possible questions: Q : Why would you want to run emacsclient from within M-x shell? Why not just do whatever you want to do in the frame you already have open? A : Normally the user isn't launching emacsclient directly. Instead, a script might be launching emacsclient as part of a larger workflow. Q : Why not just launch emacsclient without the '-c' option? A : Without the -c flag, emacsclient works well to edit a file or series of files, but it doesn't support more complicated tasks. For example, a script might want to launch an ediff session, and wait until the ediff session exits. The easiest way to do this is to use `emacsclient -c' and wait for the connection to be closed. In GNU Emacs 25.1.91.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars), modified by Debian Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Configured using: 'configure --build x86_64-linux-gnu --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/google-emacs:/etc/emacs:/usr/local/share/emacs/25.1.91+gg1+2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1.91+gg1+2/site-lisp:/usr/share/emacs/site-lisp --with-crt-dir=/usr/lib/x86_64-linux-gnu --disable-build-details --disable-silent-rules --with-modules GOOGLE_VERSION=25.1.91+gg1+2 --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gconf --without-gsettings build_alias=x86_64-linux-gnu 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-fuse-ld=gold,--export-dynamic-symbol=__google_auxv' 'CPPFLAGS=-D_FORTIFY_SOURCE=2 -DGOOGLE_EMACS_DEFINE_AUXV'' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Message Minor modes in effect: mml-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t auto-fill-function: message-do-auto-fill transient-mark-mode: t abbrev-mode: t Recent messages: Sending... Mark set Fix continuation lines? (y or n) y [59 times] Mark set Sending via mail... if: Mail headers not found Mark set Sending... Mark set [2 times] Sending via mail... if: Mail headers not found Load-path shadows: None found. Features: (pp shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader google-sendgmr sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils novice cl-extra help-fns help-mode easymenu misearch multi-isearch dired-aux cl-loaddefs pcase cl-lib dired time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 dbusbind inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 111409 15495) (symbols 48 20120 0) (miscs 40 211 363) (strings 32 15788 3029) (string-bytes 1 498060) (vectors 16 12877) (vector-slots 8 445607 5773) (floats 8 175 297) (intervals 56 4381 159) (buffers 976 29) (heap 1024 34656 1309)) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 07 20:29:45 2018 Received: (at control) by debbugs.gnu.org; 8 Feb 2018 01:29:45 +0000 Received: from localhost ([127.0.0.1]:33614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejb20-0001IC-TJ for submit@debbugs.gnu.org; Wed, 07 Feb 2018 20:29:45 -0500 Received: from mail-it0-f49.google.com ([209.85.214.49]:50964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejb1z-0001I1-Pb for control@debbugs.gnu.org; Wed, 07 Feb 2018 20:29:44 -0500 Received: by mail-it0-f49.google.com with SMTP id x128so4671203ite.0 for ; Wed, 07 Feb 2018 17:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=YVAkr6czxYthklqDEG6EVOiH0ySjGfNJobq65/JsT00=; b=homqoKeKMhN+lSFn4JQZUTfQRoYv8dSqkNjRkQ0ImIhf5dmSrZ9lnIbsa1zOdDuobQ 2+4XXfWi/852fIPwUQBb3d+dYwS/THoVp/O850S2tyYRuWvoN4C+WBrW7ieoGYPqVtmd 4/BnFpzJ6ySUVeIqzZnlYNFld/IM9hIokGC6UtBpfjHUZI9WWIVoXb7mNHjmwTfiV3bE AilsTguyG+hMWJdD9CWkXaL1adnDKGgt3tu9l6YKrLF4IdxliVIhv1kg/qNUFU+nFEOF Y/V6KCkL0ZvsD/68oxn0Otz9Gz9VxIZJvhpcVfJt1ATRRnkT6RpC4xzAvLKr8k4cQiie mB3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=YVAkr6czxYthklqDEG6EVOiH0ySjGfNJobq65/JsT00=; b=gtQPFF7RhJ5aX+ym/dmkFIZ5kGiPaJAto0xNUqUjfjSUi9yqRHwPolpBGKZyZi3LW6 3aZRK22ksk1gBgsuN6vNLyB3IWMfppz/xQuzFqqRU2Imxw45vUD03U7TB+0q9TRytlPP Pl5umdQ5gD5lqz6rUIrCgFw3Mp8VZRJC1oBZrO4bbtqc8QvKNklugDKAW3/OqCykd0NA EcaSYnSiavUzJgDHQqyqX5ej5dQ0F3fAqXKwbK7XmNGFDKgj1D2WN+DitHQ3HXqCNeHs zfyQxXKy+lvxcrad4LWv/Wst6r77ZX04tvy/3231Xc8CUj2K+27UiqrnN8dPSVjNUqSI E5MA== X-Gm-Message-State: APf1xPCbZtHyaFNTbkReY5m4bhKur6qw18MgMqyNEY0Yxw2P8XpASGgL lWqHrhN5N25Tk8vwEt/0EgZ11A== X-Google-Smtp-Source: AH8x225+gPN11kvQTJryKD2uWKjKyA8hPID7Y1O1uFJ8NjG5FvHxw4b46/4W27fE7TZpM7y7fas0EA== X-Received: by 10.36.175.71 with SMTP id l7mr11277334iti.68.1518053378078; Wed, 07 Feb 2018 17:29:38 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id h3sm1735630itd.39.2018.02.07.17.29.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 17:29:37 -0800 (PST) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #25547 Date: Wed, 07 Feb 2018 20:29:36 -0500 Message-ID: <87k1voe0an.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.5 (/) merge 25547 30382 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 02 17:38:04 2020 Received: (at 25547) by debbugs.gnu.org; 2 Nov 2020 22:38:04 +0000 Received: from localhost ([127.0.0.1]:42870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZiSh-0007Uf-VE for submit@debbugs.gnu.org; Mon, 02 Nov 2020 17:38:04 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZiSf-0007U7-AJ for 25547@debbugs.gnu.org; Mon, 02 Nov 2020 17:38:02 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6D28D100257; Mon, 2 Nov 2020 17:37:55 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1221A100071; Mon, 2 Nov 2020 17:37:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604356674; bh=4r4ZIbUWxDv1cLSaqFbdxcmCwu7dG/JjX+vZEB/vzxs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FFuRlU6riyZEOSHYadgASjppomVLTIUqf43LUC8UaiJ3I4Ss9IskvlD87orNAEhhF ct/+hUV1pelDOrQxL8smFwF2HWRATVaGc0PtPajYnU8PNuxKagsQTgiYeDcQEwxja4 qDggM9767rZ0L7E6ss+PiqK/efRWAFikvRMASOAyBkHIM8sj0J6vqzfX25X9/aUPm4 VZgGAL3qx6UbTOiGnH5Xoj+IEBZwZic6LiOUYy2aONR+P9Qa478GhyZ3CARVcTtzGL vKP6I3FXia0Kg0locfl2Daki+9N9zsdn9nzX0/FvnPPyAJes2KrrEKU8tfEF9jYlxS WCpBc3RoMpG0g== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D6BEB1200E2; Mon, 2 Nov 2020 17:37:53 -0500 (EST) From: Stefan Monnier To: Alex Hutcheson Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: Date: Mon, 02 Nov 2020 17:37:53 -0500 In-Reply-To: (Alex Hutcheson's message of "Thu, 26 Jan 2017 13:09:46 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.058 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Eliza Velasquez X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > To reproduce: > 1. Run `emacs --daemon' on a system with a graphical display. > 2. Login to the system using a terminal with no graphical display. You > could do this by switching to another virtual terminal (Ctrl-Alt-F1 > works on Ubuntu), or SSH in from another machine. > 3. Run `emacsclient -c' or `emacsclient -t' in the terminal to connect > to the running Emacs instance. > 4. Inside Emacs, run M-x shell. > 5. In the M-x shell buffer, run `emacsclient -c'. > > Ideal behavior: emacsclient creates a frame on the current terminal. > Actual behavior: emacsclient creates a graphical frame in the > environment in which it was launched, which is inaccessible from the > terminal. Indeed the current behavior is a bummer. The second emacsclient runs within a shell process which itself is associated to the *shell* buffer, which can be displayed in several windows, including some of them in the GUI. So in the above case you actually would like to open the emacsclient wherever `selected-frame` is (because it's generally impossible to walk out way back from the second emacsclient process to the parent tty in which the first emacsclient has opened a frame). Have you tried using `emacsclient` without the `-c` option (you'll have to provide a file-name in that case)? Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 02 19:37:37 2020 Received: (at 25547) by debbugs.gnu.org; 3 Nov 2020 00:37:37 +0000 Received: from localhost ([127.0.0.1]:42958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZkKP-0001t8-1Y for submit@debbugs.gnu.org; Mon, 02 Nov 2020 19:37:37 -0500 Received: from mail-io1-f49.google.com ([209.85.166.49]:37722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZkHo-0001ot-Ki for 25547@debbugs.gnu.org; Mon, 02 Nov 2020 19:34:57 -0500 Received: by mail-io1-f49.google.com with SMTP id r12so7755905iot.4 for <25547@debbugs.gnu.org>; Mon, 02 Nov 2020 16:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UVopV4LAyraVQewwAZIR3cck3o8C1FvZiqf2g7PlP50=; b=GDM/leakXxM45VkdPonP5ItMR9uiOEIlqAQCFdmz5e4DsKZxNMMKkkvOFjySvSRqZU 9WqqZ0EhUyERtbbSrlPAQ8J6E4AtTaSbaK3PgKg675pBRbUmC9B87HzsuUq7bNUq8LGG ajlVcc0YXqzyRbIPj+ja3ZL+nQlWSvtW2bJIWCH/AG6kGDo9cvtxbdMuDCxK4XqvHeFF okvxH0SH4N+xnmibkpAI6XpU+J/nrcNhxg17xZfNjjvUk1uxmURKTx5eSEA3t8i8gvC6 fafzYL9DTxLgHn+fT1S2A71fS70oF7ipSmFPfZulZALi+a8IOd0Pus1vuS0aPLJGgw3R MZdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UVopV4LAyraVQewwAZIR3cck3o8C1FvZiqf2g7PlP50=; b=tLkAAth3OZK19yHW6F56HgqBpF9Vd2yee/sLwBfPqEzIy0S7ZLQbXXn6MUc18d/C5p H7lHMIeRH7cw3pltZubER9hb9mE094BVpO9Pd68D8cdBMhCTlklTRBHja+p0hzo8KdNg nQnM9tUVF6FkWh8Q+wyD8/Wtip4+sDUefdK2MkM9cfGJMdXxxo6xAZllx98f/qEsbZf0 Vm+h0FQWXwbh02/vqyAoGeec8k93/MIzg6hmDO250JZ/MsteuXGf8IZSakznGkPKri+V qT10Q1tCMh0gJWGNfG71sjxWrF9BNkY1Bi6CqEnssfdJXKAdk8IjUiqGUNfbM64k0duK F5iA== X-Gm-Message-State: AOAM533nGaLT3SNsLCJj0DbA9yoXxblPDe9cIlAgnHqq1qqi0NMKryCp Dgs3ENiqrCt6TQjh2i1yWYgjviq/ZqHCiwaIfMqOBw== X-Google-Smtp-Source: ABdhPJwkgb9ygsncj/RNqP3tyg45rRwfgZxF0VYQiXzKvwcoj7EZkh4h/VhQSBxuUA2HfdX6RLL2GX1ijzkVUDRVyqw= X-Received: by 2002:a02:6016:: with SMTP id i22mr13077935jac.140.1604363690487; Mon, 02 Nov 2020 16:34:50 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eliza Velasquez Date: Mon, 2 Nov 2020 16:34:39 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 X-Mailman-Approved-At: Mon, 02 Nov 2020 19:37:36 -0500 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) > Have you tried using `emacsclient` without the `-c` option (you'll have > to provide a file-name in that case)? Yeah, that's what our golang wrapper was created to do. It would detect edge cases like this and instead of invoking emacsclient with -c, it would run elisp code to create a new frame. But that breaks the blocking functionality, so a further workaround was used to block during the lifetime of the frame by tracking the life of a temporary file which our internal emacs elisp package created and deleted specifically during ediff sessions. This seems like it might be tricky to solve properly. My guess from looking at the emacsclient source is that a new option would be required in order to maintain backwards compatibility, maybe something like `--smart-create-frame` or `-C`, which would behave as in the expected behavior of the bug report. I think the emacs server might need some tweaking as well, since I'm not sure there's any existing combination of options that can be passed through the pipe for this. On Mon, Nov 2, 2020 at 2:37 PM Stefan Monnier wrote: > > > To reproduce: > > 1. Run `emacs --daemon' on a system with a graphical display. > > 2. Login to the system using a terminal with no graphical display. You > > could do this by switching to another virtual terminal (Ctrl-Alt-F1 > > works on Ubuntu), or SSH in from another machine. > > 3. Run `emacsclient -c' or `emacsclient -t' in the terminal to connect > > to the running Emacs instance. > > 4. Inside Emacs, run M-x shell. > > 5. In the M-x shell buffer, run `emacsclient -c'. > > > > Ideal behavior: emacsclient creates a frame on the current terminal. > > Actual behavior: emacsclient creates a graphical frame in the > > environment in which it was launched, which is inaccessible from the > > terminal. > > Indeed the current behavior is a bummer. > > The second emacsclient runs within a shell process which itself is > associated to the *shell* buffer, which can be displayed in several > windows, including some of them in the GUI. > > So in the above case you actually would like to open the emacsclient > wherever `selected-frame` is (because it's generally impossible to walk > out way back from the second emacsclient process to the parent tty in > which the first emacsclient has opened a frame). > > Have you tried using `emacsclient` without the `-c` option (you'll have > to provide a file-name in that case)? > > > Stefan > From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 02 19:56:34 2020 Received: (at 25547) by debbugs.gnu.org; 3 Nov 2020 00:56:34 +0000 Received: from localhost ([127.0.0.1]:42973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZkck-0002KP-GT for submit@debbugs.gnu.org; Mon, 02 Nov 2020 19:56:34 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:26383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZkci-0002KC-PI for 25547@debbugs.gnu.org; Mon, 02 Nov 2020 19:56:33 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 21DC2100257; Mon, 2 Nov 2020 19:56:27 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B169A100071; Mon, 2 Nov 2020 19:56:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604364985; bh=KEDvk4yUZ0/hgcKa+mKUR6DfdafM8nESAfu+kchq34Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DXrJN5PwSwmkO2iejeWMQT3bVrMuvlsg4flVuQVUXTV5HJEpWpjdQgPkpzsoOPk/c AZDOwQY5cS4fOQY36sS13/z6TcsaCWEmBDeSMxyVdjxQt0bVZjRLr6EfebSB51w7Fe 2HYS6ZyYnXV/bYhhmXgECl+mPs02bKzdNgOh64OObrcsRYn4pxeNMl21dn8kAO6sir SZ0q1zW0YgTuzr/KcfftwVTh9ndQ2C5FwWfjgUEvL5A8q8ipPM2XXgr2Cq7cvC1LrE CRxVFNgx+2C3PR5Tz5HqXFQm+f8sAMfPxJVadwO8jjr2Y+x1xopfGl2odm7Nze7M5K JmbQJK5f11oMQ== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 836C31200A1; Mon, 2 Nov 2020 19:56:25 -0500 (EST) From: Stefan Monnier To: Eliza Velasquez Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: Date: Mon, 02 Nov 2020 19:56:24 -0500 In-Reply-To: (Eliza Velasquez's message of "Mon, 2 Nov 2020 16:34:39 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.057 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > This seems like it might be tricky to solve properly. My guess from > looking at the emacsclient source is that a new option would be > required in order to maintain backwards compatibility, maybe something > like `--smart-create-frame` or `-C`, which would behave as in the > expected behavior of the bug report. Maybe we don't need a special option: we should be able to detect this situation when `-c` is passed from an emacsclient running in a "dumb tty". IOW it might be a simple matter of tweaking server.el for the case where `tty-type` is `dumb` and the `selected-frame` is a non-GUI frame, in which case we'll just want to create a new tty frame in the same terminal as that of the `selected-frame`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 03 13:37:06 2020 Received: (at 25547) by debbugs.gnu.org; 3 Nov 2020 18:37:06 +0000 Received: from localhost ([127.0.0.1]:46393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka1B3-0008RK-Rg for submit@debbugs.gnu.org; Tue, 03 Nov 2020 13:37:06 -0500 Received: from mail-il1-f175.google.com ([209.85.166.175]:39947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka1B1-0008Qr-U2 for 25547@debbugs.gnu.org; Tue, 03 Nov 2020 13:37:04 -0500 Received: by mail-il1-f175.google.com with SMTP id n5so17029124ile.7 for <25547@debbugs.gnu.org>; Tue, 03 Nov 2020 10:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ac6p/IFSJTBWQ52WbpngRNr0WxYqBTRqXBLTuyQrZ9o=; b=Dot4Ixzo0sPtmNbFiXb0JD7CkUN6ZJtUycES8On6tM+0/V8ifxt8XZARt0y5dBPM/j esAfCfzJiYQdiktLy5P/NEhHdRnucBHm5nREDUCRSsFHcynK+rbsldh3MrwNcpVrvmre KtGo8Srehzk2RN4knnpd2u5caob/rri6igCb1+cJuxMtQhVj/AOwVdzE6hQINbq5//Hg Mm5+4yOBXz3txJm2EYL0l+19DKtLxAcS12MX+73tu7fTTNbYIb6gHrV4PfPx7ECj/lTy 5zDrZwFPaucrbPi8WsezisF/gzqNvKSUQajk4Cs85+AcBwuRmj5HAwxNEh6WT6Hci1l8 YZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ac6p/IFSJTBWQ52WbpngRNr0WxYqBTRqXBLTuyQrZ9o=; b=d77+GxZCaLDBKB5CCz724WcTgcXrlLod9PqhwKjq71Qccn6/QTnj+hq32+Gl0//JIB mtVM7oemUSO2xlA8Sl8i+fHjzJWM7VDID5f5RKg2xgOBCzi4jyEEdEcLhHkDgOnCT618 /C5FwvJKiRCFyr+6ze+HlVIDrRlkR7ON6pJdsrJgtudLLMoW0iOkUiNnBxOBYy3HBXPQ LJs3OFHO/2OOLrEGQruucAG29kQ4kaso/qVTpo4MNV2AQKZdBoLhguKkkfA+SRB6F8XL 67nKNRkHypyMVUrqzR1o9Yosg9AFauRIWu4O6kykw4hMEB8Z5US33vJh2XdozEC0mn/7 0EDQ== X-Gm-Message-State: AOAM531cIcODF2ccAfzs0C0GiPQnY1f9YSBXwQxWP//uCOpHp8zt1i7T EiWnGrH6qC3bD7Y1w0PVoFe+VnxMNMNroJMQXllFRA== X-Google-Smtp-Source: ABdhPJxO76/XzS2p1CYOlB9AuouPqLjZJP21spVckXuKNmGUBTsP0jIkY+7GH2BA4Gi5dqOHjZxD9js5lvxRce9gNZ8= X-Received: by 2002:a05:6e02:531:: with SMTP id h17mr15623936ils.210.1604428618073; Tue, 03 Nov 2020 10:36:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eliza Velasquez Date: Tue, 3 Nov 2020 10:36:47 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) Okay, I'll try to work on this today and see if I can get anywhere with it. On Mon, Nov 2, 2020 at 4:56 PM Stefan Monnier wrote: > > > This seems like it might be tricky to solve properly. My guess from > > looking at the emacsclient source is that a new option would be > > required in order to maintain backwards compatibility, maybe something > > like `--smart-create-frame` or `-C`, which would behave as in the > > expected behavior of the bug report. > > Maybe we don't need a special option: we should be able to detect this > situation when `-c` is passed from an emacsclient running in a "dumb > tty". > > IOW it might be a simple matter of tweaking server.el for the case where > `tty-type` is `dumb` and the `selected-frame` is a non-GUI frame, in > which case we'll just want to create a new tty frame in the same > terminal as that of the `selected-frame`. > > > Stefan > From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 04 21:00:34 2020 Received: (at 25547) by debbugs.gnu.org; 5 Nov 2020 02:00:34 +0000 Received: from localhost ([127.0.0.1]:51160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaUZm-0006S0-1Q for submit@debbugs.gnu.org; Wed, 04 Nov 2020 21:00:34 -0500 Received: from mail-il1-f179.google.com ([209.85.166.179]:39511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaUZi-0006Rn-TW for 25547@debbugs.gnu.org; Wed, 04 Nov 2020 21:00:32 -0500 Received: by mail-il1-f179.google.com with SMTP id q1so245549ilt.6 for <25547@debbugs.gnu.org>; Wed, 04 Nov 2020 18:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G/4wzl1YlWmFmD/xuxezS3YMG0MGZiFylc/JPqRiG+g=; b=lREqJ/kM55XR1lRQS4iFghFEEfIKJB+GIcZalrQq9p75Jc93vPpgpWZnof/oWN7nML O9lsgA2o2m2CrtYR5CpA1/soZNtWosHZOIKHOzYHYTJdz4yQet4gDZsiELJG71E1QoSM 9weNeZYeKyehYGMOdCT+kWrBRe3S3sQniYBOdKd/KVE0YFJ4vpS2AJg097II9Ok1b6Po wOhdyRgLItRvIAku7UFyCwdNQRGUP6c+2JFhVQqPPvkm8vrH2hK6J2KjwqBIbhAWBbXh xSt3KXKRNiP55f03+Qtz1q6z2Xy1k5nWAMOeDLR/UuBXKgXGSQqJE3+WyVfQRuQb6I1I yk9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G/4wzl1YlWmFmD/xuxezS3YMG0MGZiFylc/JPqRiG+g=; b=ZELilljr9jBwnWO3oD9UvkgQJqVvigDYS65Td9TXMbF3ZGL1qF01VM7acLGdhlZHX0 phcEy7AR36kbB5ismm3E23xKI+t63IkNDAOmFu1lPN4pI4lLQm1sFp1MKuzGJdRseQWs UVYdSAN9lCmvFGzbBTgxJ220e/BaBChf4FMa4JnK1n0fDtY+9U/Fu3gyimulMxQOs8qh uJDLtPPakXrl6wsn9uhqULMIIiJ3y+eKVskHU3AJqerP5cWfasrgxeWO3+z68xd//Ze4 vbdLmM4GJxQk7Ka9cIypmgLC0sxXc1+hXgPalRhWJwUtNi7ocFX4KvwmODqjZO7VZy9n On4w== X-Gm-Message-State: AOAM532S/S9cXsoCbWNuZM71ZiKkm18tez+3BPaYhP+7ocr7AHRpU7PD kaW2l3qwuru7tb+KokzWR66oEG1WeheaewjzcS/o0A== X-Google-Smtp-Source: ABdhPJwctFguPzNxkCOfzGs3hk3pgy4/75gppyklsSxO+IIvrGXzMxDiAF/KLgUttzLnWyhW18DaEnD+hCN22vDWGn0= X-Received: by 2002:a92:ddc6:: with SMTP id d6mr227319ilr.99.1604541624991; Wed, 04 Nov 2020 18:00:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eliza Velasquez Date: Wed, 4 Nov 2020 18:00:14 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) It looks like I was able to make progress today. Just by modifying server.el, I've gotten `emacsclient -ce "..."` to create a new frame based on the currently selected frame's terminal when called in a dumb terminal. Unfortunately, the command for calling ediff is still very unpleasant: emacsclient -ucF "((delete-frame-on-ediff-quit . t))" \ -e "(ediff-merge-with-ancestor \"${local}\" \"${other}\" \"${base}\" nil \"${output}\")" \ -e "(add-hook 'ediff-quit-hook (lambda () (when (frame-parameter nil 'delete-frame-on-ediff-quit) (delete-frame))))" So perhaps introducing a wrapper script for ediff merges would still be useful. It's getting late today, so tomorrow morning I'll look into how to actually submit this as a patch. On Tue, Nov 3, 2020 at 10:36 AM Eliza Velasquez wrote: > > Okay, I'll try to work on this today and see if I can get anywhere with it. > > On Mon, Nov 2, 2020 at 4:56 PM Stefan Monnier wrote: > > > > > This seems like it might be tricky to solve properly. My guess from > > > looking at the emacsclient source is that a new option would be > > > required in order to maintain backwards compatibility, maybe something > > > like `--smart-create-frame` or `-C`, which would behave as in the > > > expected behavior of the bug report. > > > > Maybe we don't need a special option: we should be able to detect this > > situation when `-c` is passed from an emacsclient running in a "dumb > > tty". > > > > IOW it might be a simple matter of tweaking server.el for the case where > > `tty-type` is `dumb` and the `selected-frame` is a non-GUI frame, in > > which case we'll just want to create a new tty frame in the same > > terminal as that of the `selected-frame`. > > > > > > Stefan > > From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 04 23:44:12 2020 Received: (at 25547) by debbugs.gnu.org; 5 Nov 2020 04:44:12 +0000 Received: from localhost ([127.0.0.1]:51329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaX88-00026C-CH for submit@debbugs.gnu.org; Wed, 04 Nov 2020 23:44:12 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaX86-00025z-KH for 25547@debbugs.gnu.org; Wed, 04 Nov 2020 23:44:11 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8767D10019F; Wed, 4 Nov 2020 23:44:04 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EF4CB10001F; Wed, 4 Nov 2020 23:44:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604551442; bh=cYLkVIb78zlSNR6LWrQCzOs7gE+aLUYTBC4YFku72aA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=guHVcpjlWmJG3CBaGZthNKtU471hd2Ks5/GQUlmimsVFMXXr+hbZpyZJhgLXT4jhg iA0JoXsfqk1HcLDZCWiWRhfK5Ga3qhoQ6XdJ4G3K6clZACjl/wuSugEvHeJbSnbgib c/ciJoy+g/lOOOyniiebyA0LREyIWcpK8N4x6hHD43JKPnnkG4+A/aM4GTya7+WGdo OTq4YZJBm9gCUV8jW7iZ7XnmhQ0Edlsz/q8UmOvUq2EmtB5M3nJg2rIDLxunVTA8vG i2xSBkCYCywS95X9hKA/GxWlii6+jzYITgdQc8YdWXXv7AJDT2hCQJ0UgcRlBLE7xy U9oK3IFJU/aOg== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9D2FF120169; Wed, 4 Nov 2020 23:44:02 -0500 (EST) From: Stefan Monnier To: Eliza Velasquez Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: Date: Wed, 04 Nov 2020 23:44:01 -0500 In-Reply-To: (Eliza Velasquez's message of "Wed, 4 Nov 2020 18:00:14 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.056 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > It looks like I was able to make progress today. Just by modifying > server.el, I've gotten `emacsclient -ce "..."` to create a new frame > based on the currently selected frame's terminal when called in a dumb > terminal. Great! > Unfortunately, the command for calling ediff is still very > unpleasant: > > emacsclient -ucF "((delete-frame-on-ediff-quit . t))" \ > -e "(ediff-merge-with-ancestor \"${local}\" \"${other}\" \"${base}\" > nil \"${output}\")" \ > -e "(add-hook 'ediff-quit-hook (lambda () (when (frame-parameter nil > 'delete-frame-on-ediff-quit) (delete-frame))))" I think the problem is that emacsclient lacks the equivalent of `-f`, i.e. calling a particular ELisp function where the remaining arguments can be consumed by that function. That would solve the problem of quoting (your above script will stumble when encountering a file name with quotes in it or with a final backslash). > So perhaps introducing a wrapper script for ediff merges would still be useful. We should be able to add a convenience `batch-ediff-merge-with-ancestor`. Bonus points if you manage to make it work with `emacs --batch -f` as well as with `emacsclient --`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 05 18:41:27 2020 Received: (at 25547) by debbugs.gnu.org; 5 Nov 2020 23:41:27 +0000 Received: from localhost ([127.0.0.1]:54495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaosg-0008Bq-OY for submit@debbugs.gnu.org; Thu, 05 Nov 2020 18:41:26 -0500 Received: from mail-il1-f180.google.com ([209.85.166.180]:33831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaosf-0008Be-BQ for 25547@debbugs.gnu.org; Thu, 05 Nov 2020 18:41:25 -0500 Received: by mail-il1-f180.google.com with SMTP id p2so2986762ilg.1 for <25547@debbugs.gnu.org>; Thu, 05 Nov 2020 15:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eJpVhSZ5+IUh/jNWIxc7EoAofQgXNuwSWAlZws9iMCo=; b=nIgDa8NUakhL4FUDcR5gfyRvHRisFvNhh2VOeQdQyDynX3EtQJmw5SSPa/jRzY6sXp 6nfeeuJxxEm5fvuboRYxog8dw/rHVB+njWCBqqObOWIEvD+GgYsgi3XVmCb3NTee442d gEnnTVEpdchaYd1ucqpKFM86OLa7sPhG9bfcLSMGsyGSwL2x/7DVjP/FGW03d/Cj4+PF nwPnkM9QBDVSXgBQCeyDkXyRSXVf2WNbBZNgXSa6yLGCFbMXBctGRCH8u143hWGXfSXw nOaPzs8uDvLlRcsAcaFMBkQuF9nsnVEnZIOA0k6YAKzFOMplRiPe2ARIbkVzOSBAbZhc H7CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eJpVhSZ5+IUh/jNWIxc7EoAofQgXNuwSWAlZws9iMCo=; b=NdiKKsrPij26y7yBUt4H+mK/rKz0R2xaYlzYecDI02LTsNxF/Nr+qCIYHlKHzOlb+a gBSSwBqIQOYGEXjiM+sGpoQl0gUGS2Zu0d9RbPsaixNapSRTT0gTL+i4AaqqWOlzgdkk Pw04g1kblm7fq2T6cV41qzd5FWdxK94Dm+kE9XROF1+tfLjGOv9zQBM+zx1Ept9t63fO UM8ouGr1VQuQfpaVR2lTuAHO/y+mxQeFFVT7NLUuLdWLhUfYGDxW1iKFN6IwzATg7QMw OhI/EkZAEnpEtvxFFFJCLe4ogXKi2vKqaSpVM8J6KGkMyy1kyHMfkTS9zWtLAZo5kTqp PrDQ== X-Gm-Message-State: AOAM533DRcI8W7xSAzZtqk3gtczZXfR8jRfd2Pwki0exXDXOYaip7qkE wJSDjtFbcHBWGMor9PW9IwvJSxuvwuU9+ixofphG0w== X-Google-Smtp-Source: ABdhPJypVqJ0AgSYXbELASuDIF57tMEwzBjfVbWKHwptqCsPaHJDDLunTpNbddnUSeZxiaG0ymq7TIpwnH1Wx9gN7PI= X-Received: by 2002:a92:7c04:: with SMTP id x4mr3772246ilc.36.1604619679481; Thu, 05 Nov 2020 15:41:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eliza Velasquez Date: Thu, 5 Nov 2020 15:41:08 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Stefan Monnier Content-Type: multipart/mixed; boundary="000000000000ff64ab05b364a1a4" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) --000000000000ff64ab05b364a1a4 Content-Type: text/plain; charset="UTF-8" Oops, forgot to reply all on my last message. Attached is the patch. On Wed, Nov 4, 2020 at 8:44 PM Stefan Monnier wrote: > > > It looks like I was able to make progress today. Just by modifying > > server.el, I've gotten `emacsclient -ce "..."` to create a new frame > > based on the currently selected frame's terminal when called in a dumb > > terminal. > > Great! > > > Unfortunately, the command for calling ediff is still very > > unpleasant: > > > > emacsclient -ucF "((delete-frame-on-ediff-quit . t))" \ > > -e "(ediff-merge-with-ancestor \"${local}\" \"${other}\" \"${base}\" > > nil \"${output}\")" \ > > -e "(add-hook 'ediff-quit-hook (lambda () (when (frame-parameter nil > > 'delete-frame-on-ediff-quit) (delete-frame))))" > > I think the problem is that emacsclient lacks the equivalent of `-f`, > i.e. calling a particular ELisp function where the remaining arguments > can be consumed by that function. That would solve the problem of > quoting (your above script will stumble when encountering > a file name with quotes in it or with a final backslash). > > > So perhaps introducing a wrapper script for ediff merges would still be useful. > > We should be able to add a convenience `batch-ediff-merge-with-ancestor`. > Bonus points if you manage to make it work with `emacs --batch -f` as > well as with `emacsclient --`. > > > Stefan > --000000000000ff64ab05b364a1a4 Content-Type: application/octet-stream; name="25547.patch" Content-Disposition: attachment; filename="25547.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kh5h44gy0 ZGlmZiAtLWdpdCBhL2xpc3Avc2VydmVyLmVsIGIvbGlzcC9zZXJ2ZXIuZWwKaW5kZXggYTY2MGRl YWI4ZS4uYjZkMDEzNmQ1MSAxMDA2NDQKLS0tIGEvbGlzcC9zZXJ2ZXIuZWwKKysrIGIvbGlzcC9z ZXJ2ZXIuZWwKQEAgLTM1NCw5ICszNTQsMTEgQEAgc2VydmVyLWRlbGV0ZS1jbGllbnQKIAogICAg ICAgKHNldHEgc2VydmVyLWNsaWVudHMgKGRlbHEgcHJvYyBzZXJ2ZXItY2xpZW50cykpCiAKLSAg ICAgIDs7IERlbGV0ZSB0aGUgY2xpZW50J3MgdHR5LCBleGNlcHQgb24gV2luZG93cyAoYm90aCBH VUkgYW5kIGNvbnNvbGUpLAotICAgICAgOzsgd2hlcmUgdGhlcmUncyBvbmx5IG9uZSB0ZXJtaW5h bCBhbmQgZG9lcyBub3QgbWFrZSBzZW5zZSB0byBkZWxldGUgaXQuCi0gICAgICAodW5sZXNzIChl cSBzeXN0ZW0tdHlwZSAnd2luZG93cy1udCkKKyAgICAgIDs7IERlbGV0ZSB0aGUgY2xpZW50J3Mg dHR5LCBleGNlcHQgb24gV2luZG93cyAoYm90aCBHVUkgYW5kCisgICAgICA7OyBjb25zb2xlKSwg d2hlcmUgdGhlcmUncyBvbmx5IG9uZSB0ZXJtaW5hbCBhbmQgZG9lcyBub3QgbWFrZQorICAgICAg Ozsgc2Vuc2UgdG8gZGVsZXRlIGl0LCBvciBpZiB3ZSBhcmUgZXhwbGljaXRseSB0b2xkIG5vdC4K KyAgICAgICh1bmxlc3MgKG9yIChlcSBzeXN0ZW0tdHlwZSAnd2luZG93cy1udCkKKyAgICAgICAg ICAgICAgICAgIChwcm9jZXNzLWdldCBwcm9jICduby1kZWxldGUtdGVybWluYWwpKQogCShsZXQg KCh0ZXJtaW5hbCAocHJvY2Vzcy1nZXQgcHJvYyAndGVybWluYWwpKSkKIAkgIDs7IE9ubHkgZGVs ZXRlIHRoZSB0ZXJtaW5hbCBpZiBpdCBpcyBub24tbmlsLgogCSAgKHdoZW4gKGFuZCB0ZXJtaW5h bCAoZXEgKHRlcm1pbmFsLWxpdmUtcCB0ZXJtaW5hbCkgdCkpCkBAIC05MTgsNiArOTIwLDE5IEBA IHNlcnZlci1jcmVhdGUtd2luZG93LXN5c3RlbS1mcmFtZQogICAgICAgICAgICAoc2VydmVyLXNl bmQtc3RyaW5nIHByb2MgIi13aW5kb3ctc3lzdGVtLXVuc3VwcG9ydGVkIFxuIikKICAgICAgICAg ICAgbmlsKSkpKQogCisoZGVmdW4gc2VydmVyLWNyZWF0ZS1mcmFtZSAobm93YWl0IHByb2MgJm9w dGlvbmFsIHBhcmFtZXRlcnMpCisgIChhZGQtdG8tbGlzdCAnZnJhbWUtaW5oZXJpdGVkLXBhcmFt ZXRlcnMgJ2NsaWVudCkKKyAgKGxldCAoKGZyYW1lIChtYWtlLWZyYW1lIGAoKGNsaWVudCAuICwo aWYgbm93YWl0ICdub3dhaXQgcHJvYykpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDs7 IFRoaXMgaXMgYSBsZWZ0b3Zlciwgc2VlIGFib3ZlLgorICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAoZW52aXJvbm1lbnQgLiAsKHByb2Nlc3MtZ2V0IHByb2MgJ2VudikpCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICxAcGFyYW1ldGVycykpKSkKKyAgICAoc2VydmVyLWxvZyAoZm9y bWF0ICIlcyBjcmVhdGVkIiBmcmFtZSkgcHJvYykKKyAgICAoc2VsZWN0LWZyYW1lIGZyYW1lKQor ICAgIChwcm9jZXNzLXB1dCBwcm9jICdmcmFtZSBmcmFtZSkKKyAgICAocHJvY2Vzcy1wdXQgcHJv YyAndGVybWluYWwgKGZyYW1lLXRlcm1pbmFsIGZyYW1lKSkKKyAgICAocHJvY2Vzcy1wdXQgcHJv YyAnbm8tZGVsZXRlLXRlcm1pbmFsIHQpCisgICAgZnJhbWUpKQorCiAoZGVmdW4gc2VydmVyLWdv dG8tdG9wbGV2ZWwgKHByb2MpCiAgIChjb25kaXRpb24tY2FzZSBuaWwKICAgICAgIDs7IElmIHdl J3JlIHJ1bm5pbmcgaXNlYXJjaCwgd2UgbXVzdCBhYm9ydCBpdCB0byBhbGxvdyBFbWFjcyB0bwpA QCAtMTI2NCw2ICsxMjc5LDEwIEBAIHNlcnZlci1wcm9jZXNzLWZpbHRlcgogCQkJCQkgICB0ZXJt aW5hbC1mcmFtZSkpKSkpCiAJCSAgICAoc2V0cSB0dHktbmFtZSBuaWwgdHR5LXR5cGUgbmlsKQog CQkgICAgKGlmIGRpc3BsYXkgKHNlcnZlci1zZWxlY3QtZGlzcGxheSBkaXNwbGF5KSkpCisgICAg ICAgICAgICAgICAgICAgKChlcXVhbCB0dHktdHlwZSAiZHVtYiIpCisgICAgICAgICAgICAgICAg ICAgIDs7IER1bWIgdGVybWluYWxzIHNob3VsZCBjcmVhdGUgZnJhbWVzIHdpdGhvdXQKKyAgICAg ICAgICAgICAgICAgICAgOzsgcHJlZmVyZW5jZSBmb3IgdHR5IG9yIHdpbmRvdyBzeXN0ZW0gKGJ1 ZyMyNTU0NykKKyAgICAgICAgICAgICAgICAgICAgKHNlcnZlci1jcmVhdGUtZnJhbWUgbm93YWl0 IHByb2MgZnJhbWUtcGFyYW1ldGVycykpCiAJCSAgICgob3IgKGFuZCAoZXEgc3lzdGVtLXR5cGUg J3dpbmRvd3MtbnQpCiAJCQkgICAgIChkYWVtb25wKQogCQkJICAgICAoc2V0cSBkaXNwbGF5ICJ3 MzIiKSkK --000000000000ff64ab05b364a1a4-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 05 19:56:14 2020 Received: (at 25547) by debbugs.gnu.org; 6 Nov 2020 00:56:14 +0000 Received: from localhost ([127.0.0.1]:54536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaq34-0003dM-DN for submit@debbugs.gnu.org; Thu, 05 Nov 2020 19:56:14 -0500 Received: from mail-io1-f47.google.com ([209.85.166.47]:44134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaq32-0003dA-Ui for 25547@debbugs.gnu.org; Thu, 05 Nov 2020 19:56:13 -0500 Received: by mail-io1-f47.google.com with SMTP id o11so3744880ioo.11 for <25547@debbugs.gnu.org>; Thu, 05 Nov 2020 16:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/TF5TA0YYVmBi5HhKenL2XtDf/KQ+A+U38WJ0A+8Tis=; b=n2ow/zm8CwX888e9zXTjg80U4eiYpO/h94E4rf6sQ0bxWufzJMNJ71pXpcLzyB8LKi 3BXkOCdMLw/lED6aQvSO9pBPn56m71CSIX2CCSMJGbXOwSvolBcxaISb8kvdy5nlikgz BnvDNPOcufBWqlAD2cnpCcsFJqZIEzsLUHjbtEqtIQ8Jd06/3hQXFUS1DsImMr/DZga/ WNUIUkHrG5cTm42jfCA4B416t6k1ym2Hl0aDX+UpAoe/K4NfSwHAuR1Trxxcv73kxMYZ MVJiu504boenG3oB9ISP1Es7LY5ZDjW5V8oFJe6+iY2XJ1a9DKQ76XZPP3UDjVLo2UCr 9dAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/TF5TA0YYVmBi5HhKenL2XtDf/KQ+A+U38WJ0A+8Tis=; b=qAQ4VFnjNMaqvPdTshT7H9rFLEJno0K3bf8Njcq7ItcydwON96qsJPM0yyUUoYY9cW fCRNBCQMQtC9biatwAQLGFO7jHUnC05G5ncTmlD1sI5r6CbfmoO7XBuMW3iMCd9TGg73 ZbJE6RdXexiZ5DdZrAMDsUqtvdplEc3dUelBglUt3l2ntmX4xX4PtWpYsp4T+zYydEV7 PoS3LyOH6m9I8AvvW5apFVPInEZag0MUUCTQIw7ImJ3Y4x87FeDFh4/rN4VEthidFqtD LrycpyOIP0dJDeLfa5cpbhNoYrWvmv+sCsZIxUCFU+ADl9o1/iLmNh27f+WJwhL24v4u cfZA== X-Gm-Message-State: AOAM532wJeBTK/labWE0haN0zjxN/V/xFBaJvOx6fLRCLIXwMOTiYtQ5 m13+/pjBD+26ISYQSXeQvA6P8kGQJ0UirG8K7EOf0A== X-Google-Smtp-Source: ABdhPJwxVuIWjnU85ewElI8QMLugYxpln2lZThGiYkdkM4GQlC9CruG8X+jrpGt3oCRwZjIkq4/rhQ6YPoXSdEuPF5s= X-Received: by 2002:a6b:d00c:: with SMTP id x12mr3844346ioa.10.1604624166952; Thu, 05 Nov 2020 16:56:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eliza Velasquez Date: Thu, 5 Nov 2020 16:55:56 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) Actually, I'm realizing now that my patch requires some more work after testing Emacs in daemon mode without an X server. I'll continue this tomorrow. On Thu, Nov 5, 2020 at 3:41 PM Eliza Velasquez wrote: > > Oops, forgot to reply all on my last message. Attached is the patch. > > On Wed, Nov 4, 2020 at 8:44 PM Stefan Monnier wrote: > > > > > It looks like I was able to make progress today. Just by modifying > > > server.el, I've gotten `emacsclient -ce "..."` to create a new frame > > > based on the currently selected frame's terminal when called in a dumb > > > terminal. > > > > Great! > > > > > Unfortunately, the command for calling ediff is still very > > > unpleasant: > > > > > > emacsclient -ucF "((delete-frame-on-ediff-quit . t))" \ > > > -e "(ediff-merge-with-ancestor \"${local}\" \"${other}\" \"${base}\" > > > nil \"${output}\")" \ > > > -e "(add-hook 'ediff-quit-hook (lambda () (when (frame-parameter nil > > > 'delete-frame-on-ediff-quit) (delete-frame))))" > > > > I think the problem is that emacsclient lacks the equivalent of `-f`, > > i.e. calling a particular ELisp function where the remaining arguments > > can be consumed by that function. That would solve the problem of > > quoting (your above script will stumble when encountering > > a file name with quotes in it or with a final backslash). > > > > > So perhaps introducing a wrapper script for ediff merges would still be useful. > > > > We should be able to add a convenience `batch-ediff-merge-with-ancestor`. > > Bonus points if you manage to make it work with `emacs --batch -f` as > > well as with `emacsclient --`. > > > > > > Stefan > > From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 06 00:39:45 2020 Received: (at 25547) by debbugs.gnu.org; 6 Nov 2020 05:39:45 +0000 Received: from localhost ([127.0.0.1]:54740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kauTR-0002C6-4U for submit@debbugs.gnu.org; Fri, 06 Nov 2020 00:39:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kauTP-0002Bp-8h for 25547@debbugs.gnu.org; Fri, 06 Nov 2020 00:39:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46919) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kauTJ-00031T-G0; Fri, 06 Nov 2020 00:39:37 -0500 Received: from [176.228.60.248] (port=1641 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kauTI-00069v-Sa; Fri, 06 Nov 2020 00:39:37 -0500 Date: Fri, 06 Nov 2020 07:39:34 +0200 Message-Id: <834km39h7t.fsf@gnu.org> From: Eli Zaretskii To: Eliza Velasquez In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, alexhutcheson@google.com, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > Cc: 25547@debbugs.gnu.org, Alex Hutcheson > Date: Thu, 5 Nov 2020 15:41:08 -0800 > From: Eliza Velasquez via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > +(defun server-create-frame (nowait proc &optional parameters) This function's name is too general, and therefore will confuse someone who tries to learn how server.el works. Please name it according to the convention used by 2 other functions in server.el that create GUI and TTY frames. Btw, why can't you use server-create-tty-frame here? IOW, I don't think I understand this comment: > + ((equal tty-type "dumb") > + ;; Dumb terminals should create frames without > + ;; preference for tty or window system (bug#25547) > + (server-create-frame nowait proc frame-parameters)) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 06 14:15:01 2020 Received: (at 25547) by debbugs.gnu.org; 6 Nov 2020 19:15:01 +0000 Received: from localhost ([127.0.0.1]:57315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb7CP-0006Av-BH for submit@debbugs.gnu.org; Fri, 06 Nov 2020 14:15:01 -0500 Received: from mail-il1-f176.google.com ([209.85.166.176]:38914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb7CN-0006AW-ON for 25547@debbugs.gnu.org; Fri, 06 Nov 2020 14:15:00 -0500 Received: by mail-il1-f176.google.com with SMTP id q1so1998999ilt.6 for <25547@debbugs.gnu.org>; Fri, 06 Nov 2020 11:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sgBYtAx5RADk8Sw/7Pbrdvr4PkhmQt29u2SArwcdeaI=; b=YNCl6H4kq4iqNuvRMWTw2mZlhyYoOWfgNaVfEsJgu/tgVn6eyt8BB6mrI0NFrmsq6k OOz5i5BLycNXyIUR4K/AT5ahHT/Ig6MBE6BFwwRxQa2j3ziSPWuNfQ+dcf/BPxyvch4F 1+LH7b1TXHnNL5RezkK9xe7RKIHEFUyakHOCSY+aaYMzSOiCGrucdy9sCn58RzpMc+Zb ZxFCSiz1FVZUHoZnVj5pS7sYX1baPACDsLB0ZSpn8a73lz8KVo01KCXcG5dECbOqixQR DXEpDm03s+5hqbb7qFgL8r0mM2ekcXeon3i4QbZ8iUpU6C5fy9NUL98bGd9f6hJLsU3D R7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sgBYtAx5RADk8Sw/7Pbrdvr4PkhmQt29u2SArwcdeaI=; b=VrLXGvUs/8yB++huRxf7wBCGJd8ngEa4lP7bMp0Agn6jTWsML/B5Qgo1yZLt4ljuhy 2bV+dpEU57K1140rNPro4RIfmiHQWPM9Gy6ZEQZqYe1XwXHH2Z56bBV41cJxl8y9q0P5 e9RWIb5Adc4aYtsnfb+yzoNPk//67TZDYbXbBYu/RTOfOrWPh4rhWuPWMpVH1N+vLmrj VmPIFgSArhm2YNCNceaLaNiDdOf/MzrHAMsLwm9wtL4UNXjFmLpHAXRhPf+iQ6KN3bWe TtNxxmG4zQMSjOj3luAR5EUGMGL2OPxAy3Ng7OrIHdz7AZ92FhQtQqunb0zJEzgdEsNe O15w== X-Gm-Message-State: AOAM5320R0VTq0bv597mYOm/jOk7bTu9tZ4IgwF7fMVK6rP32VV3Y0dc XGnizs1M2JIJVgIBx13Yqy+JXhYapza1AdbxOa2k5Q== X-Google-Smtp-Source: ABdhPJxoTaAb2xyaFMIDNSSBwJz9NcWXKYh8ySqG3cUHMKVOJHil3kGrMB1OZptprqZR2+TRQAyYz7sQ/oJVhgvQxiQ= X-Received: by 2002:a92:ddc6:: with SMTP id d6mr2163466ilr.99.1604690093744; Fri, 06 Nov 2020 11:14:53 -0800 (PST) MIME-Version: 1.0 References: <834km39h7t.fsf@gnu.org> In-Reply-To: <834km39h7t.fsf@gnu.org> From: Eliza Velasquez Date: Fri, 6 Nov 2020 11:14:42 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) To answer your second question first, if we try to use server-create-tty-frame, Emacs will try to run display the frame in the terminal of the calling client, which it can't do in the case of a dumb terminal. The next best thing would be to allocate a new frame on an existing frame's terminal, whether that is on the tty or window system. Currently a dumb terminal running `emacsclient -c` can only create new frames on the window system, and this patch should allow it to create new frames on an existing tty terminal as well (once it's working correctly). As the initial report suggests, most of the time a dumb terminal is running `emacsclient -c`, its because it was called as part of a script in an Emacs subprocess. Also, I'll rename the function to something like (server-create-frame-on-selected-terminal) since I agree its purpose is not clear from the name. On Thu, Nov 5, 2020 at 9:39 PM Eli Zaretskii wrote: > > > Cc: 25547@debbugs.gnu.org, Alex Hutcheson > > Date: Thu, 5 Nov 2020 15:41:08 -0800 > > From: Eliza Velasquez via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > +(defun server-create-frame (nowait proc &optional parameters) > > This function's name is too general, and therefore will confuse > someone who tries to learn how server.el works. Please name it > according to the convention used by 2 other functions in server.el > that create GUI and TTY frames. > > Btw, why can't you use server-create-tty-frame here? IOW, I don't > think I understand this comment: > > > + ((equal tty-type "dumb") > > + ;; Dumb terminals should create frames without > > + ;; preference for tty or window system (bug#25547) > > + (server-create-frame nowait proc frame-parameters)) > > Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 06 17:07:47 2020 Received: (at 25547) by debbugs.gnu.org; 6 Nov 2020 22:07:47 +0000 Received: from localhost ([127.0.0.1]:57506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb9tb-0002B4-0R for submit@debbugs.gnu.org; Fri, 06 Nov 2020 17:07:47 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb9ta-0002Ar-00 for 25547@debbugs.gnu.org; Fri, 06 Nov 2020 17:07:46 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 785D610025B; Fri, 6 Nov 2020 17:07:40 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EB848100234; Fri, 6 Nov 2020 17:07:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604700458; bh=9/+QkTIf862rKJezgnCNtvMRzBuII1k0BgqQQprAHao=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=N1sZRxbvcsOcsmWzCf9d3YqEtH5bMlt1WxnHWeEtapCp6f45DDGFd/TxI97TEXzB2 1ErFBCfHaLY+rGHt3BnImij1bKFvvYTlOFO/iVRob/3Va7Y81MZsA5LX4E+QemO2ke 8PRF9qkjxmCIja6lBNsDbKRSMZ4aqx/yFivDk9d3nyoZbZNqgN6yE7PB48p+MbsgxP hQEk36lfz9k5R6tYCLGtNqnOCT4Xg9ni/QS/ClCk96VSvu3X6Dri3UKYadhIXZf1GS YcXEO1L+rKYw2HmHxk3Dgv07fuxBxAuN9zjpwsX8vvi3SdQacHuYCKIV2GsLWa+Wy1 VlOWGcoslFCbw== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 875221201E6; Fri, 6 Nov 2020 17:07:38 -0500 (EST) From: Stefan Monnier To: Eliza Velasquez Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: <834km39h7t.fsf@gnu.org> Date: Fri, 06 Nov 2020 17:07:29 -0500 In-Reply-To: (Eliza Velasquez's message of "Fri, 6 Nov 2020 11:14:42 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.061 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Eli Zaretskii , Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > To answer your second question first, if we try to use > server-create-tty-frame, Emacs will try to run display the frame in > the terminal of the calling client, which it can't do in the case of a > dumb terminal. The comment could say something like "`emacsclient` is running inside something like a `M-x shell` buffer: we can't run Emacs in such ttys, so we use whichever terminal is currently selected". Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 07 03:04:16 2020 Received: (at 25547) by debbugs.gnu.org; 7 Nov 2020 08:04:16 +0000 Received: from localhost ([127.0.0.1]:57882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJCp-0004AN-Nq for submit@debbugs.gnu.org; Sat, 07 Nov 2020 03:04:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJCo-0004AA-Ua for 25547@debbugs.gnu.org; Sat, 07 Nov 2020 03:04:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55060) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbJCj-0003UE-5I; Sat, 07 Nov 2020 03:04:09 -0500 Received: from [176.228.60.248] (port=4276 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbJCi-0000a7-Ip; Sat, 07 Nov 2020 03:04:08 -0500 Date: Sat, 07 Nov 2020 10:04:09 +0200 Message-Id: <83v9eh7fuu.fsf@gnu.org> From: Eli Zaretskii To: Eliza Velasquez In-Reply-To: (message from Eliza Velasquez on Fri, 6 Nov 2020 11:14:42 -0800) Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display References: <834km39h7t.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, alexhutcheson@google.com, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Eliza Velasquez > Date: Fri, 6 Nov 2020 11:14:42 -0800 > Cc: Stefan Monnier , 25547@debbugs.gnu.org, > Alex Hutcheson > > To answer your second question first, if we try to use > server-create-tty-frame, Emacs will try to run display the frame in > the terminal of the calling client, which it can't do in the case of a > dumb terminal. The next best thing would be to allocate a new frame on > an existing frame's terminal, whether that is on the tty or window > system. Currently a dumb terminal running `emacsclient -c` can only > create new frames on the window system, and this patch should allow it > to create new frames on an existing tty terminal as well (once it's > working correctly). As the initial report suggests, most of the time a > dumb terminal is running `emacsclient -c`, its because it was called > as part of a script in an Emacs subprocess. Thanks for the explanation. > Also, I'll rename the function to something like > (server-create-frame-on-selected-terminal) since I agree its purpose > is not clear from the name. How about server-create-dumb-terminal-frame instead, since that's what it really is? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 09 19:14:43 2020 Received: (at 25547) by debbugs.gnu.org; 10 Nov 2020 00:14:43 +0000 Received: from localhost ([127.0.0.1]:35933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcHJ5-0006No-1u for submit@debbugs.gnu.org; Mon, 09 Nov 2020 19:14:43 -0500 Received: from mail-il1-f174.google.com ([209.85.166.174]:41396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcHJ3-0006NM-EO for 25547@debbugs.gnu.org; Mon, 09 Nov 2020 19:14:42 -0500 Received: by mail-il1-f174.google.com with SMTP id x20so10037252ilj.8 for <25547@debbugs.gnu.org>; Mon, 09 Nov 2020 16:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7qvh37YvWMqKf9HPhfDd0bDc3jNmE/V9Ui3nWOokOtU=; b=YIUQQl84ZcRjl3IrsHQUSZtOatnw40lFjBt2ow+BkToxhPZX0psoRhgGu7c8hao5z+ t2Ev0+0Pu14x7ApCqp8i6ohJwPWsr7bRIyJ7kDIgs+11I5QKIhHydKlVQtBw8buLuPMB Rog8P5jcaAj1fTw+Yjtgvz0PjvCb9KqU+VhQtJplmzv9bH03v2CdK4zPJGTG2DlUqckL rh6mJyqyPOSxvmDkVVH7dzAkIKAVQxx/qGo34dfmchAodoXLPeBt10pRTSeg//8EoPdU pTyPFiAXSuNe1LsSvc8Sr28IK7Rw7cKNQKZlS6PGrPPUZya22gXsPSldNGxw4HlUfje1 ZnXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7qvh37YvWMqKf9HPhfDd0bDc3jNmE/V9Ui3nWOokOtU=; b=ixf2ArwwfElZbK6Wu1ymPCJ1VDyK2+PXYSDPa77EQjLI5ilDmGPjlWi0uUQP+Cp9R1 B8nrTTWY5OLiMCqH9HPyLDCoadT7nRxeEFXT0/FeHhFnfS3K2i1Zcx2OBm1tFkcO/p8D kWlKn3cyPmQxBXV9rYbif9NyyvCrgbs48tlDN1sK8g0tiDiJY9oYgWHi+BWP4QSmNsYP B/P+UvRbGvv1OyZNtxYIlH8MCY1fa60UssS/P6XKWgfWquIZaBDcyXnjhL5RDnaOEmMK i0IqEdoHPmOutR5rdVf9P/1wbshy2pXbK8CdlpcuXRWai8aQul5d2xnkMUYZ+AZZdJE+ GC9w== X-Gm-Message-State: AOAM531LEkW6RrY1yM7A8cWuzwKmRuUMBvHg16SUNfeq/5QHME3CqcBP CTYMWY3GexqNnYGg4QjE7AfHpbjzePFR0JHzmVn/0Q== X-Google-Smtp-Source: ABdhPJzvToPUoi5sagRrv3mzX3DssakA8xzLtY890Ojz/R5l6ZVkUbtF+p+g1Em6gObGSTMFVaBT7e2lqGWp+MSuoYg= X-Received: by 2002:a92:ddc6:: with SMTP id d6mr10529480ilr.99.1604967275498; Mon, 09 Nov 2020 16:14:35 -0800 (PST) MIME-Version: 1.0 References: <834km39h7t.fsf@gnu.org> <83v9eh7fuu.fsf@gnu.org> In-Reply-To: <83v9eh7fuu.fsf@gnu.org> From: Eliza Velasquez Date: Mon, 9 Nov 2020 16:14:24 -0800 Message-ID: Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display To: Eli Zaretskii Content-Type: multipart/mixed; boundary="0000000000005588ba05b3b5908e" X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Alex Hutcheson , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -9.0 (---------) --0000000000005588ba05b3b5908e Content-Type: text/plain; charset="UTF-8" > The comment could say something like "`emacsclient` is running > inside something like a `M-x shell` buffer: we can't run Emacs in such > ttys, so we use whichever terminal is currently selected". Done. > How about server-create-dumb-terminal-frame instead, since that's > what it really is? Done. Also, it turns out my code did actually work properly, I think I accidentally had Emacs running as a daemon last time I tested and didn't realize. I just tested it with Emacs running on the GUI, running on the tty, and running as a daemon/emacsclient tty frame. For each case, I opened an M-x shell, and ran `emacsclient -c`, and each time it opened in the expected place. I attached the patch with the new name/comments. On Sat, Nov 7, 2020 at 12:04 AM Eli Zaretskii wrote: > > > From: Eliza Velasquez > > Date: Fri, 6 Nov 2020 11:14:42 -0800 > > Cc: Stefan Monnier , 25547@debbugs.gnu.org, > > Alex Hutcheson > > > > To answer your second question first, if we try to use > > server-create-tty-frame, Emacs will try to run display the frame in > > the terminal of the calling client, which it can't do in the case of a > > dumb terminal. The next best thing would be to allocate a new frame on > > an existing frame's terminal, whether that is on the tty or window > > system. Currently a dumb terminal running `emacsclient -c` can only > > create new frames on the window system, and this patch should allow it > > to create new frames on an existing tty terminal as well (once it's > > working correctly). As the initial report suggests, most of the time a > > dumb terminal is running `emacsclient -c`, its because it was called > > as part of a script in an Emacs subprocess. > > Thanks for the explanation. > > > Also, I'll rename the function to something like > > (server-create-frame-on-selected-terminal) since I agree its purpose > > is not clear from the name. > > How about server-create-dumb-terminal-frame instead, since that's > what it really is? --0000000000005588ba05b3b5908e Content-Type: application/octet-stream; name="25547.patch" Content-Disposition: attachment; filename="25547.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_khb81usy0 ZGlmZiAtLWdpdCBhL2xpc3Avc2VydmVyLmVsIGIvbGlzcC9zZXJ2ZXIuZWwKaW5kZXggYTY2MGRl YWI4ZS4uNzM0ZmI4YTM0YSAxMDA2NDQKLS0tIGEvbGlzcC9zZXJ2ZXIuZWwKKysrIGIvbGlzcC9z ZXJ2ZXIuZWwKQEAgLTM1NCw5ICszNTQsMTEgQEAgc2VydmVyLWRlbGV0ZS1jbGllbnQKIAogICAg ICAgKHNldHEgc2VydmVyLWNsaWVudHMgKGRlbHEgcHJvYyBzZXJ2ZXItY2xpZW50cykpCiAKLSAg ICAgIDs7IERlbGV0ZSB0aGUgY2xpZW50J3MgdHR5LCBleGNlcHQgb24gV2luZG93cyAoYm90aCBH VUkgYW5kIGNvbnNvbGUpLAotICAgICAgOzsgd2hlcmUgdGhlcmUncyBvbmx5IG9uZSB0ZXJtaW5h bCBhbmQgZG9lcyBub3QgbWFrZSBzZW5zZSB0byBkZWxldGUgaXQuCi0gICAgICAodW5sZXNzIChl cSBzeXN0ZW0tdHlwZSAnd2luZG93cy1udCkKKyAgICAgIDs7IERlbGV0ZSB0aGUgY2xpZW50J3Mg dHR5LCBleGNlcHQgb24gV2luZG93cyAoYm90aCBHVUkgYW5kCisgICAgICA7OyBjb25zb2xlKSwg d2hlcmUgdGhlcmUncyBvbmx5IG9uZSB0ZXJtaW5hbCBhbmQgZG9lcyBub3QgbWFrZQorICAgICAg Ozsgc2Vuc2UgdG8gZGVsZXRlIGl0LCBvciBpZiB3ZSBhcmUgZXhwbGljaXRseSB0b2xkIG5vdC4K KyAgICAgICh1bmxlc3MgKG9yIChlcSBzeXN0ZW0tdHlwZSAnd2luZG93cy1udCkKKyAgICAgICAg ICAgICAgICAgIChwcm9jZXNzLWdldCBwcm9jICduby1kZWxldGUtdGVybWluYWwpKQogCShsZXQg KCh0ZXJtaW5hbCAocHJvY2Vzcy1nZXQgcHJvYyAndGVybWluYWwpKSkKIAkgIDs7IE9ubHkgZGVs ZXRlIHRoZSB0ZXJtaW5hbCBpZiBpdCBpcyBub24tbmlsLgogCSAgKHdoZW4gKGFuZCB0ZXJtaW5h bCAoZXEgKHRlcm1pbmFsLWxpdmUtcCB0ZXJtaW5hbCkgdCkpCkBAIC05MTgsNiArOTIwLDE5IEBA IHNlcnZlci1jcmVhdGUtd2luZG93LXN5c3RlbS1mcmFtZQogICAgICAgICAgICAoc2VydmVyLXNl bmQtc3RyaW5nIHByb2MgIi13aW5kb3ctc3lzdGVtLXVuc3VwcG9ydGVkIFxuIikKICAgICAgICAg ICAgbmlsKSkpKQogCisoZGVmdW4gc2VydmVyLWNyZWF0ZS1kdW1iLXRlcm1pbmFsLWZyYW1lIChu b3dhaXQgcHJvYyAmb3B0aW9uYWwgcGFyYW1ldGVycykKKyAgKGFkZC10by1saXN0ICdmcmFtZS1p bmhlcml0ZWQtcGFyYW1ldGVycyAnY2xpZW50KQorICAobGV0ICgoZnJhbWUgKG1ha2UtZnJhbWUg YCgoY2xpZW50IC4gLChpZiBub3dhaXQgJ25vd2FpdCBwcm9jKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgOzsgVGhpcyBpcyBhIGxlZnRvdmVyLCBzZWUgYWJvdmUuCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIChlbnZpcm9ubWVudCAuICwocHJvY2Vzcy1nZXQgcHJvYyAnZW52 KSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLEBwYXJhbWV0ZXJzKSkpKQorICAgIChz ZXJ2ZXItbG9nIChmb3JtYXQgIiVzIGNyZWF0ZWQiIGZyYW1lKSBwcm9jKQorICAgIChzZWxlY3Qt ZnJhbWUgZnJhbWUpCisgICAgKHByb2Nlc3MtcHV0IHByb2MgJ2ZyYW1lIGZyYW1lKQorICAgIChw cm9jZXNzLXB1dCBwcm9jICd0ZXJtaW5hbCAoZnJhbWUtdGVybWluYWwgZnJhbWUpKQorICAgIChw cm9jZXNzLXB1dCBwcm9jICduby1kZWxldGUtdGVybWluYWwgdCkKKyAgICBmcmFtZSkpCisKIChk ZWZ1biBzZXJ2ZXItZ290by10b3BsZXZlbCAocHJvYykKICAgKGNvbmRpdGlvbi1jYXNlIG5pbAog ICAgICAgOzsgSWYgd2UncmUgcnVubmluZyBpc2VhcmNoLCB3ZSBtdXN0IGFib3J0IGl0IHRvIGFs bG93IEVtYWNzIHRvCkBAIC0xMjY0LDYgKzEyNzksMTQgQEAgc2VydmVyLXByb2Nlc3MtZmlsdGVy CiAJCQkJCSAgIHRlcm1pbmFsLWZyYW1lKSkpKSkKIAkJICAgIChzZXRxIHR0eS1uYW1lIG5pbCB0 dHktdHlwZSBuaWwpCiAJCSAgICAoaWYgZGlzcGxheSAoc2VydmVyLXNlbGVjdC1kaXNwbGF5IGRp c3BsYXkpKSkKKyAgICAgICAgICAgICAgICAgICAoKGVxdWFsIHR0eS10eXBlICJkdW1iIikKKyAg ICAgICAgICAgICAgICAgICAgOzsgRW1hY3NjbGllbnQgaXMgbGlrZWx5IHJ1bm5pbmcgaW5zaWRl IHNvbWV0aGluZworICAgICAgICAgICAgICAgICAgICA7OyBsaWtlIGFuIEVtYWNzIHNoZWxsIGJ1 ZmZlci4gV2UgY2FuJ3QgcnVuIGFuCisgICAgICAgICAgICAgICAgICAgIDs7IEVtYWNzIGZyYW1l IGluIGEgdHR5IGxpa2UgdGhpcywgc28gaW5zdGVhZCwgdXNlCisgICAgICAgICAgICAgICAgICAg IDs7IHdoaWNoZXZlciB0ZXJtaW5hbCBpcyBjdXJyZW50bHkKKyAgICAgICAgICAgICAgICAgICAg Ozsgc2VsZWN0ZWQuIChidWcjMjU1NDcpCisgICAgICAgICAgICAgICAgICAgIChzZXJ2ZXItY3Jl YXRlLWR1bWItdGVybWluYWwtZnJhbWUgbm93YWl0IHByb2MKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmcmFtZS1wYXJhbWV0ZXJzKSkKIAkJ ICAgKChvciAoYW5kIChlcSBzeXN0ZW0tdHlwZSAnd2luZG93cy1udCkKIAkJCSAgICAgKGRhZW1v bnApCiAJCQkgICAgIChzZXRxIGRpc3BsYXkgInczMiIpKQo= --0000000000005588ba05b3b5908e-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 10 22:14:33 2020 Received: (at 25547) by debbugs.gnu.org; 11 Nov 2020 03:14:33 +0000 Received: from localhost ([127.0.0.1]:39674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcgaf-0000Rs-Gr for submit@debbugs.gnu.org; Tue, 10 Nov 2020 22:14:33 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:63716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcgad-0000Rd-Ay for 25547@debbugs.gnu.org; Tue, 10 Nov 2020 22:14:31 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C496F4414EE; Tue, 10 Nov 2020 22:14:25 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AC5704414CC; Tue, 10 Nov 2020 22:14:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1605064464; bh=uPT/n65HhHA3c3JdPu6hsYLUUGxW8NYv2Y9i2rbd7nE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Q63toH87ICJ3zquz3SafTRoHCoDwnqoe3QqX6aq1uIehJtptCS6einXs5wFahGEaj V5+lhc/vjrrMKW9SfCddGM7hnq47eDxfdRfvcr4NMT5FQFsf+NTx2fqVoPf76s5qfi ibFKyJhNd3YQGa+HiJsLPSPvI8Uczi7TONsMvPQb1rYMh062ylJ5iQxqhFGMbtn2sr UKFuy9Z3PhUSKN8phScCimceO8sWgLPGPJkvTMgczocn6nEUHkJsY8ICbv/QXdkoc8 Lw2DkKLprh9yA0VH86I/WPLc/hGk4BB6ZjCI8OIbqNUY2MFhSkRMuQn7NtJQAhlY3o vvHV42xUQ7wGQ== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 733CF12010F; Tue, 10 Nov 2020 22:14:24 -0500 (EST) From: Stefan Monnier To: Eliza Velasquez Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: <834km39h7t.fsf@gnu.org> <83v9eh7fuu.fsf@gnu.org> Date: Tue, 10 Nov 2020 22:14:23 -0500 In-Reply-To: (Eliza Velasquez's message of "Mon, 9 Nov 2020 16:14:24 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.074 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25547 Cc: 25547@debbugs.gnu.org, Eli Zaretskii , Alex Hutcheson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > I attached the patch with the new name/comments. Thanks, pushed, Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 10 23:28:38 2020 Received: (at control) by debbugs.gnu.org; 11 Nov 2020 04:28:38 +0000 Received: from localhost ([127.0.0.1]:39756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kchkL-0002If-Q8 for submit@debbugs.gnu.org; Tue, 10 Nov 2020 23:28:38 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kchkJ-0002IC-FR for control@debbugs.gnu.org; Tue, 10 Nov 2020 23:28:36 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 00C261002FA for ; Tue, 10 Nov 2020 23:28:30 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EA20810023D for ; Tue, 10 Nov 2020 23:28:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1605068908; bh=P0YfO3sktUuNy368i5ftt+b8kHWZ1r6+Y90B8VC98Yo=; h=From:To:Subject:References:Date:In-Reply-To:From; b=pmq8mCOfBGVOdTB3tdUxOvNsMc0Ih0LRPf/hoJC0yr5rd58wQ+ky9CpOszm0KJWOq iutqXbCEPNwQ/w9GaiK0TTZLZsgvaSpKBxvy8gn9hMlUD6cJl8K4x64q2D5AFRXYop hQZ4ve6v6yvh6P0ahufQwBSgSOa6NBeyoMQ21zHh+G0buIQh+IMriXZCn6CJcFYcUb 7mpArt9uxYYXcP98q67EIbUNdiBZ7zxOabYcF7oIQgbefnry64oUeG1i7VkGBLcIO2 APwj7NfeQYmKx/JEwAJTJGtjyn83HM+Hku/VOWybh/74+rJX/k/8p5bDOgl8vAU4G/ lRfQscCNpcBZQ== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CAD6E1201E6 for ; Tue, 10 Nov 2020 23:28:28 -0500 (EST) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Message-ID: References: <834km39h7t.fsf@gnu.org> <83v9eh7fuu.fsf@gnu.org> Date: Tue, 10 Nov 2020 23:28:28 -0500 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Nov 2020 22:14:23 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.058 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) close 25547 From unknown Thu Aug 14 21:43:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Dec 2020 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator