diff options
author | Boris Goldowsky <boris@gnu.org> | 1997-02-24 17:47:07 +0000 |
---|---|---|
committer | Boris Goldowsky <boris@gnu.org> | 1997-02-24 17:47:07 +0000 |
commit | 057007e1898a492d3bb5a045a7d0db933e8572e7 (patch) | |
tree | a80d056e7d94a3d0131fc2a0599e26dd50aaf72e /lisp/facemenu.el | |
parent | 431553dbe2f88db8d7cec1da2dbcc5e400e58d02 (diff) | |
download | emacs-057007e1898a492d3bb5a045a7d0db933e8572e7.tar.gz |
Change put-text-property with constant args to add-text-properties for efficiency. Suggested by Stavros Macrakis <s.macrakis@opengroup.org>
Diffstat (limited to 'lisp/facemenu.el')
-rw-r--r-- | lisp/facemenu.el | 6 |
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." This sets the `invisible' text property; it can be undone with `facemenu-remove-special'." (interactive "r") - (put-text-property start end 'invisible t)) + (add-text-properties start end '(invisible t))) ;;;###autoload (defun facemenu-set-intangible (start end) @@ -368,7 +368,7 @@ This sets the `invisible' text property; it can be undone with This sets the `intangible' text property; it can be undone with `facemenu-remove-special'." (interactive "r") - (put-text-property start end 'intangible t)) + (add-text-properties start end '(intangible t))) ;;;###autoload (defun facemenu-set-read-only (start end) @@ -376,7 +376,7 @@ This sets the `intangible' text property; it can be undone with This sets the `read-only' text property; it can be undone with `facemenu-remove-special'." (interactive "r") - (put-text-property start end 'read-only t)) + (add-text-properties start end '(read-only t))) ;;;###autoload (defun facemenu-remove-props (start end) |