emacs-devel
[Top][All Lists]
Advanced

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

Re: fix for bug#29935 copyright-update inserts year at random places


From: Stefan Monnier
Subject: Re: fix for bug#29935 copyright-update inserts year at random places
Date: Thu, 04 Jan 2018 13:23:33 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> This said, I actually do like that the buffer is shown in its
>> own frame.  
> So using pop-to-buffer-same-window, rather than pop-to-buffer, is ok for you.

Yes.

>> It would be nice to re-iconify the frame afterwards, tho.
> Apparently completion (or maybe read-from-minibuffer) does re-iconify a
> popped up frame (that happened once in my experiments). I looked thru
> the C code for read-from-minibuffer, and it has comments that talk about
> preserving the frame state, but I did not see where it minimizes the
> frame on return. So I don't know how to do that from elisp in
> copyright-update-year.

I think rather than save-window-excursion, it uses a kind of
"un-pop-to-buffer".  Can't remember if it's bury-buffer or what, tho.


        Stefan




reply via email to

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