]> code.delx.au - gnu-emacs/commitdiff
(indented-text-mode): Make only blank lines
authorRichard M. Stallman <rms@gnu.org>
Sun, 19 Sep 1993 19:32:35 +0000 (19:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 19 Sep 1993 19:32:35 +0000 (19:32 +0000)
separate or start paragraphs.  Doc fix.

lisp/textmodes/text-mode.el

index fe51a39c2a82a2d18c3bc7fe63305c373ef4d684..c637b100790b701f44c00230bc13c3e969579bde 100644 (file)
@@ -87,7 +87,10 @@ All the commands defined in Text mode are inherited unless overridden.")
     (setq indented-text-mode-map (nconc newmap text-mode-map))))
 
 (defun indented-text-mode ()
-  "Major mode for editing indented text intended for humans to read.
+  "Major mode for editing text with indented paragraphs.
+In this mode, paragraphs are delimited only by blank lines.
+You can thus get the benefit of adaptive filling
+ (see the variable `adaptive-fill-mode').
 \\{indented-text-mode-map}
 Turning on `indented-text-mode' calls the value of the variable
 `text-mode-hook', if that value is non-nil."
@@ -99,6 +102,10 @@ Turning on `indented-text-mode' calls the value of the variable
   (set-syntax-table text-mode-syntax-table)
   (make-local-variable 'indent-line-function)
   (setq indent-line-function 'indent-relative-maybe)
+  (make-local-variable 'paragraph-start)
+  (setq paragraph-start (concat "^$\\|" page-delimiter))
+  (make-local-variable 'paragraph-separate)
+  (setq paragraph-separate paragraph-start)
   (use-local-map indented-text-mode-map)
   (setq mode-name "Indented Text")
   (setq major-mode 'indented-text-mode)