comparison lisp/textmodes/texinfo.el @ 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 e877223fe03e
children 8707b3e084c6
comparison
equal deleted inserted replaced
53623:47b199ab67ae 53624:d41bcaa9f380
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 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
7 ;; Date: [See date below for texinfo-version] 7 ;; Date: [See date below for texinfo-version]
8 ;; Maintainer: FSF 8 ;; Maintainer: FSF
614 ;; We should merge outline-heading-alist and texinfo-section-list 614 ;; We should merge outline-heading-alist and texinfo-section-list
615 ;; but in the mean time, let's just generate one from the other. 615 ;; but in the mean time, let's just generate one from the other.
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)
623 (setq tex-start-of-header "%\\*\\*start") 623 (setq tex-start-of-header "%\\*\\*start")
624 (make-local-variable 'tex-end-of-header) 624 (make-local-variable 'tex-end-of-header)