🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87589

Bug in texinfo.tex with Emacs version 19.27

#87589
From: Louis H. Howell
Date: Thu, 15 Sep 1994 17:39
27 lines
1537 bytes
In GNU Emacs 19.22.1 of Mon Dec  6 1993 on bigbird.llnl.gov (berkeley-unix)

If you use a @deftypefn with an empty return type, the printed
version contains an extra space at the beginning of the line where
the type would be.  An example from C++ is

@deftypefn { Constructor } {} RunStats (const char* @var{name}, int @var{level} = 0)
@end deftypefn

(We know you have other definition commands for object-oriented programs,
but we didn't like having the class name stuck into every function
declaration so we didn't use them.  Also, these don't have type variants.)

The offending line in texinfo.tex is in the definition of \deftypefnheaderx:

\defname {\code{#2} #3}{#1}%

To patch, we replaced this with

\def\foo##1##2$$${\ifx##1\relax\else\code{##1##2} \fi}
\defname {\foo#2\relax$$$#3}{#1}%

which tests for an empty argument.

Louis Howell
nazgul@llnl.gov
Technical Details
Message-ID: <9409151735.AA25039@grover.llnl.gov>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!grover.llnl.gov!nazgul

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,a07b6a59794f2592,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-15 17:54:20 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!grover.llnl.gov!nazgul
From: nazgul@grover.llnl.gov (Louis H. Howell)
Newsgroups: gnu.emacs.bug
Subject: Bug in texinfo.tex with Emacs version 19.27
Date: 15 Sep 1994 13:39:11 -0400
Organization: GNUs Not Usenet
Lines: 27
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409151735.AA25039@grover.llnl.gov>