I'm translating man pages, and have run in to a few problems with Emacs.
How do you specify language? (With man, it looks like this
man -Lsv shutdown
for the Swedish "sv" subdirectory, if available.)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.)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)
M-x woman
forls
,M-x woman-find-file
forls.1
s absolute path); it has awoman-locale
variable that might help with 1.. (As far as I could find out it fails to solve 2. and 3.; has some more features, though.)(setq Man-switches "-Lsv")