Here's the locale stuff that I much prefer using:
hattons@ljosalfr:~/
Sat Mar 15 12:53:34:> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
When I start XEmacs I get a warning like so:
hattons@ljosalfr:~/
Sat Mar 15 12:57:34:> xemacs -vanilla
Warning: Missing charsets in String to FontSet conversion
If I unset LANG, my locale looks like this:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Locale listing
hattons@ljosalfr:/download/org/jboss/
Sat Mar 15 13:03:32:> unset LANG
hattons@ljosalfr:/download/org/jboss/
Sat Mar 15 13:03:49:> locale
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=POSIX
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
;; End locale listing
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
And I don't see the warning message when I start XEmacs.
As reported and confirmed months ago, there is a problem running dired
with my locale set to UTF-8.
Now to move on to the font issues. First what I expect:
When I run the SuSE built XEmacs with the UTF-8 locale, I see the same
warning, but I haven't noticed any problems which clearly result from
the condition. Here's the `M-x describe-installation' from SuSE's build:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; `M-x describe-installation' SuSE's distribution of XEmacs
uname -a: Linux amdsim9 2.4.19 #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
./configure 'i386-suse-linux' '--with-gcc' '--dynamic'
'--rel-alloc'
'--debug=no' '--error-checking=none' '--cflags=-O2 -march=i586
-mcpu=i686
-fmessage-length=0 -Wall -Wno-switch -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0' '--ldflags=-s -znocombreloc' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/X11R6/bin'
'--datadir=/usr/share'
'--archlibdir=/usr/lib/xemacs/21.4.8/i386-suse-linux'
'--docdir=/usr/lib/xemacs/21.4.8/i386-suse-linux'
'--lispdir=/usr/share/xemacs/21.4.8/lisp'
'--pkgdir=/usr/share/xemacs/21.4.8/lisp'
'--etcdir=/usr/share/xemacs/21.4.8/etc' '--statedir=/var/lib/xemacs'
'--moduledir=/usr/lib/xemacs/21.4.8/i386-suse-linux/modules'
'--infodir=/usr/share/xemacs/info' '--mandir=/usr/share/man/man1'
'--with-sound=native' '--with-database=gnudbm,berkdb'
'--with-ncurses'
'--with-tty=yes' '--with-gpm' '--with-site-lisp'
'--with-xpm' '--with-gif'
'--with-tiff' '--with-jpeg' '--with-png' '--with-x'
'--with-athena=3d'
'--with-menubars=lucid' '--with-scrollbars=lucid'
'--with-dialogs=athena'
'--with-widgets=athena' '--x-includes=/usr/X11R6/include'
'--x-libraries=/usr/X11R6/lib' '--with-mule' '--with-xim=xlib'
'--with-xfs'
'--with-clash-detection' '--with-ldap' '--with-pop'
XEmacs 21.4.8 "Honest Recruiter" configured for `i386-suse-linux'.
Compilation / Installation:
Source code location: /usr/src/packages/BUILD/xemacs-21.4.8
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Wno-switch -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0
Relocating allocator for buffers: yes
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Linking with `-znocombreloc'.
- Consider configuring with --pdump.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
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).
Databases:
Compiling in support for Berkeley database.
Compiling in support for GNU DBM.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
- Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Compiling in support for the WNN input method on Mule.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
;;End `M-x describe-installation' SuSE's distribution of XEmacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
When I run this build, I can go to Options->Font and see six available
sub-menus listing available fonts. I can select most of the fonts
listed. A few are grayed out, but that doesn't bother me. When I do
select the font, the text displayed in the active buffer changes
accordingly. Furthermore, I can adjust the size of the displayed font
by using Options->Font Size.
_In_contrast_, using the current build from CVS - described shortly - I
am not able to correctly adjust the selected font, nor the size of the
font in use. Furthermore, I do not have the same number of fonts
listed in the Options->Font menue. There are only two sub-menus
available. If I select on of the available fonts, the font displayed
in the buffer tab and mode line respond to the change. The text
displayed in the active buffer, however, does not respond. In the
echo area is the following message:
"Font -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*"
This seems inconsistent with the font I selected which in this case
was Ledfixed.
The contents of the message buffer after selecting "Lucidatypewriter" are as
follows:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Message buffer
Recent minibuffer messages (most recent first):
Making completion list...
Font -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
Loading cus-face...done
Loading cus-face...
Changing font of `highlight'...
Changing font of `green'...
Changing font of `widget'...
Changing font of `italic'...
Changing font of `pointer'...
Changing font of `modeline-mousable'...
Changing font of `primary-selection'...
Changing font of `bold'...
Changing font of `gui-button-face'...
Changing font of `modeline'...
Changing font of `zmacs-region'...
Changing font of `yellow'...
Changing font of `red'...
Changing font of `underline'...
Changing font of `left-margin'...
Changing font of `toolbar'...
Changing font of `secondary-selection'...
Changing font of `text-cursor'...
Changing font of `right-margin'...
Changing font of `isearch'...
Changing font of `list-mode-item-selected'...
Changing font of `border-glyph'...
Changing font of `modeline-mousable-minor-mode'...
Changing font of `gui-element'...
Changing font of `isearch-secondary'...
Changing font of `blue'...
Changing font of `buffers-tab'...
Changing font of `bold-italic'...
Changing font of `modeline-buffer-id'...
Changing font of `vertical-divider'...
Getting list of fonts from server... done.
Loading alist...done
Loading alist...
Loading x-font-menu...done
Loading x-font-menu...
Getting list of fonts from server...
Loading font-menu...done
Loading font-menu...
Loading edit-faces...done
Loading edit-faces...
;; End Message buffer
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Also worthy of of note is the fact that the `M-x edit-faces' buffer
shows the following faces _have_ been changed by the menu selection:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Faces that accepted the menu choices:
bold #000000 #e0e0e0
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Bold text.)
bold-italic #000000 #e0e0e0
-*-Lucidatypewriter-Medium-*-*-*-*-120-*-*-*-*-*-*
(Bold-italic text.)
buffers-tab #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face for displaying the buffers tab.)
custom-button-face #000000 #e0e0e0
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face used for buttons in customization buffers.)
custom-variable-button-face #000000 #e0e0e0
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face used for pushable variable tags.)
font-lock-warning-face Red #e0e0e0
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Font Lock mode face used to highlight warnings.)
gui-element #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(gui element face)
italic #000000 #e0e0e0
-*-Lucidatypewriter-Medium-*-*-*-*-120-*-*-*-*-*-*
(Italic text.)
modeline-buffer-id blue4 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face for the buffer ID string in the modeline.)
modeline-mousable firebrick #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face for mousable portions of the modeline.)
modeline-mousable-minor-mode green4 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face for mousable minor-mode strings in the modeline.)
widget #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(widget face)
widget-button-face #000000 #e0e0e0
-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Face used for widget buttons.)
;;End Faces that accepted the menu choices:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Here's the stuff from `M-x describe-installation':
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; M-x describe-installation
uname -a: Linux ljosalfr 2.4.19-4GB #1 Fri Sep 13 13:14:56 UTC 2002 i686
unknown
./configure '--pdump' '--debug' '--error-checking=all'
'--with-pop'
'--with-clash-detection' '--with-mule' '--with-tty'
'--with-athena=3d'
'--with-scrollbars=lucid' '--with-dialogs=athena'
'--with-widgets=athena'
'--prefix=/home/hattons/local/xemacs'
'--site-libraries=/usr/X11/lib/Xaw3d'
'--use-kkcc' '--extra-verbose'
XEmacs 21.5-b11 "cabbage" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location:
/download/org/xemacs/xemacs-r21-5-latest-beta
Installation prefix: /home/hattons/local/xemacs
Additional libraries: /usr/X11/lib/Xaw3d
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wsign-compare -Wundef -Wstrict-prototypes -Wpacked
-Wshadow -Wmissing-declarations -g -O3
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11/include
- X Windows libraries location: /usr/X11/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
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.
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 GNU DBM.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC algorithms.
Using the new portable dumper.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
;; End M-x describe-installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Now, as an alternative, I have discovered that adjusting the fonts
through `M-x edit-faces' does have and affect on the displayed fonts
for the current session. The steps I take to make this adjustment are
as follows:
`M-x edit-faces' RETURN
`button-2' on the font specifier string in the following line
bold #000000 #c3c3c3 -*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-*-*
(Bold text.)
The font specifier string is displayed in a minibuffer where I change
120 to 180, and hit RETURN.
Thereupon I am prompted with the following message:
"Make the same font change for other faces? (y or n)"
Selecting 'n' results in the change applying only to the currently
selected face. Selecting 'y' results in modifying the following:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Faces affected by selecting 'y'
bold #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(Bold text.)
buffers-tab #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(Face for displaying the buffers tab.)
gui-element #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(gui element face)
modeline-buffer-id blue4 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(Face for the buffer ID string in the modeline.)
modeline-mousable firebrick #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(Face for mousable portions of the modeline.)
modeline-mousable-minor-mode green4 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(Face for mousable minor-mode strings in the modeline.)
widget #000000 #c3c3c3
-*-Lucidatypewriter-Medium-R-*-*-*-180-*-*-*-*-*-*
(widget face)
;;End Faces affected by selecting 'y'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Note these are all faces affected by the menu selection and do not
include the italic faces among that group.
Note also that this inheritence does not happen - ie, I am not
prompted for a 'y' or 'n' - if I have not previously modified the
faces using the Options->fonts menu.
Next I select the font specification string in the following face and
adjust 120 to 180:
bold-italic #000000 #c3c3c3
-*-Lucidatypewriter-Medium-*-*-*-*-120-*-*-*-*-*-*
(Bold-italic text.)
whereupon I am promted for 'y' or 'n'. Selecting 'y' results in
modifying the italic faces included in the group affected by the menu
choice. Like the regular faces in this group, the italic facse do not
inherit if they have not previously been modified through the menu.
In the case of the remaining faces, not affected by the menu, these
can be modified in size through the `M-x edit-facse' but do not
respond to an attempt to modify the font family. I only need modify
the "default #000000 #c3c3c3
-*-courier-medium-r-*-*-*-180-*-*-*-*-iso8859-* (default face)" in
order to have all the other faces inherit the change. I am not promted
for confirmation in this case.
--
STH
Hatton's Law: There is only One inviolable Law.