From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: GUI vs TTY when saving & restoring framesets Date: Sun, 22 Jan 2017 22:15:14 +0100 Message-ID: References: <834m0r5aiu.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c193efe7906870546b563df X-Trace: blaine.gmane.org 1485119777 11295 195.159.176.226 (22 Jan 2017 21:16:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 21:16:17 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 22:16:08 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVPUX-0001f7-FJ for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 22:16:01 +0100 Original-Received: from localhost ([::1]:37736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVPUc-0004bM-L1 for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 16:16:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVPUW-0004bE-BY for emacs-devel@gnu.org; Sun, 22 Jan 2017 16:16:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVPUU-00049N-S4 for emacs-devel@gnu.org; Sun, 22 Jan 2017 16:16:00 -0500 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVPUS-00047U-Qn; Sun, 22 Jan 2017 16:15:56 -0500 Original-Received: by mail-wm0-x232.google.com with SMTP id r126so107024466wmr.0; Sun, 22 Jan 2017 13:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UklPtWC/nRM1rXqYwHOTLxEX7O6S9lI9PuglTaystDE=; b=E4OVIAMm8bp27EbxuCjcj9Km0bKuvN4kDVidkSsD0jHJdmI9MD/BWfinqcMkx9IXy6 H+Ykotu30J2c2By4Ov/NcPomgi6GPF84evhZ87BUEnXU7VoySwRbf1/ckUG6D6q/Lhvh rbQ79yBv7DJxgGVxXQMukb0VKhSTBnOh54Z9jC5dEI6I83tOGLOugJo1K96lLywW6Sr3 GzM8oiq1U1R7mVjKpe9oXDrw92VkEBSovh/d/WgNGJahbG3txh24pE96kXvVeHY9kRMZ 5j4b8PSotwAvEX4QC6v0G80+JE4x8BRh0cipjGbbRcaYTKneVt89+d9/oLc4X7SzBQYy i+Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UklPtWC/nRM1rXqYwHOTLxEX7O6S9lI9PuglTaystDE=; b=bqoUKzGqCt3Dc0LLN3h12N11l9iJI5ivxc/LtuKBjjPrQTjP1baSJxAfjWsmmJVmdS MhEx4hceLW4vlU0eAFtujX6acxuyCXuyVEm4YaIMaBwhc507SjtlCE2Z32xD+SNpCV60 9Rnbx48zEfYduBmYeGuOQbFtMGRSduK4G1gQVPbd7s6NIDxIWXV+5QsXMkWb50IRA205 NEPx3brRylW560IikMMpQoOc3oesPELB24yad4mt+wGSyq8STBDs5Y+IAvq4HP/z/Tve mbPkE8XjkLci00l8p6vWq/JQytOq1qGlOnZqh2utlLZC30zUZhP25FWkWlM2xGXN4OGn YA6g== X-Gm-Message-State: AIkVDXJpm/R6qqwZ6epFZlxn/k09EiHwm4ix4QuPD4Eu3w2lrENXrMX79dh86J4LBBC32LlQuzlaf3h2k24yew== X-Received: by 10.28.206.199 with SMTP id e190mr11724474wmg.98.1485119755452; Sun, 22 Jan 2017 13:15:55 -0800 (PST) Original-Received: by 10.194.172.129 with HTTP; Sun, 22 Jan 2017 13:15:14 -0800 (PST) In-Reply-To: <834m0r5aiu.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211559 Archived-At: --94eb2c193efe7906870546b563df Content-Type: text/plain; charset=UTF-8 On Sun, Jan 22, 2017 at 5:23 PM, Eli Zaretskii wrote: > If you can find a way of fixing 17693 without disabling frameset > restoration, feel free to do that on master. I'm going to take a hard look at this and every frameset bug I can find. I'll revert the frameset.el and desktop.el code (locally, not on the repository) to its previous state and will try to understand the issues and the possible fixes. (I'm not implying the current fixes aren't good, only that I still don't understand their implications). > Given user feedback we > have, I think we should not create GUI frames when Emacs is invoked > with -nw, though, at least by default. I don't understand this. Creating GUI frames in a -nw session shouldn't happen. "Mimicking" the GUI frames in the -nw session is what the code intended to do, so if you have three frames of whatever size and other parameters, the TTY session would start with three tty frames (F1 to F3). Then going back to GUI mode would restore the original GUI frames (not the tty ones). > As for the trips in frameset.el, I don't think they are entirely > redundant, because I'd expect the following sequence of Emacs > invocations to re-create the original GUI frames from the 1st > invocation: > > . emacs > . emacs -nw > . emacs That is exactly what worked before (or, at least, it worked in all my tests) and it's broken now. --94eb2c193efe7906870546b563df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sun, Jan 22, 2017 at 5:23 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> I= f you can find a way of fixing 17693 without disabling frameset
> res= toration, feel free to do that on master.

I'm = going to take a hard look at this and every frameset bug I can find. I'= ll revert the frameset.el and desktop.el code (locally, not on the reposito= ry) to its previous state and will try to understand the issues and the pos= sible fixes. (I'm not implying the current fixes aren't good, only = that I still don't understand their implications).

=
> =C2= =A0Given user feedback we
> have, I think we should= not create GUI frames when Emacs is invoked
> with -nw, though, at l= east by default.

I don't understand this. Crea= ting GUI frames in a -nw session shouldn't happen. "Mimicking"= ; the GUI frames in the -nw session is what the code intended to do, so if = you have three frames of whatever size and other parameters, the TTY sessio= n would start with three tty frames (F1 to F3). Then going back to GUI mode= would restore the original GUI frames (not the tty ones).

> = As for the trips in frameset.el, I don't think they are entirely=
> redundant, because I'd expect the following sequenc= e of Emacs
> invocations to re-create the original GUI frames from th= e 1st
> invocation:
>
> =C2=A0 . emacs
> =C2=A0 . e= macs -nw
> =C2=A0 . emacs

That is exactly wh= at worked before (or, at least, it worked in all my tests) and it's bro= ken now.

--94eb2c193efe7906870546b563df--