bug#3194: 23.0.93; Error opening X frame when it's named

Jose Antonio Ortega Ruiz <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
1)  emacs -nw -Q
2) in *scratch*, evaluating
     (make-frame-on-display (gentenv "DISPLAY"))
   or
     (make-frame-on-display (gentenv "DISPLAY")
                            '((width . 80) (height . 10)))
   works fine
3) but, when including `name' as one of the frame parameters:
     (make-frame-on-display (gentenv "DISPLAY")
                            '((name . "foo")))
 one gets the following error:

Debugger entered--Lisp error: (error "X windows are not in use or not initialized")
  x-get-resource("geometry" "Geometry")
  x-handle-named-frame-geometry(((window-system . x) (display . ":0.0") (name . "foo") (width . 80) (height . 10)))
  x-create-frame-with-faces(((window-system . x) (display . ":0.0") (name . "foo") (width . 80) (height . 10)))
  make-frame(((window-system . x) (display . ":0.0") (name . "foo") (width . 80) (height . 10)))
  make-frame-on-display(":0.0" ((name . "foo") (width . 80) (height . 10)))
  eval((make-frame-on-display (getenv "DISPLAY") (quote (... ... ...))))
  eval-last-sexp-1(t)
  eval-last-sexp(t)
  eval-print-last-sexp()
  call-interactively(eval-print-last-sexp nil nil)

In GNU Emacs 23.0.93.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-05-01 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090501-1)
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.93/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.93/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

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: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  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
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
( m a k e - f r a m e - o n - d i s p l a y SPC ( g 
e t e n v SPC " D S DEL I S P L A Y " ) ) C-j <switch-frame> 
C-x 5 0 C-p C-p C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-j C-p C-k TAB ' ( ( w i t 
h DEL DEL d t h SPC . SPC 8 0 ) SPC ( h e i g h t . 
DEL SPC . 1 DEL SPC 1 0 ) ) ) C-n C-a C-k C-p C-e DEL 
) C-j <switch-frame> C-x 5 0 C-l C-p C-k C-k C-k C-k 
C-k C-p C-e C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b 
C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b 
C-b C-b C-b C-b C-b ( n a m e SPC . SPC " f o o " SPC 
) SPC C-e C-j C-p C-@ C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n ESC w ESC x r e p o r t - b u TAB RET

Recent messages:
("emacs" "-Q")
For information about GNU Emacs and the GNU system, type C-h C-a.
Entering debugger...
Mark set
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.