From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Oliver Epper Newsgroups: gmane.emacs.bugs Subject: bug#52590: 29.0.50; emacsclient --reuse-frame not working Date: Sun, 19 Dec 2021 15:41:31 +0100 Message-ID: References: <87h7b4x26u.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000042f0af05d380c5a0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35478"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52590@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 19 17:56:26 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1myzU1-00091H-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 17:56:25 +0100 Original-Received: from localhost ([::1]:39430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myzU0-0007sy-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 11:56:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myzSh-0007re-0T for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 11:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myzSg-0003sp-OP for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 11:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myzSg-0004Fj-O3 for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 11:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oliver Epper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Dec 2021 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52590-submit@debbugs.gnu.org id=B52590.163993287216287 (code B ref 52590); Sun, 19 Dec 2021 16:55:02 +0000 Original-Received: (at 52590) by debbugs.gnu.org; 19 Dec 2021 16:54:32 +0000 Original-Received: from localhost ([127.0.0.1]:47864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myzSB-0004Ed-OS for submit@debbugs.gnu.org; Sun, 19 Dec 2021 11:54:32 -0500 Original-Received: from mail-oi1-f174.google.com ([209.85.167.174]:33495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxNk-0008HY-2Q for 52590@debbugs.gnu.org; Sun, 19 Dec 2021 09:41:49 -0500 Original-Received: by mail-oi1-f174.google.com with SMTP id q25so11939427oiw.0 for <52590@debbugs.gnu.org>; Sun, 19 Dec 2021 06:41:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zTh4ibgEzJXJfty9nXEVdZaKKE7zCts0Bwm1AEu6mYs=; b=Rf3VIN9pc7U5ms2VA0GjNZYPDxfAYsElzwyBic1caDUeuff2b52SH63r2iPV3sS2Xg ZYQcQiGzT0eoU25lOK+f9yAOopbNoTmoxO0Sm7rb77JLl1gOc7VHpv0ahkJ6zoXs/0W4 aXd4Wk/Xi/VcmRLW9t8UOSUN2H0NU7QyyUgso51F53JPT79m/cWOjen3bCzVQGnhd7rQ 94f6NqmiiJs8IaN+7Kux2uODoEeh33nxW8bMyZ+UFWbI/VPllbz/Gfv8nNEADKwwrXsk 8zBN3a2igamiUzjIWvnwlnVQ8DKOdYW5i0VPl6mw5BWro43YGq7v1URZ72Ch2OvBdeEQ c6TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zTh4ibgEzJXJfty9nXEVdZaKKE7zCts0Bwm1AEu6mYs=; b=ijV3ezNzL/KJ9xxngxsPLM4tZ6rMly3ARO/vjyY52gXY9ypM6xZEwfzvvU78eL/Fle KySiicoB9A/1ERY1fWzBQ0Ym9kSYmG/sjsxSd8idrZEepVcsFPf8mjNVWN2di1W0BRVs sWdLwKBpjdKXsiNw0KqKas2aQWOV3buhQVAOa57jZi/yirupi+uH2dBSVmD3JvUzlgeK 32XkXPb6CBINMlBI/Zxz7+tagoHmvSVbTHrrT+Qx5uKcAb0AJorsF1dnMk9qmUH4Kgx/ lFn7QfYb9QHS8fekLnY4VJZIlUOmW0ybYJPNcklqGgUG5eDyjMQGejkDCupD0wAgSoul APuA== X-Gm-Message-State: AOAM530k5Xz6ILmNN3gGvAR0xUIEUTyGEqoaHxEQaM5/NgxWOiNGwAJI N6JstPNj2L0SCWzE9afIj6gBJkz5OYukPBaWJs0= X-Google-Smtp-Source: ABdhPJxU0KI0/2u37Aeyu2lIWMSwMbFU0R6ygH7A1OQkQXMJDQ05ke8uJDZaV41ugKbRg1nS3Rq1xNEtMzYb3eYizCU= X-Received: by 2002:a05:6808:1814:: with SMTP id bh20mr14335412oib.31.1639924902325; Sun, 19 Dec 2021 06:41:42 -0800 (PST) In-Reply-To: <87h7b4x26u.fsf@gnus.org> X-Mailman-Approved-At: Sun, 19 Dec 2021 11:54:30 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222715 Archived-At: --00000000000042f0af05d380c5a0 Content-Type: text/plain; charset="UTF-8" Hi Lars, sure: cd ~/Developer git clone https://git.savannah.gnu.org/git/emacs.git cd emacs make clean && make distclean PATH=/opt/homebrew/Cellar/texinfo/6.8/bin:$PATH ./configure --with-mailutils PATH=/opt/homebrew/Cellar/texinfo/6.8/bin:$PATH ./configure make PATH=/opt/homebrew/Cellar/texinfo/6.8/bin:$PATH ./configure make install ~/Developer/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs -Q M-x server-start ~/Developer/emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient -r ~/a.txt ~/Developer/emacs/nextstep/Emacs.app/Contents/MacOS/bin/emacsclient -r ~/b.txt (a this point I have 3 frames open) ls $TMPDIR/emacs`id -u` shows the socket named: server In emacsclient.c I see this in the switch-statement which might be related: case 'r': create_frame = true; reuse_frame = true; break; Thanks for your time Oliver Am So., 19. Dez. 2021 um 12:29 Uhr schrieb Lars Ingebrigtsen : > Oliver Epper writes: > > > When running an Emacs daemon and using the --reuse-frame option with > > emacsclient on macOS 12.1 (21C52) an existing frame never actually gets > reused. > > There will always be a new frame. > > Please let me know if I can provide more information to help fix this. > > Do you have a complete recipe to reproduce this problem, starting from > "emacs -Q"? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --00000000000042f0af05d380c5a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Lars,

sure:

cd ~/Developer
git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
make= clean && make distclean
PATH=3D/opt/homebrew/Cellar/texinfo/6.8= /bin:$PATH ./configure --with-mailutils
PATH=3D/opt/homebrew/Cellar/texi= nfo/6.8/bin:$PATH ./configure make
PATH=3D/opt/homebrew/Cellar/texinfo/6= .8/bin:$PATH ./configure make install
~/Developer/emacs/nextstep/Emacs.a= pp/Contents/MacOS/Emacs -Q
M-x server-start
~/Developer/emacs/nextste= p/Emacs.app/Contents/MacOS/bin/emacsclient -r ~/a.txt
~/Developer/emacs/= nextstep/Emacs.app/Contents/MacOS/bin/emacsclient -r ~/b.txt

<= div>(a this point I have 3 frames open)

ls $TMPDIR/emacs`id -u`
s= hows the socket named: server

In emacsclient.c I s= ee this in the switch-statement which might be related:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 case 'r':
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 create_frame =3D true;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= reuse_frame =3D true;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break;

Thanks for your time
Oliver

<= /div>

Am So., 19. Dez. 2021 um 12:29=C2=A0Uhr schrieb Lars Ingebrigtsen <= larsi@gnus.org>:
Oliver Epper <oliver.epper@gmail.com> writes:

> When running an Emacs daemon and using the --reuse-frame option with > emacsclient on macOS 12.1 (21C52) an existing frame never actually get= s reused.
> There will always be a new frame.
> Please let me know if I can provide more information to help fix this.=

Do you have a complete recipe to reproduce this problem, starting from
"emacs -Q"?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--00000000000042f0af05d380c5a0--