* texinfo-format-separate-node makes duplicated footnote node
@ 2002-11-22 12:53 TAKAHASHI Kaoru
0 siblings, 0 replies; only message in thread
From: TAKAHASHI Kaoru @ 2002-11-22 12:53 UTC (permalink / raw)
Cc: kaoru
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 <kaoru@kaisei.org>
* 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-22 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 12:53 texinfo-format-separate-node makes duplicated footnote node TAKAHASHI Kaoru
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).