GNU bug report logs - #1077
23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil)

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 3 Oct 2008 17:30:02 UTC

Severity: normal

Tags: moreinfo

Merged with 670

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: rudalics <at> gmx.at, 1077 <at> debbugs.gnu.org
Subject: bug#1077: 23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil)
Date: Tue, 30 Nov 2010 20:16:45 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <1077 <at> debbugs.gnu.org>
> Date: Tue, 30 Nov 2010 07:56:55 -0800
> 
> > > But if not entry for `menu-bar-lines' exists, calling
> > > (frame-parameter ... 'menu-bar-lines) returns nil.
> > 
> > That's not guaranteed to be true.  You will see in the implementation
> > of frame-parameter and frame-parameters that we return values for some
> > frame parameters without ever looking at the frame's parameter alist.
> > It's true that frame-parameter actually does look in frame's parameter
> > alist when the value of menu-bar-lines is requested, but
> > frame-parameters does not, at least for TTYs.
> 
> My impression (I don't have references to prove it) is that this general rule
> _has_ worked, and it has only recently (in the last few years) been broken.

Perhaps for a couple of frame parameters that was changed recently.
However, the general fact that _some_ frame parameters are returned
without ever consulting the frame's parameter alist -- this fact is
true for as long as I can remember.

> I'm not aware that there ever was a _frame parameter_ named `menu-bar-mode'.
> Certainly there is none mentioned in the Emacs 20 Elisp manual.  There is a
> `menu-bar-mode' _command_ (and mode).

Every mode (well, almost every one) has a variable by that same name.
Try "C-h v menu-bar-mode RET".  I'm sure you already knew that.




This bug report was last modified 14 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.