diff options
| author | Richard M. Stallman | 1994-09-29 19:07:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-29 19:07:45 +0000 |
| commit | a0f884641feb7b647e1a79049ff7e8658a1bd5cd (patch) | |
| tree | c0e7a53fe15c0a30a2673f0047705f384b84dfea | |
| parent | 2441d53d8ac0e7494c0202608644a97cc2ce66a1 (diff) | |
| download | emacs-a0f884641feb7b647e1a79049ff7e8658a1bd5cd.tar.gz emacs-a0f884641feb7b647e1a79049ff7e8658a1bd5cd.zip | |
(add-abbrev, inverse-add-abbrev):
Clear text properties from NAME.
| -rw-r--r-- | lisp/abbrev.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 39323b938b4..5144a66604f 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -217,6 +217,7 @@ Don't use this function in a Lisp program; use `define-abbrev' instead." | |||
| 217 | (read-string (format (if exp "%s abbrev for \"%s\": " | 217 | (read-string (format (if exp "%s abbrev for \"%s\": " |
| 218 | "Undefine %s abbrev: ") | 218 | "Undefine %s abbrev: ") |
| 219 | type exp))) | 219 | type exp))) |
| 220 | (set-text-properties 0 (length name) nil name) | ||
| 220 | (if (or (null exp) | 221 | (if (or (null exp) |
| 221 | (not (abbrev-expansion name table)) | 222 | (not (abbrev-expansion name table)) |
| 222 | (y-or-n-p (format "%s expands to \"%s\"; redefine? " | 223 | (y-or-n-p (format "%s expands to \"%s\"; redefine? " |
| @@ -250,6 +251,7 @@ Expands the abbreviation after defining it." | |||
| 250 | (forward-word (- arg)) | 251 | (forward-word (- arg)) |
| 251 | (setq name (buffer-substring (point) (progn (forward-word 1) | 252 | (setq name (buffer-substring (point) (progn (forward-word 1) |
| 252 | (setq nameloc (point)))))) | 253 | (setq nameloc (point)))))) |
| 254 | (set-text-properties 0 (length name) nil name) | ||
| 253 | (setq exp (read-string (format "%s expansion for \"%s\": " | 255 | (setq exp (read-string (format "%s expansion for \"%s\": " |
| 254 | type name))) | 256 | type name))) |
| 255 | (if (or (not (abbrev-expansion name table)) | 257 | (if (or (not (abbrev-expansion name table)) |