Article View: gnu.emacs.bug
Article #98678problem with texinfo-format-buffer
From: david carlton
Date: Thu, 07 Mar 1991 21:26
Date: Thu, 07 Mar 1991 21:26
44 lines
1918 bytes
1918 bytes
When formatting a texinfo file with texinfo-format-buffer, I have run
into problems where i have a table emphasized by @var which contains
@dots{} as items, such as
@table @var
@item <tag>
@item PARENT
Or 1 if there isn't one.
@item LENGTH
Number of entries.
@item OBJ1
@item @dots{}
@item OBJLENGTH
@end table
When i am formatting this, i get an error message stating that @DOTS
isn't recognized, presumably because @var converts the @dots{} to
@DOTS{} which is then an invalid command. I've fixed this problem by
adding the line
(put 'DOTS 'texinfo-format 'texinfo-format-dots)
to texinfmt.el, but that's hardy an optimal solution. Mightn't it be
a better idea to have @var, etc. be a bit smarter and not try to
convert commands and arguments to commands?
Also, wouldn't it make more sense in texinfo.tex to have
\def\asis#1{{\rm #1}}
instead of
\def\asis#1{#1}
? Sometimes I want to protect some text from a surrounding @var or
whatever, and having @asis take care of that would seem to me to be
the sensible way of doing things.
(By the way, texinfo.tex doesn't have any such problems with nested
commands, or at least doesn't have this problem. And i am using the
versions of these packages that came with emacs-18.56.)
david carlton
carlton@husc10.harvard.edu
Technical Details
Message-ID:
<9103072126.AA22301@husc10.harvard.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,1d83e7599a9e6cc,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-03-07 13:26:24 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage From: carlton@HUSC10.HARVARD.EDU (david carlton) Newsgroups: gnu.emacs.bug Subject: problem with texinfo-format-buffer Message-ID: <9103072126.AA22301@husc10.harvard.edu> Date: 7 Mar 91 21:26:24 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 44 Approved: bug-gnu-emacs@prep.ai.mit.edu