unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52590: 29.0.50; emacsclient --reuse-frame not working
@ 2021-12-17 21:44 Oliver Epper
  2021-12-19 11:29 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Epper @ 2021-12-17 21:44 UTC (permalink / raw)
  To: 52590

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Hi all and thanks for your great work.

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.

greetings,
Oliver

[-- Attachment #2: Type: text/html, Size: 403 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52590: 29.0.50; emacsclient --reuse-frame not working
  2021-12-17 21:44 bug#52590: 29.0.50; emacsclient --reuse-frame not working Oliver Epper
@ 2021-12-19 11:29 ` Lars Ingebrigtsen
  2021-12-19 14:41   ` Oliver Epper
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-19 11:29 UTC (permalink / raw)
  To: Oliver Epper; +Cc: 52590

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 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52590: 29.0.50; emacsclient --reuse-frame not working
  2021-12-19 11:29 ` Lars Ingebrigtsen
@ 2021-12-19 14:41   ` Oliver Epper
  2021-12-20  9:37     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Epper @ 2021-12-19 14:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 52590

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

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 <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 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
>

[-- Attachment #2: Type: text/html, Size: 2301 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#52590: 29.0.50; emacsclient --reuse-frame not working
  2021-12-19 14:41   ` Oliver Epper
@ 2021-12-20  9:37     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-20  9:37 UTC (permalink / raw)
  To: Oliver Epper; +Cc: 52590, Alan Third

Oliver Epper <oliver.epper@gmail.com> writes:

> ~/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)

Thanks; I can reproduce this problem in Macos, but not on Debian.
Perhaps Alan has an idea what this could be about; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-20  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-17 21:44 bug#52590: 29.0.50; emacsclient --reuse-frame not working Oliver Epper
2021-12-19 11:29 ` Lars Ingebrigtsen
2021-12-19 14:41   ` Oliver Epper
2021-12-20  9:37     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).