aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/abbrev.el
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /lisp/abbrev.el
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lisp/abbrev.el')
-rw-r--r--lisp/abbrev.el10
1 files changed, 0 insertions, 10 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 2d61a96010e..468b0d995b3 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -517,14 +517,6 @@ It is nil if the abbrev has already been unexpanded.")
517;; "Local (mode-specific) abbrev table of current buffer.") 517;; "Local (mode-specific) abbrev table of current buffer.")
518;; (make-variable-buffer-local 'local-abbrev-table) 518;; (make-variable-buffer-local 'local-abbrev-table)
519 519
520(defcustom pre-abbrev-expand-hook nil
521 "Function or functions to be called before abbrev expansion is done.
522This is the first thing that `expand-abbrev' does, and so this may change
523the current abbrev table before abbrev lookup happens."
524 :type 'hook
525 :group 'abbrev-mode)
526(make-obsolete-variable 'pre-abbrev-expand-hook 'abbrev-expand-function "23.1")
527
528(defun clear-abbrev-table (table) 520(defun clear-abbrev-table (table)
529 "Undefine all abbrevs in abbrev table TABLE, leaving it empty." 521 "Undefine all abbrevs in abbrev table TABLE, leaving it empty."
530 (setq abbrevs-changed t) 522 (setq abbrevs-changed t)
@@ -836,12 +828,10 @@ Takes no argument and should return the abbrev symbol if expansion took place.")
836(defun expand-abbrev () 828(defun expand-abbrev ()
837 "Expand the abbrev before point, if there is an abbrev there. 829 "Expand the abbrev before point, if there is an abbrev there.
838Effective when explicitly called even when `abbrev-mode' is nil. 830Effective when explicitly called even when `abbrev-mode' is nil.
839Before doing anything else, runs `pre-abbrev-expand-hook'.
840Calls the value of `abbrev-expand-function' with no argument to do 831Calls the value of `abbrev-expand-function' with no argument to do
841the work, and returns whatever it does. (That return value should 832the work, and returns whatever it does. (That return value should
842be the abbrev symbol if expansion occurred, else nil.)" 833be the abbrev symbol if expansion occurred, else nil.)"
843 (interactive) 834 (interactive)
844 (run-hooks 'pre-abbrev-expand-hook)
845 (funcall abbrev-expand-function)) 835 (funcall abbrev-expand-function))
846 836
847(defun abbrev--default-expand () 837(defun abbrev--default-expand ()