changeset 65457:da27b91068ae

(Fminibuffer_complete_word): Move `completion_string' declaration to where it is used.
author Kim F. Storm <storm@cua.dk>
date Mon, 12 Sep 2005 10:26:48 +0000
parents d9638b932900
children 02e47d7a9bca
files src/minibuf.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Mon Sep 12 10:26:35 2005 +0000
+++ b/src/minibuf.c	Mon Sep 12 10:26:48 2005 +0000
@@ -2158,7 +2158,6 @@
 {
   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 @@
   {
     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,