From: Chong Yidong Date: Sun, 27 Dec 2009 08:11:12 +0000 (+0000) Subject: * minibuf.c (Fall_completions): Minor optimization. X-Git-Tag: emacs-pretest-23.1.91~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11e3c6841270082394ccf01a64af820806d3962f;p=emacs.git * minibuf.c (Fall_completions): Minor optimization. --- diff --git a/src/ChangeLog b/src/ChangeLog index eab6e169659..e43758177d8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-12-27 Chong Yidong + + * minibuf.c (Fall_completions): Minor optimization. + 2009-12-26 Eli Zaretskii * .gdbinit (pgx): Fix display of composite glyphs. Display diff --git a/src/minibuf.c b/src/minibuf.c index 3c070d6fbab..7af5c3e1b41 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -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,