This bug report will be sent to the XEmacs Development Team,
not to your local site managers!!
Please write in English, because the XEmacs maintainers do not have
translators to read other languages for them.
Please describe as succinctly as possible:
- What happened.
- What you thought should have happened.
- Precisely what you were doing at the time.
Please also include any C or lisp back-traces that you may have.
================================================================
Dear Bug Team!
The docstring for face-spec-set-match-display(display &optional frame) says:
"If FRAME is nil or omitted, the selected frame is used."
However, the following two calls return different values for me:
(face-spec-set-match-display '((background dark)))
(face-spec-set-match-display '((background dark)) (selected-frame))
To reproduce,
- Set your background to black in custom and save
- Open a new xemacs (it should now have the black background)
- C-x 5 2
* Once you're in the new frame,
- M-S-; (face-spec-set-match-display '((background dark)))
* returns nil
- M-S-; (face-spec-set-match-display '((background dark)) (selected-frame))
* returns (dark)
I believe that this is because of a call to get-custom-frame-properties() here:
"... (let* ((props (get-custom-frame-properties frame)) ..."
get-custom-frame-properties() returns a value for the *default* frame if frame
is nil, not the *selected* frame. Thus, there is a docstring contradiction.
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux peppermint 2.4.9-ac7 #1 2001ǯ 9·î 5Æü ¿åÍËÆü 04:25:45 JST i686 unknown
./configure '--with-sound=native,esd' '--cflags=-O2 -g -Wall'
'--with-x11' '--extra-verbose' '--with-site-lisp'
'--statedir=/var/lib' '--infodir=/usr/share/info/xemacs-21.5-b3'
'--prefix=/usr' '--error-checking=none' '--debug=no'
'--const-is-losing=no' '--dynamic' '--without-postgresql'
'--with-gpm=no'
'--docdir=/usr/lib/xemacs-21.5-b3/i386-debian-linux/gnome-nomule/'
'--package-path=~/.xemacs:~/.xemacs/packages::/usr/share/xemacs21/packages:/usr/share/xemacs21/site-packages'
'--with-gtk' '--with-gnome' 'i386-debian-linux'
XEmacs 21.5-b3 "asparagus" configured for `i386-debian-linux'.
Compilation / Installation:
Source code location: /home/takuo/work/guru/xe21.2/xemacs21-21.5.3
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -g -Wall
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Using GTK menubars.
Using GTK scrollbars.
Using GTK dialog boxes.
Using GTK native widgets.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Compiling in support for ESD (Enlightened Sound Daemon).
Databases:
Compiling in support for Berkeley database.
Compiling in support for LDAP.
Internationalization:
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Compiling in support for dynamic shared object modules.
Load-Path Lisp Shadows:
----------------------
(/usr/share/xemacs21/site-lisp/ruby-elisp/rubydb3x
/usr/share/xemacs21/site-lisp/ruby-elisp/rubydb3x
/usr/share/xemacs21/site-lisp/ruby-elisp/rubydb2x
/usr/share/xemacs21/site-lisp/ruby-elisp/rubydb2x
/usr/share/xemacs21/site-lisp/ruby-elisp/ruby-mode
/usr/share/xemacs21/site-lisp/ruby-elisp/ruby-mode
/usr/share/xemacs21/site-lisp/ruby-elisp/inf-ruby
/usr/share/xemacs21/site-lisp/ruby-elisp/inf-ruby
/usr/share/xemacs21/site-lisp/tdtd/tdtd
/usr/share/xemacs21/site-lisp/tdtd/tdtd
/usr/share/xemacs21/site-lisp/tdtd/tdtd-font
/usr/share/xemacs21/site-lisp/tdtd/tdtd-font
/usr/share/xemacs21/site-lisp/tdtd/tdtd-font-maker
/usr/share/xemacs21/site-lisp/tdtd/tdtd-font-maker
/usr/share/xemacs21/site-lisp/tdtd/make-regexp
/usr/share/xemacs21/site-lisp/tdtd/make-regexp
/usr/share/xemacs21/site-lisp/tramp/trampcache
/usr/share/xemacs21/site-lisp/tramp/trampcache
/usr/share/xemacs21/site-lisp/tramp/tramp
/usr/share/xemacs21/site-lisp/tramp/tramp
/usr/share/xemacs21/site-lisp/tramp/tramp-util
/usr/share/xemacs21/site-lisp/tramp/tramp-util
/usr/share/xemacs21/site-lisp/tramp/format-spec
/usr/share/xemacs21/site-lisp/tramp/format-spec
/usr/share/xemacs21/site-lisp/tramp/base64
/usr/share/xemacs21/site-lisp/tramp/base64
/usr/share/xemacs21/site-lisp/tramp/tramp-vc
/usr/share/xemacs21/site-lisp/tramp/tramp-vc
/usr/share/xemacs21/site-lisp/debian-startup
/usr/share/emacs/site-lisp/debian-startup
/usr/share/xemacs21/packages/lisp/build/path
/usr/share/xemacs21/packages/lisp/calc/path
/usr/share/xemacs21/site-lisp/tramp/format-spec
/usr/share/xemacs21/packages/lisp/gnus/format-spec
/usr/share/xemacs21/site-lisp/tramp/base64
/usr/share/xemacs21/packages/lisp/mail-lib/base64
/usr/share/xemacs21/site-lisp/python-elisp/python-mode
/usr/share/xemacs21/packages/lisp/prog-modes/python-mode
/home/toomim/elisp/ansi-color
/usr/share/xemacs21/packages/lisp/text-modes/ansi-color /etc/emacs/site-start
/usr/share/xemacs21/site-packages/lisp/site-start)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.11 :type regular)
(xemacs-devel :version 1.38 :type single-file)
(xemacs-base :version 1.55 :type regular)
(w3 :version 1.2 :type regular)
(vm :version 6.96 :type regular)
(viper :version 1.28 :type regular)
(view-process :version 1.11 :type regular)
(vhdl :version 1.13 :type regular)
(vc-cc :version 1.16 :type regular)
(vc :version 1.28 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.29 :type regular)
(time :version 1.11 :type regular)
(textools :version 1.12 :type regular)
(text-modes :version 1.32 :type single-file)
(texinfo :version 1.2 :type regular)
(supercite :version 1.18 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.21 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(slider :version 1.13 :type regular)
(sh-script :version 1.13 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.1 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.12 :type regular)
(reftex :version 1.23 :type regular)
(psgml :version 1.23 :type regular)
(ps-print-nomule :version 1.05 :type regular)
(prog-modes
:version
1
.42
:type
single-file)
(pcomplete :version 1.01 :type regular)
(pcl-cvs :version 1.55 :type regular)
(pc :version 1.2 :type single-file)
(os-utils :version 1.25 :type single-file)
(net-utils :version 1.23 :type single-file)
(misc-games :version 1.15 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.13 :type regular)
(mew :version 1.14 :type regular)
(mailcrypt :version 2.09 :type regular)
(mail-lib :version 1.39 :type regular)
(ispell :version 1.23 :type regular)
(ilisp :version 1.19 :type regular)
(igrep :version 1.08 :type regular)
(idlwave :version 1.23 :type regular)
(hm--html-menus :version 1.16 :type regular)
(gnus :version 1.57 :type regular)
(gnats :version 1.12 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.09 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.13 :type regular)
(footnote :version 1.13 :type regular)
(eudc :version 1.34 :type regular)
(eterm :version 1.13 :type regular)
(eshell :version 1.01 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.08 :type single-file)
(eieio :version 1.01 :type regular)
(efs :version 1.26 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 1.7 :type single-file)
(ediff :version 1.33 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.11 :type regular)
(debug :version 1.14 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.13 :type regular)
(cc-mode :version 1.26 :type regular)
(calendar :version 1.16 :type regular)
(calc :version 1.17 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.02 :type regular)
(bbdb :version 1.16 :type regular)
(auctex :version 1.25 :type regular)
(apel :version 1.2 :type regular)
(ada :version 1.1 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail tags etags debug iswitchb rect
w3-style w3-hot url-file url-cache w3-xemac w3-xemacs w3-toolbar xbm-button
xpm-button w3-forms images url-http url-cookie timezone urlauth w3 w3-menu
url-news url-gw w3-script w3-jscript w3-elisp w3-java cus-edit cus-load
w3-emulate w3-auto w3-parse url mm w3-display w3-mouse advice advice-preload
w3-imap w3-widget w3-vars w3-keyword wid-edit w3-cus url-parse url-vars css
mule-sysdp w3-cfg w3-sysdp jka-compr efs-cu view-less view hyper-apropos font
disp-table blink-cursor font-lock gnuserv mhtml-mode add-log paren blink-paren
mmm-auto mmm-vars mmm-compat overlay regexp-opt xcscope cus-face
zenirc-autoloads xemacs-devel-autoloads xemacs-base-autoloads w3-autoloads
vm-autoloads viper-autoloads view-process-autoloads vhdl-autoloads
vc-cc-autoloads vc-autoloads tpu-autoloads tooltalk-autoloads tm-autoloads
time-autoloads textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads sounds-wav-autoloads
sounds-au-autoloads slider-autoloads sh-script-autoloads sgml-autoloads
semantic-autoloads scheme-autoloads rmail-autoloads reftex-autoloads
psgml-autoloads ps-print-nomule-autoloads prog-modes-autoloads
pcomplete-autoloads pcl-cvs-autoloads pc-autoloads os-utils-autoloads
net-utils-autoloads misc-games-autoloads mine-autoloads mh-e-autoloads
mew-autoloads mailcrypt-autoloads mail-lib-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads hm--html-menus-autoloads
gnus-autoloads gnats-autoloads games-autoloads fsf-compat-autoloads
frame-icon-autoloads forms-autoloads footnote-autoloads eudc-autoloads
eterm-autoloads eshell-autoloads emerge-autoloads elib-autoloads
eieio-autoloads efs-autoloads edt-autoloads edit-utils-autoloads
ediff-autoloads edebug-autoloads dired-autoloads debug-autoloads
crisp-autoloads cookie-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads src-autoloads loadhist auto-show
fontl-hooks widgets-gtk dialog-gtk gtk-file-dialog gtk-password-dialog
gtk-iso8859-1 x-iso8859-1 gdk gtk-ffi gutter-items menubar-items x-menubar
mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page buff-menu
lib-complete help-nomule cus-file derived frame text-props obsolete cus-start
custom widget cl-extra mini-cl cl cl-19 packages backquote very-early-lisp
gtk-scrollbars gtk-menubars gtk-ui gtk-dialogs gtk tty-frames tty toolbar
esd-sound native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar berkeley-db md5 xemacs
gutter tiff png gif jpeg xface xpm xbm lisp-float-type linux dialog devices
window-system base64)
Recent keystrokes:
-----------------
SPC M-BS M-BS i s SPC d i f M-BS M-BS d i f f e r e
BS s M-BS f o r SPC BS M-BS o f SPC M-( g e t - c u
s t o m - f r a m e - C-g C-P C-f C-f C-f C-f C-f C-f
C-left C-left C-s C-w C-w C-w C-w C-s C-s C-s C-s C-s
C-s C-a C-N C-u C-SPC C-a C-p C-p C-p C-p C-p C-p C-f
C-f C-f C-f C-f C-f C-f M-x r e p o r t - x e m TAB
RET
Recent messages (most recent first):
-----------------------------------
Loading mail-abbrevs...done
Loading mail-abbrevs...
Quit
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
(type gtk class color background light)
(type gtk class color background dark)
Quit
(type gtk class color background light)
(type gtk class color background light)
(type gtk class color background dark)
(type gtk class color background light)
(type gtk class color background light)
Quit
(light)
(light)
nil
#<gtk-frame "emacs" 0x27fb>
nil