From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 5 Jul 2013 16:55:19 +0200 Message-ID: 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 X-Trace: ger.gmane.org 1373036165 1325 80.91.229.3 (5 Jul 2013 14:56:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 14:56:05 +0000 (UTC) Cc: martin rudalics , Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 16:56:06 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 1Uv7Qb-0000c1-TP for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 16:56:06 +0200 Original-Received: from localhost ([::1]:38079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7Qb-0000Nd-KQ for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 10:56:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7QY-0000Mm-4g for emacs-devel@gnu.org; Fri, 05 Jul 2013 10:56:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv7QX-000483-9Q for emacs-devel@gnu.org; Fri, 05 Jul 2013 10:56:02 -0400 Original-Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:42401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7QX-00047q-2y for emacs-devel@gnu.org; Fri, 05 Jul 2013 10:56:01 -0400 Original-Received: by mail-ee0-f42.google.com with SMTP id c4so1421741eek.15 for ; Fri, 05 Jul 2013 07:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=P9EW7pVbyQRrJTXB8bjZRpWBr3qop9xNHCIKNfWYFlM=; b=uuwymdhF8jNm8oZsXAE4Wm3EwwyXJbWUzwpfgtP999N0jLzS+IcMkhX/TUdA1LO8DD wU8VgY2YV4BpZpLJHkICSjdUpb97+38UWlsKrdRxh2uBcjIA8vs6fsWOCU+3ba23RbM8 rO8l142f34RklFzvmJnGK2B7zhhGjI9wAPeihotE4/xyCgH2LWQSdahW1hT28pfAeNVX +3I3najWcPyVjGVCReBcQ0UfHpg2zM4109NqCGceYDI1bsxXR0xPQ2jrEY5nVuNia400 eWAofsh++YGr6BU71exPJWzm6VYSQo/CaFOfishJNfFkqmXbTIpJRfJ+9RHeyY+kCuZU ++jQ== X-Received: by 10.14.213.135 with SMTP id a7mr12384156eep.152.1373036159565; Fri, 05 Jul 2013 07:55:59 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Fri, 5 Jul 2013 07:55:19 -0700 (PDT) In-Reply-To: <51D6D1E1.10902@alice.it> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22a 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:161591 Archived-At: 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. > 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. That's a consequence of the way window-state-put currently works. Martin? J