Subject: Re: bug#11461: Making cc-mode.pdf fails

From: Alan Mackenzie <[email-masked]>
Date: Sun, 13 May 2012 20:52:37 +0000

Hi, Glenn.

On Sat, May 12, 2012 at 12:34:49PM -0400, Glenn Morris wrote:
> Package: emacs,cc-mode
> Version: 24.0.96

> Trying to make cc-mode.pdf fails.

> cd doc/misc
> make cc-mode.pdf

>   This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Debian)
>   [...]
>   doc/misc/cc-mode.texi:705: Argument of @emacsman has an extra }.
>   <inserted text> 
>                   @par 
>   <to be read again> 
>                      }
>   @addtokens ...f @addtoks {@noexpand #1={@the #1#2}
>                                                     }@addtoks 
>   @skipspaces ...@else @addtokens {@filename }{@PP }
>                                                     @advance @filenamelength b...
>   <argument>  @emacsman 
>                         {}
>   @getfilename ...ngth =0@expandafter @skipspaces #1
>                                                     |@relax 
>   ...
>   l.705 @emacsmantitle{}}
>                          .
>   ? 

The relevant bit of source code from cc-mode.texi looks like this:

    you want only spaces.  @xref{Just Spaces,,, @emacsman{},
    @emacsmantitle{}}.                                <============ L705

The "extra" } closes off the @xref.  This looks like a bug in pdfTex.  It
seems to have got horribly confused, perhaps because the @xref is split
over two lines and contains macros.

-- 
Alan Mackenzie (Nuremberg, Germany).