mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 02:31:03 -08:00
Merge from origin/emacs-25
9fc9988Improve documentation of 'expand-abbrev' and wrapper hooksc14a1d4Minor copyedits of MS-Windows installation instructionsf281924Fix display of cursor when 'blink-cursor-delay' has small value # Conflicts: # lisp/minibuffer.el
This commit is contained in:
commit
a2513667af
7 changed files with 53 additions and 24 deletions
|
|
@ -837,16 +837,17 @@ Takes no argument and should return the abbrev symbol if expansion took place.")
|
|||
"Expand the abbrev before point, if there is an abbrev there.
|
||||
Effective when explicitly called even when `abbrev-mode' is nil.
|
||||
Before doing anything else, runs `pre-abbrev-expand-hook'.
|
||||
Calls `abbrev-expand-function' with no argument to do the work,
|
||||
and returns whatever it does. (This should be the abbrev symbol
|
||||
if expansion occurred, else nil.)"
|
||||
Calls the value of `abbrev-expand-function' with no argument to do
|
||||
the work, and returns whatever it does. (That return value should
|
||||
be the abbrev symbol if expansion occurred, else nil.)"
|
||||
(interactive)
|
||||
(run-hooks 'pre-abbrev-expand-hook)
|
||||
(funcall abbrev-expand-function))
|
||||
|
||||
(defun abbrev--default-expand ()
|
||||
"Default function to use for `abbrev-expand-function'.
|
||||
This respects the wrapper hook `abbrev-expand-functions'.
|
||||
This also respects the obsolete wrapper hook `abbrev-expand-functions'.
|
||||
\(See `with-wrapper-hook' for details about wrapper hooks.)
|
||||
Calls `abbrev-insert' to insert any expansion, and returns what it does."
|
||||
(subr--with-wrapper-hook-no-warnings abbrev-expand-functions ()
|
||||
(pcase-let ((`(,sym ,name ,wordstart ,wordend) (abbrev--before-point)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue