changeset 53624:d41bcaa9f380

(texinfo-mode): define outline-regexp to start with ^, since that's what texinfo-show-structure documentation says (plus it works much better in texinfo.txi).
author Karl Berry <karl@gnu.org>
date Mon, 19 Jan 2004 15:18:01 +0000
parents 47b199ab67ae
children 144ae07b9f73
files lisp/textmodes/texinfo.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/texinfo.el	Mon Jan 19 00:35:31 2004 +0000
+++ b/lisp/textmodes/texinfo.el	Mon Jan 19 15:18:01 2004 +0000
@@ -1,6 +1,6 @@
 ;;; texinfo.el --- major mode for editing Texinfo files
 
-;; Copyright (C) 1985,88,89,90,91,92,93,96,97,2000,01,03
+;; Copyright (C) 1985,88,89,90,91,92,93,96,97,2000,01,03, 04
 ;;           Free Software Foundation, Inc.
 
 ;; Author: Robert J. Chassell
@@ -616,7 +616,7 @@
        (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x)))
 	       texinfo-section-list))
   (set (make-local-variable 'outline-regexp)
-       (concat (regexp-opt (mapcar 'car outline-heading-alist) t)
+       (concat "^" (regexp-opt (mapcar 'car outline-heading-alist) t)
 	       "\\>"))
 
   (make-local-variable 'tex-start-of-header)