From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.comp.tex.texinfo.bugs,gmane.emacs.devel Subject: Re: Double hyphens in variable names. Date: Thu, 02 Oct 2003 10:43:54 +0200 Organization: CWI, Amsterdam Sender: bug-texinfo-bounces+gnu-bug-texinfo2=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065084401 16833 80.91.224.253 (2 Oct 2003 08:46:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2003 08:46:41 +0000 (UTC) Cc: bug-texinfo@gnu.org, emacs-devel@gnu.org Original-X-From: bug-texinfo-bounces+gnu-bug-texinfo2=m.gmane.org@gnu.org Thu Oct 02 10:46:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4z6d-0006kv-00 for ; Thu, 02 Oct 2003 10:46:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4z60-00022J-R0 for gnu-bug-texinfo2@m.gmane.org; Thu, 02 Oct 2003 04:46:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A4z4e-0001do-T8 for bug-texinfo@gnu.org; Thu, 02 Oct 2003 04:44:36 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A4z45-0001RE-1e for bug-texinfo@gnu.org; Thu, 02 Oct 2003 04:44:32 -0400 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4z43-0001Qe-IX; Thu, 02 Oct 2003 04:43:59 -0400 Original-Received: from occarina.pna.cwi.nl (occarina.pna.cwi.nl [192.16.184.200]) by hera.cwi.nl with ESMTP id h928hteP011861 for ; Thu, 2 Oct 2003 10:43:55 +0200 (MEST) Original-Received: (from lute@localhost) by occarina.pna.cwi.nl (8.12.8/8.12.5) id h928hsl3032467; Thu, 2 Oct 2003 10:43:54 +0200 X-Authentication-Warning: occarina.pna.cwi.nl: lute set sender to Lute.Kamstra@cwi.nl using -f Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "02 Oct 2003 07:55:08 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Original-Lines: 53 X-BeenThere: bug-texinfo@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for the GNU Texinfo documentation system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-texinfo-bounces+gnu-bug-texinfo2=m.gmane.org@gnu.org Xref: main.gmane.org gmane.comp.tex.texinfo.bugs:1198 gmane.emacs.devel:16860 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16860 Eli Zaretskii writes: >> I'm trying to document the variable `imenu--index-alist' in the Lisp >> Reference Manual. When I write this in the Texinfo source file: >> >> @defvar imenu--index-alist >> >> Texinfo produces an info file that has this: >> >> - Variable: imenu-index-alist >> >> Note that the double hyphen is reduced to a single hyphen. Am I >> missing something, or is this a bug in Texinfo? > > Not a bug, but a feature. See the node "Conventions" in the Texinfo > manual. In this case, you want to say > > @defvar imenu---index-alist > > (three dashes in a row). I see; now it shows up right in the info file: - Variable: imenu--index-alist However, it generates this index entry: * imenu---index-alist: Imenu. Also, the dvi file shows a long dash as apposed to the desired two hyphens. Note that when I do: @defvar @code{imenu--index-alist} the double hyphens are handled properly in the sense that it shows up in info as: - Variable: `imenu--index-alist' and in the info file's index as: * imenu--index-alist: Imenu. The dvi file shows two hyphens as well. The only problem, of course, is that the variable name is surrounded by quotes in the info file and is shown with a different font in the dvi file. I think that Texinfo should be changed so that the @defvr command (I assume that @defvar is defined in terms of @defvr) handles hyphens like @code. Lute.