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: Fri, 05 Jul 2013 17:02:30 +0200 Message-ID: <51D6E006.9070405@alice.it> References: <51C5AA68.4000204@alice.it> <83fvw2g44j.fsf@gnu.org> <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> 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 1373036568 5185 80.91.229.3 (5 Jul 2013 15:02:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 15:02:48 +0000 (UTC) Cc: martin rudalics , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 17:02:48 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 1Uv7X5-00070m-NT for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 17:02:47 +0200 Original-Received: from localhost ([::1]:39563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7X5-0002xL-CZ for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 11:02:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7X0-0002x3-2r for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:02:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv7Wx-0006bE-4M for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:02:42 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:53903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7Ww-0006b8-Pp for emacs-devel@gnu.org; Fri, 05 Jul 2013 11:02:39 -0400 Original-Received: from [192.168.1.100] (87.3.157.179) by smtp204.alice.it (8.6.060.15) (authenticated as angelo.graziosi@alice.it) id 51C49E420150C4D8; Fri, 5 Jul 2013 17:02:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 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:161592 Archived-At: Il 05/07/2013 16.55, Juanma Barranquero ha scritto: > On Fri, Jul 5, 2013 at 4:02 PM, Angelo Graziosi > wrote: > >> When I restart Emacs, it restore both buffers: >> ~/applications/foo.f90 (and this is OK) and an EMPTY >> ~/applications/foo.cpp!!! and foo.cpp is visited in Fundamental mode (notice >> the new directory for foo.cpp too..). > > This only happens if you set desktop-restore-frames = t, which is > currently experimental. Obviously I have that > >> I think this is the right thing to >> do: files that do not exist any more (or are moved elsewhere) should not be >> restored at all. > > It's not a file, it's a buffer. Note that buffer-file-name is nil. OK, it is a buffer, but restoring what that doesn't exist any more is wrong, in my opinion > That's a consequence of the way window-state-put currently works. Martin? Yes, Martin.. please fix that... Ciao, Angelo.