[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point t
bug#27243: closed (Re: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer)
Mon, 17 Jul 2017 11:28:59 +0200
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
On Sat, 15 Jul 2017 15:59:07 +0200 martin rudalics <address@hidden> wrote:
>> Wow, that's disastrous! And frightening: I use the "(set-window-buffer
>> (selected-window) (set-buffer ...))" idiom a lot in todo-mode.el; I just
>> checked two commands using `C-h f' followed by the command invocation:
>> one worked fine but the other caused the same disaster. So now I have
>> to check all uses :(. Is there a general guideline for when to use
>> set-window-buffer and when to use pop-to-buffer-same-window?
> Always try ‘pop-to-buffer-same-window’ or ‘display-buffer-same-window’
> first. If they fail, try to find out why. Maybe that can be fixed.
Thanks for the advice.