diff options
| author | Gerd Moellmann | 1999-09-20 23:18:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-20 23:18:42 +0000 |
| commit | 2ea0266e7ddab0f1f76f7b1bc18d535b4d01c5f7 (patch) | |
| tree | 05fead5104448548750de8d2005e491f719355c8 /src/editfns.c | |
| parent | 700fb05a4902dada401fc1a1e162165d47a152a5 (diff) | |
| download | emacs-2ea0266e7ddab0f1f76f7b1bc18d535b4d01c5f7.tar.gz emacs-2ea0266e7ddab0f1f76f7b1bc18d535b4d01c5f7.zip | |
(init_editfns): Remove unused variables.
(Fgoto_char, Fchar_after, Fformat): Ditto.
(message_text, message_length): Put in #ifndef HAVE_MENUS.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index c08017ded80..7068b358c9e 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -77,7 +77,7 @@ void | |||
| 77 | init_editfns () | 77 | init_editfns () |
| 78 | { | 78 | { |
| 79 | char *user_name; | 79 | char *user_name; |
| 80 | register unsigned char *p, *q, *r; | 80 | register unsigned char *p; |
| 81 | struct passwd *pw; /* password entry for the current user */ | 81 | struct passwd *pw; /* password entry for the current user */ |
| 82 | Lisp_Object tem; | 82 | Lisp_Object tem; |
| 83 | 83 | ||
| @@ -214,7 +214,6 @@ except in the case that `enable-multibyte-characters' is nil.") | |||
| 214 | register Lisp_Object position; | 214 | register Lisp_Object position; |
| 215 | { | 215 | { |
| 216 | int pos; | 216 | int pos; |
| 217 | unsigned char *p; | ||
| 218 | 217 | ||
| 219 | if (MARKERP (position) | 218 | if (MARKERP (position) |
| 220 | && current_buffer == XMARKER (position)->buffer) | 219 | && current_buffer == XMARKER (position)->buffer) |
| @@ -619,7 +618,6 @@ If POS is out of range, the value is nil.") | |||
| 619 | Lisp_Object pos; | 618 | Lisp_Object pos; |
| 620 | { | 619 | { |
| 621 | register int pos_byte; | 620 | register int pos_byte; |
| 622 | register Lisp_Object val; | ||
| 623 | 621 | ||
| 624 | if (NILP (pos)) | 622 | if (NILP (pos)) |
| 625 | { | 623 | { |
| @@ -2350,12 +2348,16 @@ use `save-excursion' outermost:\n\ | |||
| 2350 | return unbind_to (count, val); | 2348 | return unbind_to (count, val); |
| 2351 | } | 2349 | } |
| 2352 | 2350 | ||
| 2351 | #ifndef HAVE_MENUS | ||
| 2352 | |||
| 2353 | /* Buffer for the most recent text displayed by Fmessage. */ | 2353 | /* Buffer for the most recent text displayed by Fmessage. */ |
| 2354 | static char *message_text; | 2354 | static char *message_text; |
| 2355 | 2355 | ||
| 2356 | /* Allocated length of that buffer. */ | 2356 | /* Allocated length of that buffer. */ |
| 2357 | static int message_length; | 2357 | static int message_length; |
| 2358 | 2358 | ||
| 2359 | #endif /* not HAVE_MENUS */ | ||
| 2360 | |||
| 2359 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, | 2361 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, |
| 2360 | "Print a one-line message at the bottom of the screen.\n\ | 2362 | "Print a one-line message at the bottom of the screen.\n\ |
| 2361 | The first argument is a format control string, and the rest are data\n\ | 2363 | The first argument is a format control string, and the rest are data\n\ |
| @@ -2495,7 +2497,7 @@ Use %% to put a single % into the output.") | |||
| 2495 | register int total; /* An estimate of the final length */ | 2497 | register int total; /* An estimate of the final length */ |
| 2496 | char *buf, *p; | 2498 | char *buf, *p; |
| 2497 | register unsigned char *format, *end; | 2499 | register unsigned char *format, *end; |
| 2498 | int length, nchars; | 2500 | int nchars; |
| 2499 | /* Nonzero if the output should be a multibyte string, | 2501 | /* Nonzero if the output should be a multibyte string, |
| 2500 | which is true if any of the inputs is one. */ | 2502 | which is true if any of the inputs is one. */ |
| 2501 | int multibyte = 0; | 2503 | int multibyte = 0; |