diff options
| author | Kim F. Storm | 2005-09-12 10:26:48 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-09-12 10:26:48 +0000 |
| commit | e8157eae64a47df28befb40f280dc7a4cbe2e3b4 (patch) | |
| tree | cc630f931431e1ef7827be2b419f41bb866d9b4d | |
| parent | d6a31e9ffdd50a8dffe1b2802b241504ca407e33 (diff) | |
| download | emacs-e8157eae64a47df28befb40f280dc7a4cbe2e3b4.tar.gz emacs-e8157eae64a47df28befb40f280dc7a4cbe2e3b4.zip | |
(Fminibuffer_complete_word): Move `completion_string'
declaration to where it is used.
| -rw-r--r-- | src/minibuf.c | 3 |
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. */) | |||
| 2158 | { | 2158 | { |
| 2159 | Lisp_Object completion, tem, tem1; | 2159 | Lisp_Object completion, tem, tem1; |
| 2160 | register int i, i_byte; | 2160 | register int i, i_byte; |
| 2161 | register const unsigned char *completion_string; | ||
| 2162 | struct gcpro gcpro1, gcpro2; | 2161 | struct gcpro gcpro1, gcpro2; |
| 2163 | int prompt_end_charpos = XINT (Fminibuffer_prompt_end ()); | 2162 | int prompt_end_charpos = XINT (Fminibuffer_prompt_end ()); |
| 2164 | 2163 | ||
| @@ -2289,7 +2288,7 @@ Return nil if there is no valid completion, else t. */) | |||
| 2289 | { | 2288 | { |
| 2290 | int len, c; | 2289 | int len, c; |
| 2291 | int bytes = SBYTES (completion); | 2290 | int bytes = SBYTES (completion); |
| 2292 | completion_string = SDATA (completion); | 2291 | register const unsigned char *completion_string = SDATA (completion); |
| 2293 | for (; i_byte < SBYTES (completion); i_byte += len, i++) | 2292 | for (; i_byte < SBYTES (completion); i_byte += len, i++) |
| 2294 | { | 2293 | { |
| 2295 | c = STRING_CHAR_AND_LENGTH (completion_string + i_byte, | 2294 | c = STRING_CHAR_AND_LENGTH (completion_string + i_byte, |