changeset 9180:569ed1f55710

(add-abbrev, inverse-add-abbrev): Clear text properties from NAME.
author Richard M. Stallman <rms@gnu.org>
date Thu, 29 Sep 1994 19:07:45 +0000
parents c8ef8dc59108
children b27c4cad21fb
files lisp/abbrev.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/abbrev.el	Thu Sep 29 18:54:19 1994 +0000
+++ b/lisp/abbrev.el	Thu Sep 29 19:07:45 1994 +0000
@@ -217,6 +217,7 @@
 	  (read-string (format (if exp "%s abbrev for \"%s\": "
 				 "Undefine %s abbrev: ")
 			       type exp)))
+    (set-text-properties 0 (length name) nil name)
     (if (or (null exp)
 	    (not (abbrev-expansion name table))
 	    (y-or-n-p (format "%s expands to \"%s\"; redefine? "
@@ -250,6 +251,7 @@
      (forward-word (- arg))
      (setq name (buffer-substring (point) (progn (forward-word 1)
 					       (setq nameloc (point))))))
+    (set-text-properties 0 (length name) nil name)
     (setq exp (read-string (format "%s expansion for \"%s\": "
 				   type name)))
     (if (or (not (abbrev-expansion name table))