From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Sun, 30 Jun 2013 11:27:43 -0400 Message-ID: <85ip0vsjo0.fsf@member.fsf.org> References: <51C5AA68.4000204@alice.it> <51C9C790.3020407@gmx.at> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@alice.it> <51CC4CC1.3030202@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CCA7DC.8060605@gmx.at> <83fvw2g44j.fsf@gnu.org> <857ghdti3i.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372606098 29609 80.91.229.3 (30 Jun 2013 15:28:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 15:28:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 30 17:28:18 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 1UtJY2-0005iA-5B for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 17:28:18 +0200 Original-Received: from localhost ([::1]:40384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtJY1-00054s-PZ for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 11:28:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtJXz-00054j-6Z for emacs-devel@gnu.org; Sun, 30 Jun 2013 11:28:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtJXv-0005Oo-Mb for emacs-devel@gnu.org; Sun, 30 Jun 2013 11:28:15 -0400 Original-Received: from vms173007pub.verizon.net ([206.46.173.7]:44606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtJXv-0005Oe-Hd for emacs-devel@gnu.org; Sun, 30 Jun 2013 11:28:11 -0400 Original-Received: from TAKVER ([unknown] [71.241.247.125]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MP700GP2PM7F060@vms173007.mailsrvcs.net> for emacs-devel@gnu.org; Sun, 30 Jun 2013 10:27:49 -0500 (CDT) In-reply-to: (Juanma Barranquero's message of "Sun, 30 Jun 2013 00:36:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.46.173.7 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:161353 Archived-At: Juanma Barranquero writes: > On Sat, Jun 29, 2013 at 10:51 AM, Stephen Leake > wrote: > >> Prompt the user. > > Not so sure. If you invoke desktop-read interactively, it could make > sense (or we could add an argument, so C-u M-x desktop-read selects > the alternate behavior). But in the most common case, which is (likely > to be) running desktop-read from after-init-hook (which is > automatically done now if you enable desktop-mode), I don't think > asking the user is the way to go. Far from it. Can you elaborate? what is wrong with prompting the user from after-init-hook? The doc for after-init-hook says it is run "after initializing the Emacs session". It does not mention displays, so I assume the default display is available for prompting the user. -- -- Stephe