emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make-frame doesn't create frame parameters it is passed


From: Drew Adams
Subject: make-frame doesn't create frame parameters it is passed
Date: Wed, 27 Dec 2006 16:12:19 -0800

emacs -Q

1. make-frame does not respect frame parameters that are not known:
(make-frame '((foo . 45)))

The manual seems to support this, saying:

     "The set of possible parameters depends in principle on what kind of
     window system Emacs uses to display its frames.  *Note Window
     Frame Parameters::, for documentation of individual parameters you
     can specify."

Why doesn't make-frame just create all parameters you give it?
Programs can add any parameters they want using
modify-frame-parameters, so why are only some parameters respected by
make-frame?

2. In particular, if you want to add a frame-local variable, you can't
just do this:
(make-frame-local-variable 'foo)
(make-frame '((foo . 45)...)); with lots of other frame parameters.

Instead, you must do something like this:
(make-frame-local-variable 'foo)
(modify-frame-parameters
  (make-frame '(...)) ; with the other frame paramters
  '((foo . 45)))

I'd call this non-respect of arbitrary frame parameters by make-frame
a bug. If you don't agree, please consider my suggestion as an
enhancement request: Change make-frame so that it adds all frame
parameters the user specifies.



In GNU Emacs 22.0.91.1 (i386-mingw-nt5.1.2600)
 of 2006-12-11 on LENNART-69DE564
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Id:/g/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <switch-frame>
<help-echo> <help-echo> <help-echo> <switch-frame>
<help-echo> <down-mouse-1> <mouse-movement> <mouse-1>
<down-mouse-1> <mouse-1> <return> ( m o d i f y - f
r a m e - p a r e m e <backspace> <backspace> <backspace>
a m e t e r s SPC n i l SPC <down-mouse-1> <mouse-movement>
<mouse-movement> <drag-mouse-1> <down-mouse-2> <mouse-2>
<down-mouse-1> <mouse-1> C-d 5 5 5 C-e <backspace>
) C-x C-e <down> M-x p p - e v a l - l a s t <return>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Mark set
foo
#<frame address@hidden 0x140fa00>
((parent-id) (display . "") (visibility . t) (icon-name) (window-id .
"2426810") (top . 116) (left . 88) (buffer-list #<buffer *scratch*> #<buffer
*Minibuf-1*>) (unsplittable) (minibuffer . #<window 7 on  *Minibuf-0*>)
(modeline . t) (width . 80) ...) [2 times]
Loading pp...done
Loading help-mode...done
Quit [3 times]
Mark set
nil
Loading emacsbug...done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]