From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#19706: 25.0.50; (+ nil nil -1) in desktop-restore-frameset Date: Mon, 18 Jan 2016 21:41:04 +0000 Message-ID: <20160118214104.GA16880@acm.fritz.box> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453153169 16414 80.91.229.3 (18 Jan 2016 21:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2016 21:39:29 +0000 (UTC) Cc: 19706@debbugs.gnu.org To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 22:39:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aLHW2-0003TJ-T9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jan 2016 22:39:11 +0100 Original-Received: from localhost ([::1]:33791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLHW1-0007WG-Uq for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jan 2016 16:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLHVx-0007W9-O6 for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2016 16:39:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLHVu-0003La-Eb for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2016 16:39:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLHVu-0003LW-AZ for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2016 16:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aLHVu-0001ob-3D for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2016 16:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2016 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19706-submit@debbugs.gnu.org id=B19706.14531531346965 (code B ref 19706); Mon, 18 Jan 2016 21:39:02 +0000 Original-Received: (at 19706) by debbugs.gnu.org; 18 Jan 2016 21:38:54 +0000 Original-Received: from localhost ([127.0.0.1]:53232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLHVe-0001o9-PX for submit@debbugs.gnu.org; Mon, 18 Jan 2016 16:38:54 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:58774) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLHVY-0001nu-0F for 19706@debbugs.gnu.org; Mon, 18 Jan 2016 16:38:45 -0500 Original-Received: (qmail 86736 invoked by uid 3782); 18 Jan 2016 21:38:38 -0000 Original-Received: from acm.muc.de (p548A43BA.dip0.t-ipconnect.de [84.138.67.186]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 18 Jan 2016 22:38:37 +0100 Original-Received: (qmail 19826 invoked by uid 1000); 18 Jan 2016 21:41:04 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111723 Archived-At: Hello again, Sam. On Tue, Jan 27, 2015 at 01:12:38PM -0500, Sam Steingold wrote: > I get this error invariably when starting emacs: > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > +(nil nil -1) > frameset-move-onscreen(# t) > frameset--restore-frame(((font-backend mac-ct) (fontsize . 0) (font . "= -*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1") (border-width . 0= ) (internal-border-width . 2) (vertical-scroll-bars . right) (horizontal-sc= roll-bars) (foreground-color . "DarkSlateBlue") (background-color . "LightG= ray") (line-spacing) (left-fringe . 4) (right-fringe . 4) (menu-bar-lines .= 1) (tool-bar-lines . 0) (title) (icon-type) (auto-raise) (auto-lower) (cur= sor-type bar . 2) (scroll-bar-width . 15) (scroll-bar-height . 0) (alpha) (= fullscreen . maximized) (display . "sds-MacBook-Pro.local") (display-type .= color) (background-mode . light) (cursor-color . "Blue") (mouse-color . "M= agenta") (visibility) (environment) (frameset--id . "062B-C257-B510-848F") = (frameset--mini t) (modeline . t) (minibuffer . t) (unsplittable) (right-di= vider-width . 0) (bottom-divider-width . 0) (icon-name) (explicit-name) (to= ol-bar-position . top) (height . 35) (width . 81) (left + -1200) (top . 32)= ) (((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ig= nore . 6) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 56= ) (min-pixel-width . 70) (min-pixel-height-ignore . 28) (min-pixel-width-ig= nore . 42) (min-pixel-height-safe . 14) (min-pixel-width-safe . 14)) leaf (= pixel-width . 590) (pixel-height . 476) (total-width . 84) (total-height . = 34) (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (selecte= d) (hscroll . 0) (fringes 4 4 nil) (margins nil) (scroll-bars nil 3 t nil 0= nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) ((background-colo= r . frameset-filter-sanitize-color) (buffer-list . :never) (buffer-predicat= e . :never) (buried-buffer-list . :never) (font . frameset-filter-shelve-pa= ram) (foreground-color . frameset-filter-sanitize-color) (fullscreen . fram= eset-filter-shelve-param) (GUI:font . frameset-filter-unshelve-param) (GUI:= fullscreen . frameset-filter-unshelve-param) (GUI:height . frameset-filter-= unshelve-param) (GUI:width . frameset-filter-unshelve-param) (height . fram= eset-filter-shelve-param) (outer-window-id . :never) (parent-id . :never) (= tty . frameset-filter-tty-to-GUI) (tty-type . frameset-filter-tty-to-GUI) (= width . frameset-filter-shelve-param) (window-id . :never) (window-system .= :never) (name . :never) (left . frameset-filter-iconified) (minibuffer . f= rameset-filter-minibuffer) (top . frameset-filter-iconified)) t) > frameset-restore([frameset 1 (21703 54246 125901 0) (desktop . "206") "= sds@sds-MacBook-Pro.home" nil nil ((((font-backend mac-ct) (fontsize . 0) (= font . "-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1") (border-w= idth . 0) (internal-border-width . 2) (vertical-scroll-bars . right) (horiz= ontal-scroll-bars) (foreground-color . "DarkSlateBlue") (background-color .= "LightGray") (line-spacing) (left-fringe . 4) (right-fringe . 4) (menu-bar= -lines . 1) (tool-bar-lines . 0) (title) (icon-type) (auto-raise) (auto-low= er) (cursor-type bar . 2) (scroll-bar-width . 15) (scroll-bar-height . 0) (= alpha) (fullscreen . maximized) (display . "sds-MacBook-Pro.local") (displa= y-type . color) (background-mode . light) (cursor-color . "Blue") (mouse-co= lor . "Magenta") (visibility) (environment) (frameset--id . "062B-C257-B510= -848F") (frameset--mini t) (modeline . t) (minibuffer . t) (unsplittable) (= right-divider-width . 0) (bottom-divider-width . 0) (icon-name) (explicit-n= ame) (tool-bar-position . top) (height . 35) (width . 81) (left + -1200) (t= op . 32)) ((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-w= idth-ignore . 6) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-heig= ht . 56) (min-pixel-width . 70) (min-pixel-height-ignore . 28) (min-pixel-w= idth-ignore . 42) (min-pixel-height-safe . 14) (min-pixel-width-safe . 14))= leaf (pixel-width . 590) (pixel-height . 476) (total-width . 84) (total-he= ight . 34) (normal-height . 1.0) (normal-width . 1.0) (buffer "*scratch*" (= selected) (hscroll . 0) (fringes 4 4 nil) (margins nil) (scroll-bars nil 3 = t nil 0 nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (((font-ba= ckend mac-ct) (fontsize . 0) (font . "-*-Menlo-normal-normal-normal-*-12-*-= *-*-m-0-iso10646-1") (border-width . 0) (internal-border-width . 2) (vertic= al-scroll-bars . right) (horizontal-scroll-bars) (foreground-color . "DarkS= lateBlue") (background-color . "LightGray") (line-spacing) (left-fringe . 4= ) (right-fringe . 4) (menu-bar-lines . 1) (tool-bar-lines . 0) (title) (ico= n-type) (auto-raise) (auto-lower) (cursor-type bar . 2) (scroll-bar-width .= 15) (scroll-bar-height . 0) (alpha) (fullscreen . maximized) (display . "s= ds-MacBook-Pro.local") (display-type . color) (background-mode . light) (cu= rsor-color . "Blue") (mouse-color . "Magenta") (visibility . t) (environmen= t) (frameset--id . "57B5-D002-B07E-BCE3") (frameset--mini t . t) (modeline = =2E t) (minibuffer . t) (unsplittable) (right-divider-width . 0) (bottom-di= vider-width . 0) (icon-name) (explicit-name) (tool-bar-position . top) (hei= ght . 60) (width . 201) (left . 0) (top . 30)) ((min-height . 4) (min-width= . 20) (min-height-ignore . 2) (min-width-ignore . 12) (min-height-safe . 1= ) (min-width-safe . 4) (min-pixel-height . 56) (min-pixel-width . 140) (min= -pixel-height-ignore . 28) (min-pixel-width-ignore . 84) (min-pixel-height-= safe . 14) (min-pixel-width-safe . 28)) hc (pixel-width . 1434) (pixel-heig= ht . 826) (total-width . 205) (total-height . 59) (normal-height . 1.0) (no= rmal-width . 1.0) (combination-limit) (leaf (pixel-width . 720) (pixel-heig= ht . 826) (total-width . 103) (total-height . 59) (normal-height . 1.0) (no= rmal-width . 0.5) (buffer "#devchat@Magnetic-Online.irc.grove.io" (selected= . t) (hscroll . 0) (fringes 4 4 nil) (margins nil) (scroll-bars nil 3 t ni= l 0 nil) (vscroll . 0) (dedicated) (point . 470743) (start . 467481))) (lea= f (last . t) (pixel-width . 714) (pixel-height . 826) (total-width . 102) (= total-height . 59) (normal-height . 1.0) (normal-width . 0.5) (buffer "util= =2Epy" (selected) (hscroll . 0) (fringes 4 4 nil) (margins nil) (scroll-bar= s nil 3 t nil 0 nil) (vscroll . 0) (dedicated) (point . 2996) (start . 2942= )))))] :reuse-frames t :cleanup-frames t :force-display nil :force-onscreen= t) > desktop-restore-frameset() > desktop-read() > #[0 "\305\211=08\235\203 > command-line() > normal-top-level() > In GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.0.0, NS appkit-1343.16 Vers= ion 10.10.1 (Build 14B25)) > of 2015-01-27 on sds-MacBook-Pro.home > Repository revision: c7effd7cacc5505933c32221bb25bea791b589e0 > Windowing system distributor `Apple', version 10.3.1343 > Configured using: > `configure --with-ns' [ .... ] [The following patch might help (it solves a similar problem on a Linux TTY), but this is unlikely: diff --git a/lisp/frameset.el b/lisp/frameset.el index b8d86c6..ced35a7 100644 --- a/lisp/frameset.el +++ b/lisp/frameset.el @@ -812,8 +812,8 @@ frameset-move-onscreen (pcase-let* ((`(,left ,top ,width ,height) (cl-cdadr (frame-monitor-attr= ibutes frame))) (right (+ left width -1)) (bottom (+ top height -1)) - (fr-left (frameset-compute-pos (frame-parameter frame 'left) left = right)) - (fr-top (frameset-compute-pos (frame-parameter frame 'top) top bot= tom)) + (fr-left (frameset-compute-pos (or (frame-parameter frame 'left) 0= ) left right)) + (fr-top (frameset-compute-pos (or (frame-parameter frame 'top) 0) = top bottom)) (ch-width (frame-char-width frame)) (ch-height (frame-char-height frame)) (fr-width (max (frame-pixel-width frame) (* ch-width (frame-width = frame)))) .] =20 After starting Emacs, which fails as above, could you possibly do M-: (frame-monitor-attributes (selected-frame)) and post the result here, please. > --=20 > Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1343 > http://www.childpsy.net/ http://www.memritv.org http://ffii.org > http://camera.org http://mideasttruth.com http://dhimmi.org > I am always late to my punctuality class. --=20 Alan Mackenzie (Nuremberg, Germany).