* bug#3194: 23.0.93; Error opening X frame when it's named
@ 2009-05-02 19:09 Jose Antonio Ortega Ruiz
0 siblings, 0 replies; 4+ messages in thread
From: Jose Antonio Ortega Ruiz @ 2009-05-02 19:09 UTC (permalink / raw
To: emacs-pretest-bug; +Cc: rfrancoise
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3194: 23.0.93; Error opening X frame when it's named
@ 2009-05-03 15:17 Chong Yidong
2009-05-03 16:59 ` Jose Antonio Ortega Ruiz
0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-05-03 15:17 UTC (permalink / raw
To: rfrancoise, Jose Antonio Ortega Ruiz; +Cc: 3194
> 1) emacs -nw -Q
> 3) (make-frame-on-display (getenv "DISPLAY")
> '((name . "foo")))
>
> one gets the following error:
> x-get-resource("geometry" "Geometry")
> ...
> 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)
I can't reproduce this with latest CVS, nor with the 23.0.93 pretest.
The frame is opened with the correct name, and no errors.
Romaine, are any of the Debian modifications relevant here?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3194: 23.0.93; Error opening X frame when it's named
2009-05-03 15:17 bug#3194: 23.0.93; Error opening X frame when it's named Chong Yidong
@ 2009-05-03 16:59 ` Jose Antonio Ortega Ruiz
2009-05-07 0:09 ` Chong Yidong
0 siblings, 1 reply; 4+ messages in thread
From: Jose Antonio Ortega Ruiz @ 2009-05-03 16:59 UTC (permalink / raw
To: Chong Yidong; +Cc: Jose Antonio Ortega Ruiz, 3194, rfrancoise
Chong Yidong <cyd@stupidchicken.com> writes:
>> 1) emacs -nw -Q
>> 3) (make-frame-on-display (getenv "DISPLAY")
>> '((name . "foo")))
>>
>> one gets the following error:
>> x-get-resource("geometry" "Geometry")
>> ...
>> 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)
>
> I can't reproduce this with latest CVS, nor with the 23.0.93 pretest.
> The frame is opened with the correct name, and no errors.
>
The *first* time I try, it works; but subsequent re-evaluations (after
closing the initial frame), fail with the error i reported. Could this
be your case too?
Thanks!
jao
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3194: 23.0.93; Error opening X frame when it's named
2009-05-03 16:59 ` Jose Antonio Ortega Ruiz
@ 2009-05-07 0:09 ` Chong Yidong
0 siblings, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2009-05-07 0:09 UTC (permalink / raw
To: Jose Antonio Ortega Ruiz; +Cc: 3194, rfrancoise
Jose Antonio Ortega Ruiz <jaortega@gmail.com> writes:
> The *first* time I try, it works; but subsequent re-evaluations (after
> closing the initial frame), fail with the error i reported. Could this
> be your case too?
OK, I see the problem. This is a loophole in the frame creating
logic---we usually rely on x-create-frame to open the X connection if
it's not already open, but for named faces we need the X resources
associated with the face name. So x-handle-named-frame-geometry really
ought to open the X connection. The reason this does not happen for the
first X frame is that we detect that specially, and open the X
connection for initializing the various graphical settings.
I don't want to make any changes to the logic at this stage of the
pretest, so I've installed a temporary workaround, which ignores the
error in x-handle-named-frame-geometry. This has one drawback: any
special X resources you associate with that frame name are not
recognized.
I'll keep this bug open, and look into a more comprehensive solution
after the release.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-07 0:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-03 15:17 bug#3194: 23.0.93; Error opening X frame when it's named Chong Yidong
2009-05-03 16:59 ` Jose Antonio Ortega Ruiz
2009-05-07 0:09 ` Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2009-05-02 19:09 Jose Antonio Ortega Ruiz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.