From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Thu, 27 Jun 2013 16:31:29 +0200 Message-ID: <51CC4CC1.3030202@alice.it> References: <51C5AA68.4000204@alice.it> <51C6CF57.9030203@alice.it> <51C87C3E.90904@gmx.at> <83ehbrju1d.fsf@gnu.org> <87r4frcq9v.fsf@rosalinde.fritz.box> <87vc5345t3.fsf@gmail.com> <51C8B2C8.4000803@gmx.at> <51C93CDB.2020301@gmx.at> <51C9C790.3020407@gmx.at> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@alice.it> 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 1372343517 27431 80.91.229.3 (27 Jun 2013 14:31:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 14:31:57 +0000 (UTC) Cc: Emacs developers , martin rudalics , Stefan Monnier , Eli Zaretskii , Stephen Berman , Jambunathan K To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 27 16:31:57 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 1UsDEp-0004Yd-Ao for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2013 16:31:55 +0200 Original-Received: from localhost ([::1]:49113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDEo-00043S-V3 for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2013 10:31:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDEe-0003tc-IZ for emacs-devel@gnu.org; Thu, 27 Jun 2013 10:31:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsDEb-0007lU-Ix for emacs-devel@gnu.org; Thu, 27 Jun 2013 10:31:44 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:55617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDEX-0007ko-Tb; Thu, 27 Jun 2013 10:31:38 -0400 Original-Received: from [192.168.1.101] (79.2.109.211) by smtp204.alice.it (8.6.060.15) (authenticated as angelo.graziosi@alice.it) id 51C49E420080A80B; Thu, 27 Jun 2013 16:31:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 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:161139 Archived-At: Il 27/06/2013 16.05, Juanma Barranquero ha scritto: > On Thu, Jun 27, 2013 at 3:29 PM, Angelo Graziosi > wrote: > >> I have just bootstrapped Emacs r.113205 and it *does not* restore >> anything... :-( only a single frame and a single window... > > etc/NEWS says: > > *** `desktop-save-windows' enables saving and restoring the window/frame > configuration. > > so try setting (or customizing) it to t. > >> So what am I missing? In .emacs.d/init.el I have desktop-save true.. what >> else I need? > > I'd recommend editing the desktop save file and removing by hand the > old window-save variable. In fact it shouldn't cause a problem, > because I renamed it, but the old var is now just cruft. I don't understand here.. In my /~/.emacs.d/init.el I have ;; Instead to save in ~/.emacs.desktop (setq desktop-base-file-name "~/.emacs.d/desktop") ;; Instead to save in ~/.emacs.desktop.lock (setq desktop-base-lock-name "~/.emacs.d/desktop.lock") ;; For the moment in Emacs there is an 'illogic' ;; it saves, on desktop file, the flyspell-mode ;; BUT NOT the dictionary with which the buffer ;; is spelled. We have added 'ispell-local-dictionary', ;; as suggested by emacs-devel list, hoping the things ;; is reguralized in the future. (setq desktop-locals-to-save (cons 'ispell-local-dictionary desktop-locals-to-save)) ;; Save desktop (desktop-save-mode t) and now I have added (setq desktop-save-windows t) Which "desktop save file" are you talking about? Perhaps "~/.emacs.d/desktop"? I have tried $ grep window .emacs.d/desktop but found anything called "window-save"... So I am a little confused. Any way, adding "setq desktop-save-windows t" in my init file seem to work. I notice only that if I close Emacs (the session) with the frame full maximized (the button of the system window activated), the next time I restart Emacs (the next session), the frame has almost the same size of previous session (just the height one line sorter) but the maximized button not active. If I have read correctly this, at the moment, is to be expected. Many thanks for having added this to Emacs! Ciao, Angelo.