From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: TAKAHASHI Kaoru Newsgroups: gmane.emacs.bugs Subject: texinfo-format-separate-node makes duplicated footnote node Date: Fri, 22 Nov 2002 21:53:31 +0900 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <86d6oxpxys.wl@rave.kaoru.trans-nt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1037969559 21872 80.91.224.249 (22 Nov 2002 12:52:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2002 12:52:39 +0000 (UTC) Cc: kaoru@kaisei.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18FDIS-0005gb-00 for ; Fri, 22 Nov 2002 13:52:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18FDK6-0000xR-00; Fri, 22 Nov 2002 07:54:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18FDJY-0008PG-00 for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2002 07:53:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18FDJS-0008GE-00 for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2002 07:53:43 -0500 Original-Received: from n189126.ap.plala.or.jp ([219.165.189.126] helo=rave.kaoru.trans-nt.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 18FDJQ-000872-00 for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2002 07:53:37 -0500 Original-Received: from rave.kaoru.trans-nt.com (localhost [::1]) by rave.kaoru.trans-nt.com (Postfix) with ESMTP id 1C45623008; Fri, 22 Nov 2002 21:53:32 +0900 (JST) Original-To: bug-gnu-emacs@gnu.org User-Agent: Wanderlust/2.10.0 (Venus-pre2) SEMI/1.14.5 (Awara-Onsen) LIMIT/1.14.7 (Fujiidera) APEL/10.4 MULE XEmacs/21.4 (patch 10) (Military Intelligence) (i386-unknown-freebsd4.7) X-Face: "9'd$>6# List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3932 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3932 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386--freebsd, X toolkit, Xaw3d scroll bars) of 2002-10-28 on rave.kaoru.trans-nt.com configured using `configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/local i386--freebsd' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: ja_JP.eucJP value of $LC_MESSAGES: C value of $LC_MONETARY: nil value of $LC_NUMERIC: C value of $LC_TIME: C value of $LANG: C locale-coding-system: japanese-iso-8bit default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Following texinfo file save as example.texi. (setq texinfo-footnote-style "separate") C-c C-f example.texi, and M-x texinfo-format-buffer. Generate duplicated footnote node (Node: C++-Footnotes) in example.info buffer. Line "File: example.info Node: C++-Footnotes, Up: C++" is should be only one. but exist three lines. ---------------------------------------------------------------- \input texinfo @c -*-texinfo -*- @c %**start of header @setfilename example.info @c %**end of header @node Top, C++, (dir), (dir) @top Top @menu * C++:: "C++" is invalid regexp. @end menu @node C++, , Top, Top @chapter C++ @footnote{foo.} @footnote{bar.} @footnote{baz.} @bye ---------------------------------------------------------------- When regexp special character (e.g. "+") in node-name ("C++"), re-search-backward can't found footnode node. Use search-backward instead of re-search-backward: Index: texinfmt.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/textmodes/texinfmt.el,v retrieving revision 1.58 diff -u -F^( -r1.58 texinfmt.el --- texinfmt.el 29 Oct 2002 07:53:08 -0000 1.58 +++ texinfmt.el 22 Nov 2002 12:26:22 -0000 @@ -1467,7 +1467,7 @@ (defun texinfo-format-separate-node () ;; the text of the footnote. (if (save-excursion - (re-search-backward + (search-backward (concat node-name "-Footnotes, Up: ") node-name-beginning t)) 2002-11-22 TAKAHASHI Kaoru * textmodes/texinfmt.el (texinfo-format-separate-node): Use search-backward instead of re-search-backward, for footnote node. Recent input: C-n C-n C-n C-e C-x C-e C-x C-s C-x b M-x t e x i n f SPC o SPC f o SPC b u SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-n C-n C-SPC C-p C-SPC C-n M-w C-x k y e s < C-x C-g M-x r e p o r t SPC e m a SPC b u SPC Recent messages: Formatting Info file: example.info Converting example.texi to Info format... Formatting: Top ... Formatting: C++ ... Tagifying example.info ... Tagifying example.info done Formatting Info file...done. Now save it. Auto-saving...done Mark set [3 times] Loading emacsbug...done