GNU bug report logs -
#17769
24.4.50; [PATCH] rcirc-omit-mode: `recenter'ing a window that does not display current-buffer.
Previous Next
Reported by: Daimrod <daimrod <at> gmail.com>
Date: Fri, 13 Jun 2014 07:00:02 UTC
Severity: normal
Tags: patch
Merged with 17778
Found in version 24.4.50
Done: Leo Liu <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Daimrod <daimrod <at> gmail.com>
>> Cc: 17769 <at> debbugs.gnu.org
>> Date: Fri, 13 Jun 2014 18:14:09 +0900
>>
>> > This doesn't sound like the right fix to me. Instead, the code should
>> > momentarily switch to the right window, and call recenter there.
>> > That's surely what the author of this code intended, AFAIU.
>>
>> But the buffer might not be displayed in any window.
>
> Then with-current-buffer is your friend, I think.
IIUC the goal isn't to recenter the window-buffer but the
current-buffer, but that cannot be done because it is not displayed on
any windows.
So, I with-current-buffer won't help, I would need to use
with-current-buffer-window.
Or did I misundertand you?
--
Daimrod/Greg
This bug report was last modified 11 years and 34 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.