aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-18 02:57:14 +0000
committerRichard M. Stallman1997-07-18 02:57:14 +0000
commit155b48df5e05f38f6d1e8183c1ba326f463e8b9d (patch)
tree50c53af1b87c9352d1d042380eb12a268bd1d8de
parent3219bb4315b9e1d5b54284ef13950841331d23cc (diff)
downloademacs-155b48df5e05f38f6d1e8183c1ba326f463e8b9d.tar.gz
emacs-155b48df5e05f38f6d1e8183c1ba326f463e8b9d.zip
(texinfo-all-menus-update)
(texinfo-master-menu, texinfo-multiple-files-update): Search for texinfo-master-menu-header as a string, not a regexp. (texinfo-master-menu-header): Move defvar earlier.
-rw-r--r--lisp/textmodes/texnfo-upd.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el
index 3e647b7c391..516c1a6130b 100644
--- a/lisp/textmodes/texnfo-upd.el
+++ b/lisp/textmodes/texnfo-upd.el
@@ -149,6 +149,11 @@
149 149
150;;; Code: 150;;; Code:
151 151
152(defvar texinfo-master-menu-header
153 " --- The Detailed Node Listing ---\n"
154 "String inserted before lower level entries in Texinfo master menu.
155It comes after the chapter-level menu entries.")
156
152(defun texinfo-make-menu (&optional beginning end) 157(defun texinfo-make-menu (&optional beginning end)
153 "Without any prefix argument, make or update a menu. 158 "Without any prefix argument, make or update a menu.
154Make the menu for the section enclosing the node found following point. 159Make the menu for the section enclosing the node found following point.
@@ -229,7 +234,7 @@ nodes in the buffer before updating the menus."
229 (goto-char (point-min)) 234 (goto-char (point-min))
230 (message "Checking for a master menu in %s ... "(buffer-name)) 235 (message "Checking for a master menu in %s ... "(buffer-name))
231 (save-excursion 236 (save-excursion
232 (if (re-search-forward texinfo-master-menu-header nil t) 237 (if (search-forward texinfo-master-menu-header nil t)
233 (progn 238 (progn
234 ;; Check if @detailmenu kludge is used; 239 ;; Check if @detailmenu kludge is used;
235 ;; if so, leave point before @detailmenu. 240 ;; if so, leave point before @detailmenu.
@@ -728,11 +733,6 @@ second and subsequent lines of a multi-line description."
728 733
729;;; Making the master menu 734;;; Making the master menu
730 735
731(defvar texinfo-master-menu-header
732 " --- The Detailed Node Listing ---\n"
733 "String inserted before lower level entries in Texinfo master menu.
734It comes after the chapter-level menu entries.")
735
736(defun texinfo-master-menu (update-all-nodes-menus-p) 736(defun texinfo-master-menu (update-all-nodes-menus-p)
737 "Make a master menu for a whole Texinfo file. 737 "Make a master menu for a whole Texinfo file.
738Non-nil argument (prefix, if interactive) means first update all 738Non-nil argument (prefix, if interactive) means first update all
@@ -780,7 +780,7 @@ title of the section containing the menu."
780 (or (re-search-forward "^@node" nil t) 780 (or (re-search-forward "^@node" nil t)
781 (error "Too few nodes for a master menu!")) 781 (error "Too few nodes for a master menu!"))
782 (point)))) 782 (point))))
783 (if (re-search-forward texinfo-master-menu-header first-chapter t) 783 (if (search-forward texinfo-master-menu-header first-chapter t)
784 (progn 784 (progn
785 ;; Check if @detailmenu kludge is used; 785 ;; Check if @detailmenu kludge is used;
786 ;; if so, leave point before @detailmenu. 786 ;; if so, leave point before @detailmenu.
@@ -819,7 +819,7 @@ title of the section containing the menu."
819 (save-excursion 819 (save-excursion
820 (goto-char (point-min)) 820 (goto-char (point-min))
821 821
822 (if (re-search-forward texinfo-master-menu-header nil t) 822 (if (search-forward texinfo-master-menu-header nil t)
823 (progn 823 (progn
824 (goto-char (match-beginning 0)) 824 (goto-char (match-beginning 0))
825 ;; Check if @detailmenu kludge is used; 825 ;; Check if @detailmenu kludge is used;
@@ -2018,7 +2018,7 @@ chapter."
2018 (progn 2018 (progn
2019 ;; First, removing detailed part of any pre-existing master menu 2019 ;; First, removing detailed part of any pre-existing master menu
2020 (goto-char (point-min)) 2020 (goto-char (point-min))
2021 (if (re-search-forward texinfo-master-menu-header nil t) 2021 (if (search-forward texinfo-master-menu-header nil t)
2022 (progn 2022 (progn
2023 (goto-char (match-beginning 0)) 2023 (goto-char (match-beginning 0))
2024 ;; Check if @detailmenu kludge is used; 2024 ;; Check if @detailmenu kludge is used;