View previous topic :: View next topic |
Author |
Message |
gaspardb n00b
Joined: 16 Mar 2006 Posts: 1
|
Posted: Thu Mar 16, 2006 1:18 pm Post subject: Emacs installation problem |
|
|
I've successfully got Gentoo installed and working for the most part. I did an 'emerge emacs' and then when I bring it up the text in the buffer has been replaced by little squares. Are there other packages I need?? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Mar 16, 2006 6:05 pm Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming.
postinstallation problem _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Fri Mar 17, 2006 2:36 pm Post subject: |
|
|
I have seen this problem twice in the past six months with an emacs that had been fine. I do not know what causes it, nor point to one thing that fixed it.
Google had heard of it, but did not have a cause or obvious fix. I am surprised you have it on a fresh install.
In the first case:
re-emerged emacs, Xaw3d (which then required a revdep-rebuild), xorg-x11 with bitmap font support, freefonts, sharefonts, and emacs with lesstiff support.
Emacs was still having the rectangles. Two days later, after a reboot and an emerge -u world, emacs was back to normal.
In the second case:
re-emerged emacs, fontconfig, (several other font related packages), and xorg-x11 without font-server support.
And emacs was back to normal.
I have not seen this problem with xemacs. |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sat Mar 18, 2006 8:40 am Post subject: |
|
|
Could you post the results of 'emerge -pv emacs' ? It could be that emacs defaulted to displaying unicode on a non-unicode session, or that it's drawing font info from somewhere wrong. |
|
Back to top |
|
|
whitebear n00b
Joined: 19 Mar 2006 Posts: 12 Location: Japan
|
Posted: Sun Mar 19, 2006 9:00 am Post subject: |
|
|
I have the same problem with emacs on a fresh install of gentoo. I used the emacs, gnome and the kernel from the Live CD. I have tried emerging emacs, but it did not help. Emerging the Gnome meta package with the emacs use flag set. However the compilation of xorg-x11 failed so I do not know what the result of that would be yet.
My results of
emerge -pv emacs
Quote: | [ebuild R ] app-editors/emacs-21.4-r1 +X -Xaw3d +gnome -leim -lesstif +motif +nls -nosendmail 0 kB |
|
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Mar 19, 2006 10:07 pm Post subject: |
|
|
Have you tried emerging freetype? |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Mar 20, 2006 3:06 am Post subject: |
|
|
Emacs relies on your X server configuration for finding fonts. Make sure the "Files" section of your xorg.conf is correct. Here's mine for reference:
Code: | Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/ms"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/artwiz-fonts"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
EndSection |
|
|
Back to top |
|
|
whitebear n00b
Joined: 19 Mar 2006 Posts: 12 Location: Japan
|
Posted: Mon Mar 20, 2006 2:19 pm Post subject: |
|
|
I notice three lines that allucid's xorg.conf has that mine does not. I am not sure which might be critical. I tried adding the RgbPath and ModulePath lines to mine but this resulted in X failing to load and complaining that the modules do not exist. (no surprise). I also notice that there are a couple of fonts paths I do not have, Type1 and ms. What packages do I need to emerge get these fonts.
I also tried emerging freetype as technomage1 suggested. This did not help.
here are my font paths
Quote: |
Section "Files"
FontPath "/usr/share/fonts/util"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/local/share/fonts"
FontPath "/usr/share/fonts"
FontPath "/usr/share/fonts/default"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/jisx0213"
FontPath "/usr/share/fonts/shinonome"
FontPath "/usr/share/fonts/baekmuk-fonts"
FontPath "/usr/share/fonts/kacst-fonts"
FontPath "/usr/share/fonts/sgi-fonts"
FontPath "/usr/share/fonts/unfonts"
FontPath "/usr/share/fonts/default/ghostscript"
FontPath "/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection
|
Thanks for your help |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Mar 20, 2006 3:54 pm Post subject: |
|
|
The modules line is, I believe, for xorg 7 (modular xorg). RGB path is pretty standard, but if you were missing something emacs would complain about colors. Not sure what Type1 is from. My 'ms' dir has fonts copied over from windows, nothing important. |
|
Back to top |
|
|
whitebear n00b
Joined: 19 Mar 2006 Posts: 12 Location: Japan
|
Posted: Wed Mar 22, 2006 2:03 am Post subject: |
|
|
I have sucessfully updated xorg with the Emacs use flag. I have installed freefonts and sharefonts. The bitmap-fonts use flag which was mentioned is set by default. I have remerged Emacs
I have restarted X. The problem persists. I happened to run Emacs from the command line and got the following warning.
Quote: |
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
|
Any Ideas?
Thanks for you help |
|
Back to top |
|
|
whitebear n00b
Joined: 19 Mar 2006 Posts: 12 Location: Japan
|
Posted: Wed Mar 22, 2006 1:47 pm Post subject: |
|
|
Solved!
The font paths for the bitmap fonts are needed in the files section of xorg.conf
Code: |
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
|
I found this page on configuring fonts in xorg helpful
[url]
http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts
[/url]
Thanks allucid for putting me on the right track |
|
Back to top |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Fri Jun 23, 2006 12:02 am Post subject: |
|
|
In addition to the fixed mentioned, there is something else that can cause this problem... I'm sure there are many ways to screw it up. The base emacs font can be user specified in the ~/.Xdefaults file. For example, this is the current line on my machine.
emacs*font: -adobe-courier-bold-*-*-*-24-*-*-*-*-*-*-*
One must log out and log back in for this to take effect. I had it specified incorrectly and couldn't figure out what to do. After trying many solutions including several long emerges, I realized the error of my ways, fixed the line, and logged out and back in. Mixed great joy (it is working) and great sadness (for the lost hours). |
|
Back to top |
|
|
|