Mercurial > emacs
diff src/abbrev.c @ 56523:588fc06a48ae
(Fexpand_abbrev): Run Qpre_abbrev_expand_hook
only when a real abbrev is present.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 24 Jul 2004 21:37:11 +0000 |
parents | 5407da499273 |
children | c35c8a6e6baa c08afac24467 |
line wrap: on
line diff
--- a/src/abbrev.c Sat Jul 24 21:35:56 2004 +0000 +++ b/src/abbrev.c Sat Jul 24 21:37:11 2004 +0000 @@ -248,8 +248,6 @@ value = Qnil; - Frun_hooks (1, &Qpre_abbrev_expand_hook); - wordstart = 0; if (!(BUFFERP (Vabbrev_start_location_buffer) && XBUFFER (Vabbrev_start_location_buffer) == current_buffer)) @@ -326,6 +324,8 @@ if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym))) return value; + Frun_hooks (1, &Qpre_abbrev_expand_hook); + if (INTERACTIVE && !EQ (minibuf_window, selected_window)) { /* Add an undo boundary, in case we are doing this for