[opensuse] OpenSUSE emacs broken out of the box
Hi, I've upgraded from SuSE 10.1 to OpenSuse 10.2 and have everything working apart from the X11 version of emacs. Attempting to run it I get: 18:36 >emacs -q Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct The whole emacs display is then full of boxes instead of the usual text. If I run with my .emacs it's usually enough to segfault emacs. I did a bit of digging with Google and found the following message: http://lists.opensuse.org/opensuse-autoinstall/2006-02/msg00071.html But was unable to glean anything from it. I have pretty much all the fonts installed and everything else seems to be displaying fine. Grepping over /etc/ and /usr/share didn't seem to show anything setup to refer to this font descriptor. A strings on the emacs binary seems to show this is a default config. I did find some mentiones of .Xdefaults and .Xresources on the net but nothing that seemed to make any difference. Besides shoudn't any config magic for emacs be part of the emacs-x11 package so it runs out of the box? As suggested looking at the referenced email I tried looking at how many fonts where installed:
xlsfonts | wc -l 657
However greping for helv or cour didn't show any up. Can anybody offer any light? Is it just me and some artifact of the upgrade or is emacs broken? -- Alex, homepage: http://www.bennee.com/~alex/ The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." -- Isaac Asimov -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Alex Bennee <kernel-hacker@bennee.com> [2007-02-05 19:53]:
I've upgraded from SuSE 10.1 to OpenSuse 10.2 and have everything working apart from the X11 version of emacs. Attempting to run it I get:
18:36 >emacs -q Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
Please file a bug report if there's not already one. (I don't use Emacs, so I don't know.) Regards, Bernhard
On Monday 05 February 2007 20:14, Bernhard Walle wrote:
* Alex Bennee <kernel-hacker@bennee.com> [2007-02-05 19:53]:
I've upgraded from SuSE 10.1 to OpenSuse 10.2 and have everything working apart from the X11 version of emacs. Attempting to run it I get:
18:36 >emacs -q Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
Please file a bug report if there's not already one. (I don't use Emacs, so I don't know.)
Also on an upgrade from 10.1 (SLED10 actually, but I doubt if that's relevant), and I can't reproduce it. emacs -q works perfectly here. I suspect there is a dependency missing
Regards, Bernhard
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-05 at 20:14 +0100, Bernhard Walle wrote:
* Alex Bennee <kernel-hacker@bennee.com> [2007-02-05 19:53]:
I've upgraded from SuSE 10.1 to OpenSuse 10.2 and have everything working apart from the X11 version of emacs. Attempting to run it I get:
18:36 >emacs -q Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
Please file a bug report if there's not already one. (I don't use Emacs, so I don't know.)
15 minutes of faving about with getting logins and the bug database losing all my entered text after not recognising a keyword: Raised: https://bugzilla.novell.com/show_bug.cgi?id=242311 -- Alex, homepage: http://www.bennee.com/~alex/ Hindsight is an exact science. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 05 February 2007 19:53, Alex Bennee wrote:
xlsfonts | wc -l
657
I get 7588, including adobe-helvetica and ibm-courier. They should both be in the package xorg-x11-fonts, which I suspect should be installed by default -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-05 at 20:29 +0100, Anders Johansson wrote:
On Monday 05 February 2007 19:53, Alex Bennee wrote:
xlsfonts | wc -l
657
I get 7588, including adobe-helvetica and ibm-courier. They should both be in the package xorg-x11-fonts, which I suspect should be installed by default
Hmmm - I have pretty much all the font packages installed: okra:/etc/X11/xinit # rpm -qa | grep "font" xorg-x11-libfontenc-7.2-12 intlfonts-ttf-1.2.1-234 ghostscript-fonts-std-8.15.3-24 xorg-x11-fonts-core-7.2-14 fonttools-2.0b1-277 fontforge-20061014-15 fontconfig-devel-2.4.1-19 ghostscript-fonts-other-8.15.3-24 freefont-0.20060718-28 free-ttf-fonts-1.0-195 intlfonts-bdf-1.2.1-234 fonts-config-20061025-11 xorg-x11-libfontenc-devel-7.2-12 xorg-x11-fonts-devel-7.2-8 fontconfig-2.4.1-19 xorg-x11-fonts-7.2-14 bpg-fonts-0.20050518-36 But there is obviouosly a discrepancy. Although I fail to understand why everything else is rendering fine. Having said that I commented out most of the FontPath lines from my xorg.conf because X insisted it couldn't find them: FontPath "/usr/share/fonts/misc" # FontPath "/usr/X11R6/lib/X11/fonts/local" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/CID" # FontPath "/usr/X11R6/lib/X11/fonts/Speedo" # FontPath "/usr/X11R6/lib/X11/fonts/Type1" # FontPath "/usr/X11R6/lib/X11/fonts/truetype" # FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled" It didn't seem to affect the rendering of every other app I'm using (in lovely anti-aliased smooth glory). Could this be a difference between everything else rendering locally and emacs? I have had the lines uncommented though - but it didn't make any difference as X11 didn't see them anyway. -- Alex, homepage: http://www.bennee.com/~alex/ To the best of my recollection, Senator, I can't recall. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 05 February 2007 20:43, Alex Bennee wrote:
On Mon, 2007-02-05 at 20:29 +0100, Anders Johansson wrote:
On Monday 05 February 2007 19:53, Alex Bennee wrote:
xlsfonts | wc -l
657
I get 7588, including adobe-helvetica and ibm-courier. They should both be in the package xorg-x11-fonts, which I suspect should be installed by default
Hmmm - I have pretty much all the font packages installed:
Having said that I commented out most of the FontPath lines from my xorg.conf because X insisted it couldn't find them:
FontPath "/usr/share/fonts/misc" # FontPath "/usr/X11R6/lib/X11/fonts/local" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/CID" # FontPath "/usr/X11R6/lib/X11/fonts/Speedo" # FontPath "/usr/X11R6/lib/X11/fonts/Type1" # FontPath "/usr/X11R6/lib/X11/fonts/truetype" # FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
Aha, I think we have the problem here. Those are the old paths. The new paths should be FontPath "/usr/share/fonts/misc:unscaled" FontPath "/usr/share/fonts/local" FontPath "/usr/share/fonts/75dpi:unscaled" FontPath "/usr/share/fonts/100dpi:unscaled" FontPath "/usr/share/fonts/Type1" FontPath "/usr/share/fonts/URW" FontPath "/usr/share/fonts/Speedo" FontPath "/usr/share/fonts/PEX" FontPath "/usr/share/fonts/cyrillic" FontPath "/usr/share/fonts/latin2/misc:unscaled" FontPath "/usr/share/fonts/latin2/75dpi:unscaled" FontPath "/usr/share/fonts/latin2/100dpi:unscaled" FontPath "/usr/share/fonts/latin2/Type1" FontPath "/usr/share/fonts/latin7/75dpi:unscaled" FontPath "/usr/share/fonts/baekmuk:unscaled" FontPath "/usr/share/fonts/japanese:unscaled" FontPath "/usr/share/fonts/kwintv" FontPath "/usr/share/fonts/truetype" FontPath "/usr/share/fonts/uni:unscaled" FontPath "/usr/share/fonts/CID" FontPath "/usr/share/fonts/ucs/misc:unscaled" FontPath "/usr/share/fonts/ucs/75dpi:unscaled" FontPath "/usr/share/fonts/ucs/100dpi:unscaled" FontPath "/usr/share/fonts/hellas/misc:unscaled" FontPath "/usr/share/fonts/hellas/75dpi:unscaled" FontPath "/usr/share/fonts/hellas/100dpi:unscaled" FontPath "/usr/share/fonts/hellas/Type1" FontPath "/usr/share/fonts/misc/sgi:unscaled" FontPath "/usr/share/fonts/xtest" FontPath "/opt/kde3/share/fonts" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 05 February 2007 20:43, Alex Bennee wrote:
It didn't seem to affect the rendering of every other app I'm using (in lovely anti-aliased smooth glory). Could this be a difference between everything else rendering locally and emacs? I have had the lines uncommented though - but it didn't make any difference as X11 didn't see them anyway.
Incidentally, other apps don't care, because they don't use X fonts, they use client side font rendering -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-05 at 19:43 +0000, Alex Bennee wrote:
On Mon, 2007-02-05 at 20:29 +0100, Anders Johansson wrote:
On Monday 05 February 2007 19:53, Alex Bennee wrote:
xlsfonts | wc -l
657
I get 7588, including adobe-helvetica and ibm-courier. They should both be in the package xorg-x11-fonts, which I suspect should be installed by default
Hmmm - I have pretty much all the font packages installed:
okra:/etc/X11/xinit # rpm -qa | grep "font" xorg-x11-libfontenc-7.2-12 <snip> Having said that I commented out most of the FontPath lines from my xorg.conf because X insisted it couldn't find them:
FontPath "/usr/share/fonts/misc" # FontPath "/usr/X11R6/lib/X11/fonts/local" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi" # FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi" # FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" # FontPath "/usr/X11R6/lib/X11/fonts/CID" # FontPath "/usr/X11R6/lib/X11/fonts/Speedo" # FontPath "/usr/X11R6/lib/X11/fonts/Type1" # FontPath "/usr/X11R6/lib/X11/fonts/truetype" # FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
They where commented out because of the following warning from X: Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi:unscaled, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi:unscaled, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/truetype, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/uni:unscaled, removing from list! Could not init font path element /opt/kde3/share/fonts, removing from list! However adding them back in seems to have fixed emacs. The number of fonts listed by xlsfonts doesn't seem to have changed though... 19:48 alexjb@okra [~] >xlsfonts | wc -l 657 Hmm, so emacs is working now. But I am still confused :-( -- Alex, homepage: http://www.bennee.com/~alex/ When in panic, fear and doubt, Drink in barrels, eat, and shout. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Alex Bennee
-
Anders Johansson
-
Bernhard Walle