From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 05 Jul 2013 17:39:23 +0200 Message-ID: <51D6E8AB.8050203@gmx.at> References: <51C5AA68.4000204@alice.it> <51CE9B05.1090202@gmx.at> <51CFFBED.7090400@gmx.at> <51D02AB0.5070103@gmx.at> <51D5DE14.4090507@alice.it> <51D600D8.90801@alice.it> <51D67990.3090800@gmx.at> <51D6D1E1.10902@alice.it> <51D6E480.80407@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373038839 30923 80.91.229.3 (5 Jul 2013 15:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 15:40:39 +0000 (UTC) Cc: Emacs developers , Angelo Graziosi To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 17:40:40 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uv87j-00010W-Dl for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 17:40:39 +0200 Original-Received: from localhost ([::1]:51852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv87j-0001Ve-3S for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 11:40:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv87a-0001Mr-Fr for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:40:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv87R-0003F0-Be for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:40:30 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:51638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv87Q-0003Eh-VK for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:40:21 -0400 Original-Received: from [62.47.48.72] ([62.47.48.72]) by mail.gmx.com (mrgmx002) with ESMTPA (Nemesis) id 0MAgvb-1V5oXN2RaN-00BwJ7; Fri, 05 Jul 2013 17:39:26 +0200 In-Reply-To: X-Provags-ID: V03:K0:uilDPlYnyAuCt9GYeKXtwfEfwzJco5H6C52YktMT25gTGrIiWtw UzEMq0ubev/P33bcY+VQTArrlfxO8g0ScuwTOPXq/PIu04P2J9GYrZ/6mzKbYfK5tQBT4AC VCx8vnxdSCHaJQtho8VygUvzHuDudNiXB8y+Uc04CBqejM5vsw+247Sfbup2aOUktluwqQc fWSwY1k5Xf/KikO70Ro3g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161600 Archived-At: > That (restoring buffer lists) would be better, but still it is > possible that no previous buffer can be found, so creating *scratch* > or defaulting to something else will still be required. How about replacing (set-window-buffer window (get-buffer-create (car state))) by the (completely untested) (let ((buffer ((get-buffer (car state))))) (if buffer (set-window-buffer window buffer) (switch-to-prev-buffer window))) martin