Thread
:
Announcing port of emacs for maemo
View Single Post
Ulysses
2008-02-08 , 09:18
Posts: 85 | Thanked: 29 times | Joined on Jan 2008
#
25
The following tip will be compiled on the homepage of the project.
Many GNU applications store their documentation in /usr/share/info. They are called info files and are gzipped. However, when you install an application in maemo with Application Manager, a post-install script will delete all files found in /usr/share/info. The rationale is to save space, but that's not necessarily what you want, especially if you want to use info functionality (Meta-x info) in the emacs port that you just installed.
The solution is easy, edit the post-install script to skip /usr/share/info when doing its cleanup. (I don't have the name of the script in memory, anyone cares to refresh it? Thanks.)
Ideally, you will do this before you install emacs, but if you haven't, you don't have to de-install and re-install, just copy the info files you're interested in from a desktop computer to /usr/share/info on the device.
Ok, now you're in emacs and you press Meta-X info, and you see a list of info books you'd like to browse, you press on one, say Coreutils, and what you get is:
Opening input file: error uncompressing coreutils.info.gz, /usr/share/info/core\
utils.info.gz
What happens is that the gzip that ships with busybox doesn't support a switch that emacs uses when it tries to decompress the info files. Solution? Install the expected GNU gzip on your device (I will ready the package soon), and put it in your PATH before anything else in your .ashrc or your .profile, like this:
export PATH=/usr/bin/gzip:$PATH
When you now start emacs in the terminal, and browse the info files, it will use the gzip that it needs.
Hope this helps.
Ulysses
Quote & Reply
|
Ulysses
View Public Profile
Send a private message to Ulysses
Find all posts by Ulysses