emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] emacs-26 f274cbd: Avoid reordering of output in 'shr-i


From: Stefan Monnier
Subject: Re: [Emacs-diffs] emacs-26 f274cbd: Avoid reordering of output in 'shr-insert-document'
Date: Sun, 17 Dec 2017 22:09:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> If we do that, then why use save-window-excursion in the first place?
>> That's what it's supposed to preserve (among other things), right?
> Not really.  The Elisp manual says about `save-window-excursion' that

I think what Eli is getting at is that instead of save-window-excursion
we could just do add a `set-window-buffer` before `set-window-point`.

I think it would make a lot of sense, actually, since
save-window-excursion saves the whole window-config (i.e. data about
all windows in the current frame), whereas we're only going to touch the
selected window.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]