aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-09-19 19:32:35 +0000
committerRichard M. Stallman1993-09-19 19:32:35 +0000
commit426979a1c897221451846de50f640a49a0b7fe2a (patch)
tree8828374f1cf654942114f9796848daf6533856f9
parentd00a8c7893dfc00fc3881d95faff56612e507c62 (diff)
downloademacs-426979a1c897221451846de50f640a49a0b7fe2a.tar.gz
emacs-426979a1c897221451846de50f640a49a0b7fe2a.zip
(indented-text-mode): Make only blank lines
separate or start paragraphs. Doc fix.
-rw-r--r--lisp/textmodes/text-mode.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index fe51a39c2a8..c637b100790 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -87,7 +87,10 @@ All the commands defined in Text mode are inherited unless overridden.")
87 (setq indented-text-mode-map (nconc newmap text-mode-map)))) 87 (setq indented-text-mode-map (nconc newmap text-mode-map))))
88 88
89(defun indented-text-mode () 89(defun indented-text-mode ()
90 "Major mode for editing indented text intended for humans to read. 90 "Major mode for editing text with indented paragraphs.
91In this mode, paragraphs are delimited only by blank lines.
92You can thus get the benefit of adaptive filling
93 (see the variable `adaptive-fill-mode').
91\\{indented-text-mode-map} 94\\{indented-text-mode-map}
92Turning on `indented-text-mode' calls the value of the variable 95Turning on `indented-text-mode' calls the value of the variable
93`text-mode-hook', if that value is non-nil." 96`text-mode-hook', if that value is non-nil."
@@ -99,6 +102,10 @@ Turning on `indented-text-mode' calls the value of the variable
99 (set-syntax-table text-mode-syntax-table) 102 (set-syntax-table text-mode-syntax-table)
100 (make-local-variable 'indent-line-function) 103 (make-local-variable 'indent-line-function)
101 (setq indent-line-function 'indent-relative-maybe) 104 (setq indent-line-function 'indent-relative-maybe)
105 (make-local-variable 'paragraph-start)
106 (setq paragraph-start (concat "^$\\|" page-delimiter))
107 (make-local-variable 'paragraph-separate)
108 (setq paragraph-separate paragraph-start)
102 (use-local-map indented-text-mode-map) 109 (use-local-map indented-text-mode-map)
103 (setq mode-name "Indented Text") 110 (setq mode-name "Indented Text")
104 (setq major-mode 'indented-text-mode) 111 (setq major-mode 'indented-text-mode)