aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert J. Chassell1993-11-10 00:02:27 +0000
committerRobert J. Chassell1993-11-10 00:02:27 +0000
commit95cc610e064e091fe530e1ad7924c76bbffc39e5 (patch)
tree634d8831520717d2398156f4c5dd5ad9fdb0797f
parent873b572941eefb79649614387790d512a2fffe72 (diff)
downloademacs-95cc610e064e091fe530e1ad7924c76bbffc39e5.tar.gz
emacs-95cc610e064e091fe530e1ad7924c76bbffc39e5.zip
(texinfo-show-structure): Indent appendices properly.
-rw-r--r--lisp/textmodes/texinfo.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 12ea7c55aba..390629f9edd 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -541,26 +541,30 @@ to jump to the corresponding spot in the Texinfo source file."
541 (re-search-forward ":") 541 (re-search-forward ":")
542 (setq margin 542 (setq margin
543 (cond 543 (cond
544 ((looking-at (concat "@" texinfo-chapter-level-regexp)) 5) 544 ((looking-at
545 (concat "@\\(" texinfo-chapter-level-regexp "\\)")) 5)
545 ;; ((looking-at "@chapter ") 5) 546 ;; ((looking-at "@chapter ") 5)
546 ;; ((looking-at "@unnumbered ") 5) 547 ;; ((looking-at "@unnumbered ") 5)
547 ;; ((looking-at "@appendix ") 5) 548 ;; ((looking-at "@appendix ") 5)
548 ;; ((looking-at "@majorheading ") 5) 549 ;; ((looking-at "@majorheading ") 5)
549 ;; ((looking-at "@chapheading ") 5) 550 ;; ((looking-at "@chapheading ") 5)
550 551
551 ((looking-at (concat "@" texinfo-section-level-regexp)) 9) 552 ((looking-at
553 (concat "@\\(" texinfo-section-level-regexp "\\)")) 9)
552 ;; ((looking-at "@section ") 9) 554 ;; ((looking-at "@section ") 9)
553 ;; ((looking-at "@unnumberedsec ") 9) 555 ;; ((looking-at "@unnumberedsec ") 9)
554 ;; ((looking-at "@appendixsec ") 9) 556 ;; ((looking-at "@appendixsec ") 9)
555 ;; ((looking-at "@heading ") 9) 557 ;; ((looking-at "@heading ") 9)
556 558
557 ((looking-at (concat "@" texinfo-subsection-level-regexp)) 13) 559 ((looking-at
560 (concat "@\\(" texinfo-subsection-level-regexp "\\)")) 13)
558 ;; ((looking-at "@subsection ") 13) 561 ;; ((looking-at "@subsection ") 13)
559 ;; ((looking-at "@unnumberedsubsec ") 13) 562 ;; ((looking-at "@unnumberedsubsec ") 13)
560 ;; ((looking-at "@appendixsubsec ") 13) 563 ;; ((looking-at "@appendixsubsec ") 13)
561 ;; ((looking-at "@subheading ") 13) 564 ;; ((looking-at "@subheading ") 13)
562 565
563 ((looking-at (concat "@" texinfo-subsubsection-level-regexp)) 17) 566 ((looking-at
567 (concat "@\\(" texinfo-subsection-level-regexp "\\)")) 13)
564 ;; ((looking-at "@subsubsection ") 17) 568 ;; ((looking-at "@subsubsection ") 17)
565 ;; ((looking-at "@unnumberedsubsubsec ") 17) 569 ;; ((looking-at "@unnumberedsubsubsec ") 17)
566 ;; ((looking-at "@appendixsubsubsec ") 17) 570 ;; ((looking-at "@appendixsubsubsec ") 17)