aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-25 11:16:43 +0000
committerGerd Moellmann2000-09-25 11:16:43 +0000
commit8bd88d54523530ad7044750b44e4e88976eb6073 (patch)
tree76db1c1d2218061882948ced206671f72695af15
parent5f9f981bc10dd6b90395ee66e2ff8f364859bdf8 (diff)
downloademacs-8bd88d54523530ad7044750b44e4e88976eb6073.tar.gz
emacs-8bd88d54523530ad7044750b44e4e88976eb6073.zip
(texinfo-mode): Prevent filling lines
starting with `@def' or `@multitable', in addition to ones specified by the user in auto-fill-inhibit-regexp.
-rw-r--r--lisp/textmodes/texinfo.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index ce751e965ef..3a87b79e95e 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -530,7 +530,18 @@ value of `texinfo-mode-hook'."
530 (make-local-variable 'tex-first-line-header-regexp) 530 (make-local-variable 'tex-first-line-header-regexp)
531 (setq tex-first-line-header-regexp "^\\\\input") 531 (setq tex-first-line-header-regexp "^\\\\input")
532 (make-local-variable 'tex-trailer) 532 (make-local-variable 'tex-trailer)
533 (setq tex-trailer "@bye\n")) 533 (setq tex-trailer "@bye\n")
534
535 ;; Prevent filling certain lines, in addition to ones specified
536 ;; by the user.
537 (let ((prevent-filling "^@\\(def\\|multitable\\)"))
538 (make-local-variable 'auto-fill-inhibit-regexp)
539 (if (null auto-fill-inhibit-regexp)
540 (setq auto-fill-inhibit-regexp prevent-filling)
541 (setq auto-fill-inhibit-regexp
542 (concat "\\(" auto-fill-inhibit-regexp "\\)\\|\\("
543 prevent-filling "\\)")))))
544
534 545
535 546
536;;; Insert string commands 547;;; Insert string commands