aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Goldowsky1995-03-27 16:02:00 +0000
committerBoris Goldowsky1995-03-27 16:02:00 +0000
commitef6fe31be94ddc463b022aecc9fa8a0f32a4481a (patch)
treecbea56edadc25dadcd5c4ffd4ba347d04df4d11f
parentfe7ad22dc13c0842d5e11af7a46f9fd040c24cef (diff)
downloademacs-ef6fe31be94ddc463b022aecc9fa8a0f32a4481a.tar.gz
emacs-ef6fe31be94ddc463b022aecc9fa8a0f32a4481a.zip
(enriched-mode): Use new plist-put and plist-get fns,
change name of default-text-properties var.
-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)))