Mercurial > emacs
changeset 31870:42f05d7aadd0
(texinfo-mode): Prevent filling lines
starting with `@def' or `@multitable', in addition to ones
specified by the user in auto-fill-inhibit-regexp.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 25 Sep 2000 11:16:43 +0000 |
parents | 5dd0f3ffac6f |
children | 576a8de6ffb4 |
files | lisp/textmodes/texinfo.el |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/texinfo.el Mon Sep 25 10:35:47 2000 +0000 +++ b/lisp/textmodes/texinfo.el Mon Sep 25 11:16:43 2000 +0000 @@ -530,7 +530,18 @@ (make-local-variable 'tex-first-line-header-regexp) (setq tex-first-line-header-regexp "^\\\\input") (make-local-variable 'tex-trailer) - (setq tex-trailer "@bye\n")) + (setq tex-trailer "@bye\n") + + ;; Prevent filling certain lines, in addition to ones specified + ;; by the user. + (let ((prevent-filling "^@\\(def\\|multitable\\)")) + (make-local-variable 'auto-fill-inhibit-regexp) + (if (null auto-fill-inhibit-regexp) + (setq auto-fill-inhibit-regexp prevent-filling) + (setq auto-fill-inhibit-regexp + (concat "\\(" auto-fill-inhibit-regexp "\\)\\|\\(" + prevent-filling "\\)"))))) + ;;; Insert string commands