aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/enriched.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el
index 003516d4e95..a1a9e766efc 100644
--- a/lisp/enriched.el
+++ b/lisp/enriched.el
@@ -209,21 +209,23 @@ Commands:
209 (list 'buffer-display-table buffer-display-table 209 (list 'buffer-display-table buffer-display-table
210 'indent-line-function indent-line-function 210 'indent-line-function indent-line-function
211 'use-hard-newlines use-hard-newlines 211 'use-hard-newlines use-hard-newlines
212 'default-properties default-properties)) 212 'default-text-properties default-text-properties))
213 (make-local-variable 'indent-line-function) 213 (make-local-variable 'indent-line-function)
214 (make-local-variable 'use-hard-newlines) 214 (make-local-variable 'use-hard-newlines)
215 (make-local-variable 'default-properties) 215 (make-local-variable 'default-text-properties)
216 (setq indent-line-function 'indent-to-left-margin 216 (setq indent-line-function 'indent-to-left-margin
217 buffer-display-table enriched-display-table 217 buffer-display-table enriched-display-table
218 use-hard-newlines t) 218 use-hard-newlines t)
219 (let ((sticky (get-text-property-default 'front-sticky)) 219 (let ((sticky (plist-get default-text-properties 'front-sticky))
220 (p enriched-par-props)) 220 (p enriched-par-props))
221 (while p 221 (while p
222 (if (not (memq (car p) sticky)) 222 (if (not (memq (car p) sticky))
223 (setq sticky (cons (car p) sticky))) 223 (setq sticky (cons (car p) sticky)))
224 (setq p (cdr p))) 224 (setq p (cdr p)))
225 (if sticky 225 (if sticky
226 (put-text-property-default 'front-sticky sticky))) 226 (setq default-text-properties
227 (plist-put default-text-properties
228 'front-sticky sticky))))
227 (run-hooks 'enriched-mode-hooks))) 229 (run-hooks 'enriched-mode-hooks)))
228 (set-buffer-modified-p mod) 230 (set-buffer-modified-p mod)
229 (force-mode-line-update))) 231 (force-mode-line-update)))