diff options
Diffstat (limited to 'lisp/abbrev.el')
| -rw-r--r-- | lisp/abbrev.el | 10 |
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. | ||
| 522 | This is the first thing that `expand-abbrev' does, and so this may change | ||
| 523 | the 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. |
| 838 | Effective when explicitly called even when `abbrev-mode' is nil. | 830 | Effective when explicitly called even when `abbrev-mode' is nil. |
| 839 | Before doing anything else, runs `pre-abbrev-expand-hook'. | ||
| 840 | Calls the value of `abbrev-expand-function' with no argument to do | 831 | Calls the value of `abbrev-expand-function' with no argument to do |
| 841 | the work, and returns whatever it does. (That return value should | 832 | the work, and returns whatever it does. (That return value should |
| 842 | be the abbrev symbol if expansion occurred, else nil.)" | 833 | be 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 () |