[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43645: 26.3; emacsclient -c does not open to correct window
From: |
Lars Ingebrigtsen |
Subject: |
bug#43645: 26.3; emacsclient -c does not open to correct window |
Date: |
Tue, 29 Sep 2020 16:09:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
>>> - (let ((win (get-buffer-window next-buffer 0)))
>>> + (let ((win (get-buffer-window next-buffer)))
>>> (if (and win (not server-window))
>>> ;; The buffer is already displayed: just reuse the
>>> ;; window. If FILEPOS is non-nil, use it to replace the
>>>
>>
>> Martin, any comments on this?
>
> Wouldn't the "0" make sense when invoking emacsclient without an option
> like -c or -t? IIUC, in that case we should try to reuse some existing
> visible or iconified window. But ... I never use emacsclient.
Hm, yes... The behavioural change would be if you already have two
frames open, with the buffer showing in a window on frame A, but frame B
currently has focus, then "emacsclient test.txt" would pop up that
buffer in frame B, too.
So the 0 should be there in the "emacsclient test.txt" case, but not in
the "emacsclient -c test.txt" (and -t) cases. I'll see if I can come up
with a fix...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#43645: 26.3; emacsclient -c does not open to correct window, (continued)
- bug#43645: 26.3; emacsclient -c does not open to correct window, Lars Ingebrigtsen, 2020/09/27
- bug#43645: 26.3; emacsclient -c does not open to correct window, Eli Zaretskii, 2020/09/27
- bug#43645: 26.3; emacsclient -c does not open to correct window, Lars Ingebrigtsen, 2020/09/27
- bug#43645: 26.3; emacsclient -c does not open to correct window, Eli Zaretskii, 2020/09/27
- bug#43645: 26.3; emacsclient -c does not open to correct window, Lars Ingebrigtsen, 2020/09/27
- bug#43645: 26.3; emacsclient -c does not open to correct window, Eli Zaretskii, 2020/09/27
bug#43645: 26.3; emacsclient -c does not open to correct window, Lars Ingebrigtsen, 2020/09/28