Commit f70de758 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fexpand_abbrev): Run Qpre_abbrev_expand_hook

only when a real abbrev is present.
parent 2da34788
......@@ -248,8 +248,6 @@ Returns the abbrev symbol, if expansion took place. */)
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 @@ Returns the abbrev symbol, if expansion took place. */)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment