summaryrefslogtreecommitdiff
path: root/lisp/expand.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-12-30 12:25:22 +0000
committerGerd Moellmann <gerd@gnu.org>1999-12-30 12:25:22 +0000
commit345839e3eca33ab5a56a7e9e089532940144c371 (patch)
tree95e1db4be35d4035b12a4357be64bcf821c852a8 /lisp/expand.el
parent12ce2351b5291680021a68ed1122eb1636555053 (diff)
downloademacs-345839e3eca33ab5a56a7e9e089532940144c371.tar.gz
(expand-abbrev-hook): Return t if expansion was
done, nil otherwise.
Diffstat (limited to 'lisp/expand.el')
-rw-r--r--lisp/expand.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/expand.el b/lisp/expand.el
index 531174f7f4e..deb4a5f8577 100644
--- a/lisp/expand.el
+++ b/lisp/expand.el
@@ -338,7 +338,7 @@ This variable is local to a buffer.")
(put 'expand-abbrev-hook 'no-self-insert t)
(defun expand-abbrev-hook ()
"Abbrev hook used to do the expansion job of expand abbrevs.
-See `expand-add-abbrevs'."
+See `expand-add-abbrevs'. Value is non-nil if expansion was done."
;; Expand only at the end of a line if we are near a word that has
;; an abbrev built from expand-add-abbrev.
(if (and (eolp)
@@ -364,8 +364,9 @@ See `expand-add-abbrevs'."
expand-pos (expand-list-to-markers expand-list)
expand-list nil)))
(run-hooks 'expand-expand-hook)
- t))))
- )
+ t)
+ nil))
+ nil))
(defun expand-do-expansion ()
(delete-backward-char (length last-abbrev-text))