bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ampersand issue with texi2dvi


From: Eli Zaretskii
Subject: Re: ampersand issue with texi2dvi
Date: Thu, 06 Sep 2018 21:52:13 +0300

> From: Gavin Smith <address@hidden>
> Date: Wed, 5 Sep 2018 20:30:39 +0100
> Cc: address@hidden
> 
> It is a bug. I simplified the input to
> 
> @defop {Constructor} a b (@code{const std::vector<int>&})
> @end defop
> 
> to get an error. It is due to some code in texinfo.tex to change
> the font used for parentheses if an & is seen in the line - something to 
> do with documentation of functions in Lisp. (See \ifampseen conditional 
> in texinfo.tex.) I haven't worked out what the point of this was yet. If 
> there is no point, it would be easy to fix by ripping the code out.

The point is to support optional arguments to Lisp functions, like
this:

  @defun set-input-mode interrupt flow meta &optional quit-char

and also like this:

  @defun notifications-notify &rest params

You can see such examples all over the Emacs Lisp Reference manual
that comes with Emacs.

If we can distinguish & followed by a letter from everything else,
this problem can be fixed, I think.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]