Article View: news.software.nntp
Article #76Re: gnews 1.9 =MANUAL: texinfo-format-buffer chokes on @l command
From: Matthew P Wiener
Date: Fri, 26 Aug 1988 23:19
Date: Fri, 26 Aug 1988 23:19
37 lines
2274 bytes
2274 bytes
>[@l not handled by texinfo]
From the ==README:
|To set up a manual, on-line or printed, mostly follow the directions in
|the `texinfo' node of the Emacs info tree. Change the second line of
|the manual to suit yourself. There are two minor bugs in texinfo. To
|get around them, evaluate the following two expressions after loading
|texinfmt.el but before running M-x texinfo-format-buffer:
|
| (put 'l 'texinfo-format 'texinfo-format-code)
|
| (defun texinfo-index (indexvar)
| (set indexvar
| (cons (list (texinfo-parse-arg-discard)
| texinfo-last-node)
| (symbol-value indexvar)))
| (save-excursion
| (goto-char texinfo-command-start)
| (if (looking-at "^[ \t]*$")
| (delete-region (match-beginning 0) (1+ (match-end 0))))))
After the fact correction: there is only the one `bug'. The second more
complicated hackery is how I got around my own misreading of the Texinfo
manual, and is gone in the later drafts. (And thanks to RMS himself for
steering me clear on this one. I guess there just aren't that many folks
who've used Texinfo.)
(The purpose of the @l is to generate that neat sans-serif font for Lisp
objects in TeX. The above put code makes @l{gnews-is-great} come out as
`gnews-is-great' in the Info manual.)
In Gnews 2.0 (progress is very slow this time around), the central bulk
of TeX and Info generation will be handled by single Emacs commands, btw.
ucbvax!garnet!weemba Matthew P Wiener/Brahms Gang/Berkeley CA 94720
Technical Details
Message-ID:
<13640@agate.BERKELEY.EDU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!garnet!weembaReferences:
<656@mailrus.cc.umich.edu>Show Full Headers
Complete Article Headers
Message-ID: <13640@agate.BERKELEY.EDU> Subject: Re: gnews 1.9 =MANUAL: texinfo-format-buffer chokes on @l command Date: Fri, 26 Aug 1988 23:19:29 +0000 From: weemba@garnet.berkeley.edu (Matthew P Wiener) References: <656@mailrus.cc.umich.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!garnet!weemba Newsgroups: news.software.nntp,gnu.emacs Sender: usenet@agate.BERKELEY.EDU Reply-To: weemba@garnet.berkeley.edu (Matthew P Wiener) Followup-To: gnu.emacs Organization: Brahms Gang Posting Central Lines: 36