From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#28873: 26.0.60; error while restoring frameset Date: Tue, 17 Oct 2017 19:49:41 +0200 Message-ID: References: <59E5C681.1060207@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113e4ca696e9b9055bc1c019" X-Trace: blaine.gmane.org 1508262693 13785 195.159.176.226 (17 Oct 2017 17:51:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 17:51:33 +0000 (UTC) Cc: 28873@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 19:51:27 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1e4W1C-0000QI-Ta for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 19:51:07 +0200 Original-Received: from localhost ([::1]:40939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4W1I-00067P-Or for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 13:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4W1C-00067H-IB for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 13:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4W19-0002DQ-2m for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 13:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4W18-0002DA-UO for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4W18-000454-Gj for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 13:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2017 17:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28873 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28873-submit@debbugs.gnu.org id=B28873.150826261115613 (code B ref 28873); Tue, 17 Oct 2017 17:51:02 +0000 Original-Received: (at 28873) by debbugs.gnu.org; 17 Oct 2017 17:50:11 +0000 Original-Received: from localhost ([127.0.0.1]:46556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4W0I-00043k-Im for submit@debbugs.gnu.org; Tue, 17 Oct 2017 13:50:11 -0400 Original-Received: from mail-qt0-f181.google.com ([209.85.216.181]:49703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4W0F-00043T-4g for 28873@debbugs.gnu.org; Tue, 17 Oct 2017 13:50:07 -0400 Original-Received: by mail-qt0-f181.google.com with SMTP id k31so5346366qta.6 for <28873@debbugs.gnu.org>; Tue, 17 Oct 2017 10:50:07 -0700 (PDT) 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=mJ9BtF+054BbSF9QySgqlGw//vVXIOYDfO/4buf4Bfw=; b=OX0ZHBAdc724XEeKLvoM5KyF+TEUvdTrSvZoJjdWTMwdLbq4W+SSfvJxvY63Vp2OgL GHS1j/O9fTzO/XrT0qr1OLe7UBatFWsYPXQ6cwCRDjzONQwSwZNBzKcHHq65+BQJPkVZ sPbe84563lpsTlypZwqBTfI0Xug/SdmNRlMRWZ6cCExSYERMH1XmZKvobfD+q8yjK5PF QmsK+NFJUmAiR8kpze+BaPKAfKBHLe/tcsvjPuV2K7bO9CzlbUrNx8nQQwIwzQyNNPsK C9PXSoLQlqofMOQ559+4XyUD5iFMR7oZQiwwcktC09qepyNyx6JYKPczEffdWaKoQlh5 y+cw== 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=mJ9BtF+054BbSF9QySgqlGw//vVXIOYDfO/4buf4Bfw=; b=osjZcVd0y4okAhZBtZQD9CzZPrwEmWgX4aJo2R5Ojigfbhzhe9OVk7QXKxctZTNGBV 99GCPgTCAvtHg6mq/M3yVTVHPr9QY9MFyo4hMHY8HEC9wsTJ2zNfa3rbfKGSUIHWL9fz i5uJKGG4v0Cq0e5b1mqeas/87gTF9nyq9LS38Kc0r+D1nxQnGNBz/KrveHO+p/Hvq2ys cEXzITE7YXTI6rQisexAM7QTttxmN6zagosoZtCpzjjoqT950Ukp16Hsnfk6FZPRmehy 54BXDHD+LYfazq9rifczAC0tNau3stqGccD0v5tczKcrBSjs0cTgsLNWu8KVvOf9G4GY w0xg== X-Gm-Message-State: AMCzsaWHew1yrXZAyzQYuA1T5R5EE2UHg6ymq1mXFfcgIKS12hFo0Uri Sd4kB+/MXCdaA8zogehwEtglNDCU93uYJiahJco= X-Google-Smtp-Source: AOwi7QDd+KR8qF4PUdOmjXqVzsIAulwu/g0XKR9xAgk5JVKNvlFqCT3nTjBFw+kWUZQGh4IuescbdnfzZpkcqYORmSU= X-Received: by 10.200.39.236 with SMTP id x41mr20655481qtx.287.1508262601483; Tue, 17 Oct 2017 10:50:01 -0700 (PDT) Original-Received: by 10.140.94.2 with HTTP; Tue, 17 Oct 2017 10:49:41 -0700 (PDT) In-Reply-To: <59E5C681.1060207@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138634 Archived-At: --001a113e4ca696e9b9055bc1c019 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have a simple way to reproduce the problem. On emacs-ubuntu, run: emacs -Q -l foo-frameset.el The foo-frameset.el is: (require 'frameset) (frameset-restore [frameset 1 (23014 15441 157710 0) (desktop . "208") "Fabrice@LOBSANG" nil nil ((((minibuffer . t) (undecorated) (skip-taskbar) (font-backend uniscribe gdi) (font . "-outline-Consolas-normal-normal-normal-mono-22-*-*-*-c-*-iso8859-1") (border-width . 2) (internal-border-width . 0) (right-divider-width . 0) (bottom-divider-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (foreground-color . "#c5c8c6") (background-color . "#1d1f21") (mouse-color . "black") (border-color . "#373b41") (screen-gamma) (line-spacing) (left-fringe . 8) (right-fringe . 0) (no-focus-on-map) (no-accept-focus) (no-special-glyphs) (alpha) (menu-bar-lines . 1) (tool-bar-lines . 0) (height . 64) (title) (icon-type) (auto-raise) (auto-lower) (cursor-type . box) (scroll-bar-width . 0) (scroll-bar-height . 0) (fullscreen . maximized) (z-group) (visibility . t) (display-type . color) (background-mode . dark) (cursor-color . "#cc6666") (environment) (frameset--id . "123B-E56F-57D3-CB68") (frameset--mini t . t) (modeline . t) (unsplittable) (icon-name) (display . "w32") (explicit-name) (tool-bar-position . top) (width . 266) (left + -11) (top + -11)) ((min-height . 8) (min-width . 10) (min-height-ignore . 6) (min-width-ignore . 3) (min-height-safe . 2) (min-width-safe . 2) (min-pixel-height . 208) (min-pixel-width . 120) (min-pixel-height-ignore . 156) (min-pixel-width-ignore . 36) (min-pixel-height-safe . 52) (min-pixel-width-safe . 24)) vc (pixel-width . 3200) (pixel-height . 1650) (total-width . 267) (total-height . 63) (normal-height . 1.0) (normal-width . 1.0) (combination-limit) (leaf (pixel-width . 3200) (pixel-height . 826) (total-width . 267) (total-height . 32) (normal-height . 0.5) (normal-width . 1.0) (buffer "THCS.org" (selected . t) (hscroll . 0) (fringes 8 0 nil) (margins nil) (scroll-bars nil 0 t nil 0 t) (vscroll . 0) (dedicated) (point . 601641) (start . 596566))) (leaf (last . t) (pixel-width . 3200) (pixel-height . 824) (total-width . 267) (total-height . 31) (normal-height . 0.5) (normal-width . 1.0) (buffer "*Compile-Log*" (selected) (hscroll . 0) (fringes 8 0 nil) (margins nil) (scroll-bars nil 0 t nil 0 t) (vscroll . 0) (dedicated) (point . 66) (start . 1)))))] :reuse-frames t :cleanup-frames t :force-display t :force-onscreen t) giving: Error (frameset): Cannot change the border width of a frame The frameset I have not tried to reduce the frameset whatsoever. My point is that the frameset is not compatible between my emacs-w64 session and my emacs-ubuntu session because (at least) of the border-width which errors. I was expecting to be able to run emacs independently on Windows and GNU/Linux and being able to share all of my setup. I get this error when the desktop package is restoring the session. Regards, Fabrice 2017-10-17 10:59 GMT+02:00 martin rudalics : > > While using the frameset--restore-frame function, it may happen that > > the modify-frame-parameters be called with a border-width which > > is not the default one for the current emacs. In this case, > > x_set_border_width errors because it can't change it. > > 'border-width' is in =E2=80=98frameset--initial-params=E2=80=99 and shoul= d be filtered > appropriately. Can you provide a backtrace with a breakpoint in > > if (FRAME_X_WINDOW (f) !=3D 0) > error ("Cannot change the border width of a frame"); > > martin > > --001a113e4ca696e9b9055bc1c019 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a simple way to reproduce the problem.

On emacs-ubuntu, run:

emacs -Q -l foo-framese= t.el

The foo-frameset.el is:

<= div>
(require 'frameset)

(frameset-restore= [frameset 1 (23014 15441 157710 0) (desktop . "208") "Fabri= ce@LOBSANG" nil nil ((((minibuffer . t) (undecorated) (skip-taskbar) (= font-backend uniscribe gdi) (font . "-outline-Consolas-normal-normal-n= ormal-mono-22-*-*-*-c-*-iso8859-1") (border-width . 2) (internal-borde= r-width . 0) (right-divider-width . 0) (bottom-divider-width . 0) (vertical= -scroll-bars) (horizontal-scroll-bars) (foreground-color . "#c5c8c6&qu= ot;) (background-color . "#1d1f21") (mouse-color . "black&qu= ot;) (border-color . "#373b41") (screen-gamma) (line-spacing) (le= ft-fringe . 8) (right-fringe . 0) (no-focus-on-map) (no-accept-focus) (no-s= pecial-glyphs) (alpha) (menu-bar-lines . 1) (tool-bar-lines . 0) (height . = 64) (title) (icon-type) (auto-raise) (auto-lower) (cursor-type . box) (scro= ll-bar-width . 0) (scroll-bar-height . 0) (fullscreen . maximized) (z-group= ) (visibility . t) (display-type . color) (background-mode . dark) (cursor-= color . "#cc6666") (environment) (frameset--id . "123B-E56F-= 57D3-CB68") (frameset--mini t . t) (modeline . t) (unsplittable) (icon= -name) (display . "w32") (explicit-name) (tool-bar-position . top= ) (width . 266) (left + -11) (top + -11)) ((min-height . 8) (min-width . 10= ) (min-height-ignore . 6) (min-width-ignore . 3) (min-height-safe . 2) (min= -width-safe . 2) (min-pixel-height . 208) (min-pixel-width . 120) (min-pixe= l-height-ignore . 156) (min-pixel-width-ignore . 36) (min-pixel-height-safe= . 52) (min-pixel-width-safe . 24)) vc (pixel-width . 3200) (pixel-height .= 1650) (total-width . 267) (total-height . 63) (normal-height . 1.0) (norma= l-width . 1.0) (combination-limit) (leaf (pixel-width . 3200) (pixel-height= . 826) (total-width . 267) (total-height . 32) (normal-height . 0.5) (norm= al-width . 1.0) (buffer "THCS.org" (selected . t) (hscroll . 0) (= fringes 8 0 nil) (margins nil) (scroll-bars nil 0 t nil 0 t) (vscroll . 0) = (dedicated) (point . 601641) (start . 596566))) (leaf (last . t) (pixel-wid= th . 3200) (pixel-height . 824) (total-width . 267) (total-height . 31) (no= rmal-height . 0.5) (normal-width . 1.0) (buffer "*Compile-Log*" (= selected) (hscroll . 0) (fringes 8 0 nil) (margins nil) (scroll-bars nil 0 = t nil 0 t) (vscroll . 0) (dedicated) (point . 66) (start . 1)))))] :reuse-f= rames t :cleanup-frames t :force-display t :force-onscreen t)

giving:
Error (frameset): Cannot change th= e border width of a frame

The frameset=C2=A0=
I have not tried to reduce the frameset whatsoever.
My point is that the frameset is not compatible between my ema= cs-w64 session and my emacs-ubuntu session
because (at least) of = the border-width which errors.
I was expecting to be able t= o run emacs independently on Windows and GNU/Linux and being able to share<= /div>
all of my setup. I get this error when the desktop package is res= toring the session.

Regards,

<= div>Fabrice

2017-10-17 10:59 GMT+02:00 martin rudalics <rudalics@gmx.at>:
> While using the frameset--rest= ore-frame function, it may happen that
> the modify-frame-parameters be called with a border-width which
> is not the default one for the current emacs. In this case,
> x_set_border_width errors because it can't change it.

'border-width' is in =E2=80=98frameset--initial-params=E2=80=99 and= should be filtered
appropriately.=C2=A0 Can you provide a backtrace with a breakpoint in

=C2=A0 if (FRAME_X_WINDOW (f) !=3D 0)
=C2=A0 =C2=A0 error ("Cannot change the border width of a frame")= ;

martin


--001a113e4ca696e9b9055bc1c019--