This commit was generated by cvs2svn to compensate for changes in r5025,
[chise/xemacs-chise.git.1] / src / abbrev.c
index 80f08ad..e18efdd 100644 (file)
@@ -172,7 +172,7 @@ abbrev_match (struct buffer *buf, Lisp_Object obarray)
    It is an order of magnitude faster than the proper abbrev_match(),
    but then again, vi is an order of magnitude faster than Emacs.
 
-   This speed difference should be unnoticeable, though.  I have tested
+   This speed difference should be unnoticable, though.  I have tested
    the degenerated cases of thousands of abbrevs being defined, and
    abbrev_match() was still fast enough for normal operation.  */
 static struct Lisp_Symbol *
@@ -222,11 +222,10 @@ abbrev_oblookup (struct buffer *buf, Lisp_Object obarray)
         because of consistency with abbrev_match. */
       if (wordend < point)
        return 0;
+      if (wordend <= wordstart)
+       return 0;
     }
 
-  if (wordend <= wordstart)
-    return 0;
-
   p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart));
   for (idx = wordstart; idx < wordend; idx++)
     {