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: Manual suggestions for quit-restore documentation Date: Sun, 05 Mar 2017 11:09:38 +0100 Message-ID: <58BBE3E2.7020302@gmx.at> References: <87varoh5ka.fsf@ericabrahamsen.net> <9507c432-6677-4f76-a7c4-b5958f126106@default> <87r32cgwz1.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488708647 29386 195.159.176.226 (5 Mar 2017 10:10:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Mar 2017 10:10:47 +0000 (UTC) To: Eric Abrahamsen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 05 11:10:42 2017 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 1ckT7h-0007CP-Dw for ged-emacs-devel@m.gmane.org; Sun, 05 Mar 2017 11:10:41 +0100 Original-Received: from localhost ([::1]:38216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckT7n-00069g-Ef for ged-emacs-devel@m.gmane.org; Sun, 05 Mar 2017 05:10:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckT6y-00068g-Bi for emacs-devel@gnu.org; Sun, 05 Mar 2017 05:09:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckT6v-0006FS-7H for emacs-devel@gnu.org; Sun, 05 Mar 2017 05:09:56 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53177) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckT6u-0006FF-Ru for emacs-devel@gnu.org; Sun, 05 Mar 2017 05:09:53 -0500 Original-Received: from [192.168.1.101] ([213.162.68.21]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MPE7E-1cg5OZ3Avo-004RTF; Sun, 05 Mar 2017 11:09:43 +0100 In-Reply-To: <87r32cgwz1.fsf@ericabrahamsen.net> X-Provags-ID: V03:K0:aWvQi1hRzpM1GVo2s1Umdo/MrLmXk4cEnWudLSOEo18klTiv4pM Q0f3lbjdeLPIoCQ1ag3/l9KtOb0Loq8eSyPHDPRp5JGAPlI1syrAGlnWd5EyAI1J0VpvK0m K72Yct1a9HR+nCc+WikWL0UdZenzAxsSE/RuPm2hI1HELMBSi5+f+wDhMxX7/+WxpVv8a0V BDpIW1E71p1NuShUNbG9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:1yaOA7Z0wOQ=:Wb1L6rAWdgDRj8fTBBPAhE lBHFmYaz3CrXFOgG2uTyCDbG7/z0xDLERPmwpNP+klnDPEZAr648qdg2p7osuQfgIlEXS5Pbj new7qGg49+mNTnAdHOqDWhXkRaD8oKE4uCYYbHVXe7TMJjTUiSC8o9roqA9TWSXCHtRfLsyjp SC9HcHx7oCuuizhvZVDBCEg0z5MMZPafnWkNbtOQIK2YDnK5/egN1+PHsZsTcWLLMrZkaHtBJ 0Z0K9e+JLEuJY+uAvJ77hweCmZ/rDSSiCrGmPBtTBrFjYwhQxEhhkMZP/E8p7Vo+2mw0qR0zE Uee6aVbPe9xQho1AJ7Dr1SQtB7Me4mBG83k32cu6NYDqQSks6CMBVXkv7UqJGlUMeu0YIIYRs zGX7A41/g5eBKKi/1n34Afgg0MJuE30XHaHXBNjqCYG6nOxUt9sVOLnYYN/IplUfdpeVLRhvT FfnYshh+vOYRUxkgZHVYznL918IuDFufMnxlMjtCyIC0Soj1vlC2VZrSMANS3gxR6lCv8aaDQ O9tP8GKwqh3bJ06DdLJH5fucfejPdZ6hidW508Mi0+SgZsCj0G9ptTgMoXwR4SKye2+0LEJvV N8QT2UGPcACVBUt8LXWeQpxdszwiorSHPirVPzDDso+sEzu3UAbf9rHpFYlurZvke0+/isgog CQ/PQHPDdmcu0pWGn84DOEtE1+ztq/SR5sOA//ezhkqoRJT8VvuW+AILah3ccHLpLx58Muwb7 zgdosrCyMQqifphvLaZmVUQkTSu6eGxuecLadIrtTjiKKRrSfv5br4iPuKAxt6fOAC0lS65E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 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:212763 Archived-At: > If Marcin ends up patching `display-buffer-record-window' to un-set > buffer history when appropriate, I think it would also be worth > mentioning that function in the docs, as the go-to function for settin= g > the quit-restore parameter. I'm afraid it won't work as I already noticed earlier: If we just use (set-window-prev-buffers window nil) (set-window-buffer window buffer) then with =E2=80=98display-buffer-pop-up-window=E2=80=99 the =E2=80=98set= -window-buffer=E2=80=99 will record the buffer shown in that window due to =E2=80=98split-window=E2=80= =99 as the previous buffer and quitting that window will not delete it but try to show the buffer put there by =E2=80=98split-window=E2=80=99 instead. So the canonical order to do things is (display-buffer-record-window type window buffer) (set-window-buffer window buffer) (set-window-prev-buffers window nil) So when you document this, then please mention that if someone wants to use =E2=80=98display-buffer-record-window=E2=80=99 in her code, then in t= he `window' case she manually has to clear the list of previous buffers as well (it's not strictly necessary in the `frame' case but it won't harm either). martin