bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pre-abbrev-expand-hook


From: Richard Stallman
Subject: Re: pre-abbrev-expand-hook
Date: Mon, 05 Jul 2004 10:22:45 -0400

The example was no good; it should test last-command-char rather
that (preceding-char).

I discovered that pre-abbrev-expand-hook is useless with the current
C code, since it is run whether or not the previous word
is an abbrev.  This change seems to make it usable.

*** abbrev.c    17 Jun 2004 19:28:38 -0400      1.62
--- abbrev.c    05 Jul 2004 01:52:09 -0400      
***************
*** 248,255 ****
  
    value = Qnil;
  
-   Frun_hooks (1, &Qpre_abbrev_expand_hook);
- 
    wordstart = 0;
    if (!(BUFFERP (Vabbrev_start_location_buffer)
        && XBUFFER (Vabbrev_start_location_buffer) == current_buffer))
--- 248,253 ----
***************
*** 325,330 ****
--- 323,330 ----
                    wordend - wordstart, p - buffer);
    if (INTEGERP (sym) || NILP (SYMBOL_VALUE (sym)))
      return value;
+ 
+   Frun_hooks (1, &Qpre_abbrev_expand_hook);
  
    if (INTERACTIVE && !EQ (minibuf_window, selected_window))
      {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]