diff options
| author | Stefan Monnier | 2004-01-21 03:09:06 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-01-21 03:09:06 +0000 |
| commit | 4ae1fdf63a4bde9bf12159db20e84552fd82c0a2 (patch) | |
| tree | e5da4e7abc00c85cb780bceda290d61d336226ee | |
| parent | 5c9659d3f6a8d29925bec34376f3e21f4a2deade (diff) | |
| download | emacs-4ae1fdf63a4bde9bf12159db20e84552fd82c0a2.tar.gz emacs-4ae1fdf63a4bde9bf12159db20e84552fd82c0a2.zip | |
(texinfo-mode): Remove ^ from outline-regexp.
(texinfo-show-structure): Explicitly add ^, and simplify.
| -rw-r--r-- | lisp/textmodes/texinfo.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 91ca7a37ee1..3c5559897b4 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; texinfo.el --- major mode for editing Texinfo files | 1 | ;;; texinfo.el --- major mode for editing Texinfo files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985,88,89,90,91,92,93,96,97,2000,01,03, 04 | 3 | ;; Copyright (C) 1985,88,89,90,91,92,93,96,97,2000,01,03,04 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Robert J. Chassell | 6 | ;; Author: Robert J. Chassell |
| @@ -616,7 +616,7 @@ value of `texinfo-mode-hook'." | |||
| 616 | (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) | 616 | (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) |
| 617 | texinfo-section-list)) | 617 | texinfo-section-list)) |
| 618 | (set (make-local-variable 'outline-regexp) | 618 | (set (make-local-variable 'outline-regexp) |
| 619 | (concat "^" (regexp-opt (mapcar 'car outline-heading-alist) t) | 619 | (concat (regexp-opt (mapcar 'car outline-heading-alist) t) |
| 620 | "\\>")) | 620 | "\\>")) |
| 621 | 621 | ||
| 622 | (make-local-variable 'tex-start-of-header) | 622 | (make-local-variable 'tex-start-of-header) |
| @@ -904,9 +904,8 @@ to jump to the corresponding spot in the Texinfo source file." | |||
| 904 | ;; Second, create and format an *Occur* buffer | 904 | ;; Second, create and format an *Occur* buffer |
| 905 | (save-excursion | 905 | (save-excursion |
| 906 | (goto-char (point-min)) | 906 | (goto-char (point-min)) |
| 907 | (if nodes-too | 907 | (occur (concat "^\\(?:" (if nodes-too "@node\\>\\|") |
| 908 | (occur (concat "^@node\\>\\|" outline-regexp)) | 908 | outline-regexp "\\)"))) |
| 909 | (occur outline-regexp))) | ||
| 910 | (pop-to-buffer "*Occur*") | 909 | (pop-to-buffer "*Occur*") |
| 911 | (goto-char (point-min)) | 910 | (goto-char (point-min)) |
| 912 | (let ((inhibit-read-only t)) | 911 | (let ((inhibit-read-only t)) |