emacs-devel
[Top][All Lists]
Advanced

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

Re: master 0bd221b: Fix problem of having the wrong window selected afte


From: Lars Ingebrigtsen
Subject: Re: master 0bd221b: Fix problem of having the wrong window selected after saving foo.gpg
Date: Thu, 01 Oct 2020 01:46:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> So would a quit-buffer before killing the buffer have fixed the problem
>> here?
>
> I'm not sure, to be honest.
> I'd use a `save-current-buffer` to be on the safe side.

Well, quit-buffer doesn't exist, but bury-buffer did (and didn't help
much here).  Both it and quit-window has the problem that the buffer in
question may be killed at this point, and the user has just exited the
recursive-edit by other means, so using either entails some checking,
and doesn't really...  help that much?

So I just changed it to a save-window-excursion.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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