* minibuf.c (Fall_completions): Minor optimization.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 27 Dec 2009 08:11:12 +0000 (08:11 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 27 Dec 2009 08:11:12 +0000 (08:11 +0000)
src/ChangeLog
src/minibuf.c

index eab6e16..e437581 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuf.c (Fall_completions): Minor optimization.
+
 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
 
        * .gdbinit (pgx): Fix display of composite glyphs.  Display
index 3c070d6..7af5c3e 100644 (file)
@@ -1647,10 +1647,10 @@ with a space are ignored unless STRING itself starts with a space.  */)
          && SCHARS (string) <= SCHARS (eltstring)
          /* If HIDE_SPACES, reject alternatives that start with space
             unless the input starts with space.  */
-         && ((SBYTES (string) > 0
-              && SREF (string, 0) == ' ')
-             || SREF (eltstring, 0) != ' '
-             || NILP (hide_spaces))
+         && (NILP (hide_spaces)
+             || (SBYTES (string) > 0
+                 && SREF (string, 0) == ' ')
+             || SREF (eltstring, 0) != ' ')
          && (tem = Fcompare_strings (eltstring, zero,
                                      make_number (SCHARS (string)),
                                      string, zero,