From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 15:36:03 -0400 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372448174 30750 80.91.229.3 (28 Jun 2013 19:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 19:36:14 +0000 (UTC) Cc: Angelo Graziosi , Emacs developers , martin rudalics , Eli Zaretskii , Stephen Berman , Jambunathan K To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 21:36:15 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 1UseSs-0006yl-R4 for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 21:36:14 +0200 Original-Received: from localhost ([::1]:58182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UseSs-0002DT-EO for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 15:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UseSo-0002Bf-Qh for emacs-devel@gnu.org; Fri, 28 Jun 2013 15:36:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UseSk-0000M6-Ou for emacs-devel@gnu.org; Fri, 28 Jun 2013 15:36:10 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UseSj-0000Kk-3w; Fri, 28 Jun 2013 15:36:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCppA/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOkeoFegxOBSiQ X-IPAS-Result: Av4EABK/CFFMCppA/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOkeoFegxOBSiQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="17405277" Original-Received: from 76-10-154-64.dsl.teksavvy.com (HELO pastel.home) ([76.10.154.64]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Jun 2013 15:35:58 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 75EBC67951; Fri, 28 Jun 2013 15:36:03 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Fri, 28 Jun 2013 19:51:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:161251 Archived-At: >> And more generally, it's probably better to avoid opening frames on >> other displays/terminals than "the current one". > Why? If the user had them open in other displays, and then saved the > session, why/how would be better not to restore them as they were? It all depends on the use-case, but my own use cases, frames on other displays/terminals are always "temporary frames" I created via emacsclient so as to access remotely the state of a running Emacs. >> OTOH it might make sense to open the same windows&frames even if "the >> current display" is different from the one last time. > Yes. But how to choose what to do? Both behaviors are reasonable. I suggest you start with "only use the current display" (at least for the non-daemon mode), since it's a kind of halfway step between the previous behavior (which did not save&restore the window&frame state) and the "restore the state on all the displays". Stefan