Sample Header Ad - 728x90

Emacs mode for man pages

7 votes
1 answer
2019 views
I'm translating man pages, and have run in to a few problems with Emacs. 1. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if available.) 2. In the Emacs man mode, you can use **N** or **P** to jump forward or backward according to headers (in roff, they look like this: .SH). But, this doesn't work if the header includes one (or more) of the three special Swedish characters: Å, Ä, and Ö. It doesn't matter if I escape them (like this \(:A). (But they are correctly displayed.) 3. To view a work in project, I use for example M-x man RET ./ls.1 (that is, the absolute path). This is great, because it is the same man mode as for viewing "real" manpages (those in /usr/share/man). Only, when I do some changes in the document, how do I refresh the manpage? revert-buffer says the buffer is not associated with a file (not true, but OK, I get it); M-x load-file RET seems to have lost track of the file; ... Ideas? By the way, translating is a lot of fun! **EDIT:** (see the first comment) ![Table](https://i.sstatic.net/4pVfV.png)
Asked by Emanuel Berg (7101 rep)
Aug 8, 2012, 09:35 PM
Last activity: Jan 7, 2019, 10:10 AM