1 ;;; texi-util.el --- Texinfo utility
3 ;; Copyright (C) 1996 MORIOKA Tomohiko
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version: $Id: texi-util.el,v 1.2 1996/10/10 14:20:38 morioka Exp $
9 ;; This file is part of tl (Tiny Library).
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with this program; see the file COPYING. If not, write to
23 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
28 (defun texinfo-all-menu-titles-update ()
30 (goto-char (point-min))
31 (while (search-forward "\n@menu\n" nil t)
32 (goto-char (match-end 0))
33 (while (looking-at "* \\([^:]+\\)::")
34 (let ((title (buffer-substring (match-beginning 1)(match-end 1)))
40 "@node %s.*\n@\\(chapter\\|\\(sub\\)*section\\) \\(.+\\)"
41 (regexp-quote title)))))
43 (let ((data (last (match-data) 2)))
44 (setq subj (buffer-substring (car data)
49 (or (string= subj title)
64 ;;; texi-util.el ends here