aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2004-07-24 21:37:11 +0000
committerRichard M. Stallman2004-07-24 21:37:11 +0000
commitf70de7583e9312348f59b51fb1c7a826178eea52 (patch)
tree63342396f2fce4b39ceefd36fd2faffe7ae46691 /src
parent2da347886f2b22ab497a39b3f07cc14664f2bc5d (diff)
downloademacs-f70de7583e9312348f59b51fb1c7a826178eea52.tar.gz
emacs-f70de7583e9312348f59b51fb1c7a826178eea52.zip
(Fexpand_abbrev): Run Qpre_abbrev_expand_hook
only when a real abbrev is present.
Diffstat (limited to 'src')
-rw-r--r--src/abbrev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index ac132f20023..37ab640ee43 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -248,8 +248,6 @@ Returns the abbrev symbol, if expansion took place. */)
248 248
249 value = Qnil; 249 value = Qnil;
250 250
251 Frun_hooks (1, &Qpre_abbrev_expand_hook);
252
253 wordstart = 0; 251 wordstart = 0;
254 if (!(BUFFERP (Vabbrev_start_location_buffer) 252 if (!(BUFFERP (Vabbrev_start_location_buffer)
255 && XBUFFER (Vabbrev_start_location_buffer) == current_buffer)) 253 && XBUFFER (Vabbrev_start_location_buffer) == current_buffer))
@@ -326,6 +324,8 @@ Returns the abbrev symbol, if expansion took place. */)
326 if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym))) 324 if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym)))
327 return value; 325 return value;
328 326
327 Frun_hooks (1, &Qpre_abbrev_expand_hook);
328
329 if (INTERACTIVE && !EQ (minibuf_window, selected_window)) 329 if (INTERACTIVE && !EQ (minibuf_window, selected_window))
330 { 330 {
331 /* Add an undo boundary, in case we are doing this for 331 /* Add an undo boundary, in case we are doing this for