]> git.eshelyaron.com Git - emacs.git/commitdiff
(add-abbrev, inverse-add-abbrev):
authorRichard M. Stallman <rms@gnu.org>
Thu, 29 Sep 1994 19:07:45 +0000 (19:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 29 Sep 1994 19:07:45 +0000 (19:07 +0000)
Clear text properties from NAME.

lisp/abbrev.el

index 39323b938b45c699c2d16591b8283f209c752e21..5144a66604f72d810c34fc1cf778a4bc1cb9e8a9 100644 (file)
@@ -217,6 +217,7 @@ Don't use this function in a Lisp program; use `define-abbrev' instead."
          (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 @@ Expands the abbreviation after defining it."
      (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))