🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98692

problem with texinfo-format-buffer

#98692
From: david carlton
Date: Sat, 09 Mar 1991 07:44
49 lines
2192 bytes
(apologies if you see this twice.  i haven't seen it here yet, and i
think that it was lost when the mail at prep got lost a day or two
ago, but our news server is sufficiently flaky that it's hard to be
sure.)

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 be better for texinfo.tex to define \asis by

\def\asis#1{{\rm #1}}

instead of

\def\asis#1{#1}

?  Sometimes i want to protect some text from the effect of a
surrounding command, and using asis would seem to be the cleanest way
to accomplish that.

(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: <9103090744.AA02066@husc8.harvard.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,1d83e7599a9e6cc
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-09 15:51:14 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: carlton@HUSC8.HARVARD.EDU (david carlton)
Newsgroups: gnu.emacs.bug
Subject: problem with texinfo-format-buffer
Message-ID: <9103090744.AA02066@husc8.harvard.edu>
Date: 9 Mar 91 07:44:29 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 49
Approved: bug-gnu-emacs@prep.ai.mit.edu