From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: fix for bug#29935 copyright-update inserts year at random places Date: Thu, 04 Jan 2018 13:23:33 -0500 Message-ID: References: <868tdh5fag.fsf@stephe-leake.org> <837et0ckou.fsf@gnu.org> <86shbm4ks9.fsf@stephe-leake.org> <86k1wy48ch.fsf@stephe-leake.org> <861sj54wox.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515090130 31988 195.159.176.226 (4 Jan 2018 18:22:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2018 18:22:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 04 19:22:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXA9Q-0007qa-Ki for ged-emacs-devel@m.gmane.org; Thu, 04 Jan 2018 19:22:00 +0100 Original-Received: from localhost ([::1]:58597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXABP-0006zc-SV for ged-emacs-devel@m.gmane.org; Thu, 04 Jan 2018 13:24:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXABB-0006xV-B8 for emacs-devel@gnu.org; Thu, 04 Jan 2018 13:23:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXAB8-0000ds-7P for emacs-devel@gnu.org; Thu, 04 Jan 2018 13:23:49 -0500 Original-Received: from [195.159.176.226] (port=44320 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXAB7-0000cL-W0 for emacs-devel@gnu.org; Thu, 04 Jan 2018 13:23:46 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eXA93-0006Ts-60 for emacs-devel@gnu.org; Thu, 04 Jan 2018 19:21:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:UBqOIBhYS5TTiqFe7EIAPm3nJZ8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221599 Archived-At: >> 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