summaryrefslogtreecommitdiff
path: root/lisp/textmodes/texnfo-upd.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2007-02-03 14:02:45 +0000
committerEli Zaretskii <eliz@gnu.org>2007-02-03 14:02:45 +0000
commitf64723771545e2f47ea0661f2551154a631ab18e (patch)
treed683611c2c0efd31ce33c8b58845b8433761b5fa /lisp/textmodes/texnfo-upd.el
parent49f1a2f46131da62ae96be4d760c3ceae966a3e0 (diff)
downloademacs-f64723771545e2f47ea0661f2551154a631ab18e.tar.gz
(texinfo-menu-copy-old-description):
Don't copy @ignore lines into menu descriptions. (texinfo-multi-file-update): Goto the @node line before attempting to pluck the node name. (texinfo-multiple-files-update): Reverse the optional arguments' order, as per the doc string and the `interactive' form.
Diffstat (limited to 'lisp/textmodes/texnfo-upd.el')
-rw-r--r--lisp/textmodes/texnfo-upd.el16
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index c5d125fdae5..4566bbc4496 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -619,15 +619,16 @@ Point must be located just after the node name. Point left before description.
Single argument, END-OF-MENU, is position limiting search."
(skip-chars-forward "[:.,\t\n ]+")
;; don't copy a carriage return at line beginning with asterisk!
- ;; don't copy @detailmenu or @end menu as descriptions!
+ ;; don't copy @detailmenu or @end menu or @ignore as descriptions!
;; do copy a description that begins with an `@'!
;; !! Known bug: does not copy descriptions starting with ^|\{?* etc.
(if (and (looking-at "\\(\\w+\\|@\\)")
- (not (looking-at "\\(^\\* \\|^@detailmenu\\|^@end menu\\)")))
+ (not (looking-at
+ "\\(^\\* \\|^@detailmenu\\|^@end menu\\|^@ignore\\)")))
(buffer-substring
(point)
(save-excursion
- (re-search-forward "\\(^\\* \\|^@end menu\\)" end-of-menu t)
+ (re-search-forward "\\(^\\* \\|^@ignore\\|^@end menu\\)" end-of-menu t)
(forward-line -1)
(end-of-line) ; go to end of last description line
(point)))
@@ -1820,6 +1821,9 @@ chapters."
(set-buffer (find-file-noselect (car (cdr files-with-node-lines))))
(widen)
(goto-char (point-min))
+ ;; The following search _must_ succeed, since we verified above
+ ;; that this file does have a @node line.
+ (re-search-forward "^@node" nil t)
(beginning-of-line)
(texinfo-check-for-node-name)
(setq next-node-name (texinfo-copy-node-name))
@@ -1851,6 +1855,10 @@ chapters."
(set-buffer (find-file-noselect (car (cdr files-with-node-lines))))
(widen)
(goto-char (point-min))
+ ;; The following search _must_ succeed, since we verified
+ ;; above that files in files-with-node-lines do have a @node
+ ;; line.
+ (re-search-forward "^@node" nil t)
(beginning-of-line)
(texinfo-check-for-node-name)
(setq next-node-name (texinfo-copy-node-name))
@@ -1926,7 +1934,7 @@ be the files included within it. A main menu must already exist."
;;; The multiple-file update function
(defun texinfo-multiple-files-update
- (outer-file &optional update-everything make-master-menu)
+ (outer-file &optional make-master-menu update-everything)
"Update first node pointers in each file included in OUTER-FILE;
create or update the `Top' level node pointers and the main menu in
the outer file that refers to such nodes. This does not create or