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: GUI vs TTY when saving & restoring framesets Date: Sun, 22 Jan 2017 05:21:44 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1485058976 6532 195.159.176.226 (22 Jan 2017 04:22:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 04:22:56 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 05:22:51 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 1cV9ff-0007uo-Mx for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 05:22:27 +0100 Original-Received: from localhost ([::1]:34384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV9fk-0007m6-Ms for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 23:22:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV9ff-0007lo-1B for emacs-devel@gnu.org; Sat, 21 Jan 2017 23:22:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV9fe-0004dY-Al for emacs-devel@gnu.org; Sat, 21 Jan 2017 23:22:26 -0500 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38224) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cV9fe-0004dT-4R for emacs-devel@gnu.org; Sat, 21 Jan 2017 23:22:26 -0500 Original-Received: by mail-wm0-x22f.google.com with SMTP id r144so103836820wme.1 for ; Sat, 21 Jan 2017 20:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YNlwExj9aqhA6S97RKzhBNHAA/c8MTWq5WEJJgy38DQ=; b=jysSnQtv77aOHwjG1v9hPt0TRyD24e6VSGs/WwKW5kmL63vHDrvtNZu/u4c6MdV+9u gQubuIVGC8glZarWsEYy1C3BodRYLLIwrPMwdVlFwgPKBNIeOfO0TTBNV6SmUYO0/0U8 Bor+3a/uYsmDs3w+JmVVeAz+LPYB0ccehVKmbTECMZW6T7swUKwJmhD6DTOFSg+tuALB eEA79Eey6SVAztJfp81nQUjXlJP58JAK06RQIpoJVxZi9U/4XISEhkbDkUxnUl/fGw0r KKBd+9JuLfX5f172CsigzJJSU1OnB0zQXywfVtW+HznEtBm0vBcHJlY13zhJG4Sk2FqS fxnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YNlwExj9aqhA6S97RKzhBNHAA/c8MTWq5WEJJgy38DQ=; b=DAEEqE7eYI2h8AGP+jUjxVPi/1crYrew0bpCr9RB6+js9zKsBRM7HAs3BqzZb/ntzN irGFeyWuF75qzYp1l8PWUcLpcSMJ7dL075DMmR/Hdkclaqq+ucBmdSdAT8k8XP2e3OoN /XNNnDg1IwMCNT1oltyYPXaoDQ8C4fRkmzJdxuzO2mx/TF1iCxcwqgtx2mGsPZVPzTje L0T4/G1hi9Quw8dU61RT0v6aES657cxYWw08pKqUQSpcQiVrgF1oe1Ufr+4A5VA46PWC 80xR4eIGMYQ0z06LMouo3cJcP7I/NrCac5+0bjP/wVSZdx/pRHUHxV8HdBtYBFVgN2yP iI5g== X-Gm-Message-State: AIkVDXI4Fy80mtWVQcrG4/QdQYY91ufewRdCqhx7m4VEvVV5a1Mep2iejC5QTi5yVeCPlkfEnq5ZCSvLWuXEqw== X-Received: by 10.223.173.43 with SMTP id p40mr17944382wrc.163.1485058944755; Sat, 21 Jan 2017 20:22:24 -0800 (PST) Original-Received: by 10.194.172.129 with HTTP; Sat, 21 Jan 2017 20:21:44 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22f 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:211515 Archived-At: I've seen that there were several bugs related to framesets and ttys (I've located bug#17693 and bug#24298, but there were perhaps others). I don't understand yet the problems and the way they were fixed, but it has changed one previous feature. You could do (1) emacs -f desktop-save-mode -f destop-read set up your frame configuration with a couple of frames, save the desktop, then (2) emacs -f desktop-save-mode -f desktop-read -nw and you would get the same number of frames, then again (3) emacs -f desktop-save-mode -f desktop-read -nw and you would get back the original graphics frames. As of the current trunk, assuming you had 2 frames in (1), when you do (2) you gent a message Desktop: 2 frames, 0 buffers restored. which I think is false, because "C-x 5 o" does not switch to F2. Then, if you exit emacs, (3) produces a warning "Error (frameset): Font 'tty' is not defined. So, basically, previously the frameset saving in desktop.el was intended to be unaffected by -nw (per se; of course changes to the frames would be reflected in subsequent configurations, but not just entering and exiting -nw), and now it's not. I sort of liked the previous behavior, which was (bugs aside) safer. But if the new behavior is preferred, I think there's quite a lot of code from frameset.el that deals with the gui -> tty -> gui trip and could be excised. Opinions?