From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: fix for bug#29935 copyright-update inserts year at random places Date: Mon, 08 Jan 2018 19:18:09 +0100 Message-ID: <5A53B5E1.5080608@gmx.at> 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> <5A524604.6070909@gmx.at> <5A533F7D.4090505@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1515435501 2143 195.159.176.226 (8 Jan 2018 18:18:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2018 18:18:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 19:18:17 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 1eYbzy-0008DT-M9 for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 19:18:14 +0100 Original-Received: from localhost ([::1]:49698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYc1s-0007uH-Vv for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 13:20:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYc0A-0007MR-B1 for emacs-devel@gnu.org; Mon, 08 Jan 2018 13:18:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYc07-0003TQ-44 for emacs-devel@gnu.org; Mon, 08 Jan 2018 13:18:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:56277) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYc06-0003SD-Nj for emacs-devel@gnu.org; Mon, 08 Jan 2018 13:18:22 -0500 Original-Received: from [192.168.1.100] ([46.125.249.13]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MFctN-1edmOb2fRN-00Ebby; Mon, 08 Jan 2018 19:18:16 +0100 In-Reply-To: X-Provags-ID: V03:K0:K61ITeeGeiyR0k8fJYFY85jiuwqlRDFIJn73FphgsqtBAcWVZQ9 q8wenlmmVWHCKoYgGqmIJLP6tuLJ9q8nDrqavbOs1lMkawwlRSBbbok1B5qq138AgsszTD6 qkIY0SPp9NGJ7E/CrSE9YteumRZ3L7f+DfIJ/KXd57zN2ZHt+P4hutGMn5k2imvZxZBNOTX /yJkeBd0FVC2THFUuembQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:z3Op+Doi36w=:oxEkcY52wkMbE7xxE2LJn9 r+SCrtnQ2RD0/FvkP5sn1ee+luCABJXNrJ93aISSKzD3EYPty94MlJ+NsL6lhmUon601vVjgl qEdiwhgfEnVKBjsus3TOnMuD+SWbd+pxkO+GNQXPuIFw6SoLfw36GPao7Jq6fY44pye8CiWpt Zx5eaJCh0QtZDWMpPUx4d4WSDVPYNYoy08pz3C2pRynvM2H/d7J8W1vovy1qRjAvgPkM6IeiQ Itaq9lgEvM282YzT+DexIIFeJXX/yT9OR6JVIBnpIj92VQ2FkD7HQTkik7a1GFX0Y0O6DOEAN 0Wb+8Hmbab+++Nb+VM1FyNbk9D40+GdKzp5jt3KNBigO1Xc01Q8jkv5FGh50TJd8rTVrMT8xe m9jcCZeVRT5phs0wd3fWNovIGVyz7/Z2/kfUyxKufyhVE4rquwM4toOfbaKQhpGPyAQAyMpHR Kc3/KUKVppeU37UYE/cFGYMd/hNGSHHcHmKix+Dbmt06QIrJuP/1wqMDWSQ9/VCHGCJ29lgWi oFl2ftAZ8WVzGkIzyNi8/J1GEJaLW0V5tRJd24YR/sI2MeV8tB93A8a9dnZtdP/elyUuvcrWl 2Ph/jYWHBqwpM7RmbYoyYT/UzOFSiIZLbuiPAznv2LjbAB0xauPpHjjzUAHPyRj2VEOQNa17J 0szHWJRtwLwtd8d42bRECUBLAFzJnfPz1SppR6tRhmldaIo8Xo9H4hJZYHe630y2txr6B/gTl ZjSFIKZda+kw4qy4g/4kdrwKkt+Z2l2fkPL0y+MtpBGnMsFaz9tQE6Uo/7qvZSxx9yKSvEKu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 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:221712 Archived-At: > If `x` is just a window, how does quit-restore-window know that we want > to hide BUF (and not some other buffer that happens to be displayed > in the window once we get to quit-restore-window)? > > If `x` is just a window, how does quit-restore-window know whether BUF was > already displayed in that window before temporary-undisplay-buffer was > called (in order to decide whether to change the window's buffer or not)? `quit-restore-window' remembers what buffer the window it quits displayed before calling `with-temp-buffer-window' and also the respective `window-start' and `window-point' positions, sometimes also the window's size. >> So please tell what's missing in `with-temp-buffer-window'. > > It forces scoping. Where and how? IIUC your (let ((x (temporary-display-buffer BUF))) + (temporary-undisplay-buffer x) would force scoping (and is therefore IMHO not useful for our purpose) but `quit-restore-window' doesn't rely on any scoping. > IOW it can't be used when the > temporary-undisplay-buffer part needs to be done at some arbitrary later > time (e.g. after the user has run a bunch of commands). Please show me an example. `with-temp-buffer-window' was explicitly designed to handle what you describe here so if it doesn't for you it clearly failed to achieve its aim. martin