bug-gnu-emacs
[Top][All Lists]
Advanced

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

texinfo-format-separate-node makes duplicated footnote node


From: TAKAHASHI Kaoru
Subject: texinfo-format-separate-node makes duplicated footnote node
Date: Fri, 22 Nov 2002 21:53:31 +0900
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)

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 address@hidden 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  <address@hidden>

        * 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 <return> M-x 
t e x i n f SPC o SPC f o SPC b u SPC <return> 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 <return> y e s <return> 
<escape> < C-x C-g M-x r e p o r t SPC e m a SPC b 
u SPC <return>

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




reply via email to

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