[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: |
martin rudalics |
Subject: |
bug#43645: 26.3; emacsclient -c does not open to correct window |
Date: |
Mon, 28 Sep 2020 17:02:13 +0200 |
>> diff --git a/lisp/server.el b/lisp/server.el
>> index 436a6ca0c7..f24f8d2b7c 100644
>> --- a/lisp/server.el
>> +++ b/lisp/server.el
>> @@ -1602,7 +1602,7 @@ server-switch-buffer
>> ;; OK, we know next-buffer is live, let's display and select it.
>> (if (functionp server-window)
>> (funcall server-window next-buffer)
>> - (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.
martin
- 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, Blue track, 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/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