aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Goldowsky1997-02-24 17:47:07 +0000
committerBoris Goldowsky1997-02-24 17:47:07 +0000
commit0e3edd7b1608306ba36e98cbb79f4e8987a30548 (patch)
treed7b2f28c3be3f241bc3055f9be688ed4745386c6
parentf73d78a2f4a325cc943bd464eccc566ceb8fddfa (diff)
downloademacs-0e3edd7b1608306ba36e98cbb79f4e8987a30548.tar.gz
emacs-0e3edd7b1608306ba36e98cbb79f4e8987a30548.zip
Change put-text-property with constant args to add-text-properties for efficiency. Suggested by Stavros Macrakis <s.macrakis@opengroup.org>
-rw-r--r--lisp/facemenu.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 07d5f52c628..361eb7a93b5 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -360,7 +360,7 @@ typing a character to insert cancels the specification."
360This sets the `invisible' text property; it can be undone with 360This sets the `invisible' text property; it can be undone with
361`facemenu-remove-special'." 361`facemenu-remove-special'."
362 (interactive "r") 362 (interactive "r")
363 (put-text-property start end 'invisible t)) 363 (add-text-properties start end '(invisible t)))
364 364
365;;;###autoload 365;;;###autoload
366(defun facemenu-set-intangible (start end) 366(defun facemenu-set-intangible (start end)
@@ -368,7 +368,7 @@ This sets the `invisible' text property; it can be undone with
368This sets the `intangible' text property; it can be undone with 368This sets the `intangible' text property; it can be undone with
369`facemenu-remove-special'." 369`facemenu-remove-special'."
370 (interactive "r") 370 (interactive "r")
371 (put-text-property start end 'intangible t)) 371 (add-text-properties start end '(intangible t)))
372 372
373;;;###autoload 373;;;###autoload
374(defun facemenu-set-read-only (start end) 374(defun facemenu-set-read-only (start end)
@@ -376,7 +376,7 @@ This sets the `intangible' text property; it can be undone with
376This sets the `read-only' text property; it can be undone with 376This sets the `read-only' text property; it can be undone with
377`facemenu-remove-special'." 377`facemenu-remove-special'."
378 (interactive "r") 378 (interactive "r")
379 (put-text-property start end 'read-only t)) 379 (add-text-properties start end '(read-only t)))
380 380
381;;;###autoload 381;;;###autoload
382(defun facemenu-remove-props (start end) 382(defun facemenu-remove-props (start end)