Xref: utzoo gnu.emacs:1127 comp.emacs:6337 comp.text:4243 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!vsi1!octel!mike From: mike@octel.UUCP (Michael D. Crawford) Newsgroups: gnu.emacs,comp.emacs,comp.text Subject: texi2roff for elisp manual Keywords: texi2roff emacs lisp texinfo Message-ID: <23@octel.UUCP> Date: 23 Jun 89 19:41:50 GMT Distribution: usa Organization: Octel Communications Corporation Lines: 98 The emacs programmer's manual has some extra macros in it. Is there a new version of texi2roff to support them? I don't think there is, so I attempting to add them to your table. My additions cause some trouble. Here is the input file: @example (progn (print 'foo) (print 'bar)) @arrow foo @arrow bar @Arrow bar @end example here is what texinfo-format-buffer produces: (progn (print 'foo) (print 'bar)) -> foo -> bar => bar @arrow and @Arrow are not yet defined. Texi2roff's stdout: .ND .PP .DS .ft CW (progn (print 'foo) (print 'bar)) foo bar bar .DE .ft R ... and stderr: bar.tex line 4 : unrecognized Texinfo command @arrow bar.tex line 5 : unrecognized Texinfo command @arrow bar.tex line 6 : unrecognized Texinfo command @Arrow Now I add table entries for @arrow and @Arrow: *** tablems.h Fri Jun 23 12:18:24 1989 --- tablems.h-dist Thu Jun 22 17:36:02 1989 *************** *** 35,47 **** "@.", "", "\\&.", "", ESCAPED, "@:", "", "", "", ESCAPED, "@@", "", "@", "", ESCAPED, - "@Arrow", "", "=>", "", INPARA, "@TeX{", "}", "TeX", "", INPARA, "@appendix", "\n", "\n.bp\n.SH\n", "\n.br\n", HEADING, "@appendixsec", "\n", "\n.SH\n", "\n.br\n", HEADING, "@appendixsubsec", "\n", "\n.SH\n", "\n.br\n", HEADING, "@appendixsubsubsec","\n", "\n.SH\n", "\n.br\n", HEADING, - "@arrow", "", "->", "", INPARA, "@asis", "\n", "", "", PARAGRAPH, "@asis{", "}", "", "", INPARA, "@br", "\n", "\n.br\n.sp\n", "", PARAGRAPH, --- 35,45 ---- (I think INPARA is the right thing to use here). Now we get stderr: bar.tex line 7 : probably @end for unrecognized Texinfo cmd @example and stdout: .ND .PP .DS .ft CW (progn (print 'foo) (print 'bar)) -> foo -> bar => bar I am not sure I understand the logic of your program, but I believe that when an @end-able token starts, it is supposed to see the argument to @end and throw it away. Instead, it does not recognize it. If I can get it working right I will post diff's to the net. I should be able to fix the -me table as well. I do not have the -ms macros. The new macros needed are: @Arrow, @arrow, @defcmd, @defconst, @defmac, @defopt, and @defun Many thanks, -- Michael David Crawford Consulting for: Oddball Enterprises Octel Communications Corp 694 Nobel Drive 890 Tasman Drive Santa Cruz, CA 95060 Milpitas CA 95035 {pyramid!vsi1,aeras,uunet}!octel!mike CI$ 72377,623