summaryrefslogtreecommitdiff
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-09-12 10:26:48 +0000
committerKim F. Storm <storm@cua.dk>2005-09-12 10:26:48 +0000
commite8157eae64a47df28befb40f280dc7a4cbe2e3b4 (patch)
treecc630f931431e1ef7827be2b419f41bb866d9b4d /src/minibuf.c
parentd6a31e9ffdd50a8dffe1b2802b241504ca407e33 (diff)
downloademacs-e8157eae64a47df28befb40f280dc7a4cbe2e3b4.tar.gz
(Fminibuffer_complete_word): Move `completion_string'
declaration to where it is used.
Diffstat (limited to 'src/minibuf.c')
-rw-r--r--src/minibuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 096e02c0034..ace1e0dda76 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2158,7 +2158,6 @@ Return nil if there is no valid completion, else t. */)
{
Lisp_Object completion, tem, tem1;
register int i, i_byte;
- register const unsigned char *completion_string;
struct gcpro gcpro1, gcpro2;
int prompt_end_charpos = XINT (Fminibuffer_prompt_end ());
@@ -2289,7 +2288,7 @@ Return nil if there is no valid completion, else t. */)
{
int len, c;
int bytes = SBYTES (completion);
- completion_string = SDATA (completion);
+ register const unsigned char *completion_string = SDATA (completion);
for (; i_byte < SBYTES (completion); i_byte += len, i++)
{
c = STRING_CHAR_AND_LENGTH (completion_string + i_byte,