diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/texnfo-upd.el | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el index 0c59eadfcc7..f964e411aa6 100644 --- a/lisp/textmodes/texnfo-upd.el +++ b/lisp/textmodes/texnfo-upd.el | |||
| @@ -1122,15 +1122,6 @@ end of that region; it limits the search." | |||
| 1122 | "^@\\(chapter \\|sect\\|subs\\|subh\\|unnum\\|major\\|chapheading \\|heading \\|appendix\\)" | 1122 | "^@\\(chapter \\|sect\\|subs\\|subh\\|unnum\\|major\\|chapheading \\|heading \\|appendix\\)" |
| 1123 | "Regexp matching chapter, section, other headings (but not the top node).") | 1123 | "Regexp matching chapter, section, other headings (but not the top node).") |
| 1124 | 1124 | ||
| 1125 | (defun texinfo-filter (section list) | ||
| 1126 | (let (res) | ||
| 1127 | (dolist (x list) (if (eq section (cadr x)) (push (car x) res))) | ||
| 1128 | res)) | ||
| 1129 | |||
| 1130 | (defvar texinfo-chapter-level-regexp | ||
| 1131 | (regexp-opt (texinfo-filter 2 texinfo-section-list)) | ||
| 1132 | "Regular expression matching just the Texinfo chapter level headings.") | ||
| 1133 | |||
| 1134 | (defvar texinfo-section-level-regexp | 1125 | (defvar texinfo-section-level-regexp |
| 1135 | (regexp-opt (texinfo-filter 3 texinfo-section-list)) | 1126 | (regexp-opt (texinfo-filter 3 texinfo-section-list)) |
| 1136 | "Regular expression matching just the Texinfo section level headings.") | 1127 | "Regular expression matching just the Texinfo section level headings.") |