# HG changeset patch # User Karl Berry # Date 1074525481 0 # Node ID d41bcaa9f3807b5c3ecf5acda9acc2a063f01b1b # Parent 47b199ab67ae11285f9bd51b2c551ee14a473643 (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). diff -r 47b199ab67ae -r d41bcaa9f380 lisp/textmodes/texinfo.el --- 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)