aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-16 12:52:20 +0000
committerGerd Moellmann1999-09-16 12:52:20 +0000
commit13c67cc64533a4b4b60f3e15a794d26e351f5ba5 (patch)
tree187e72c556f3e85379d1ea2c8673c8e267a6fe94 /src
parent88d33e526404071264403f727008c8977ae8025a (diff)
downloademacs-13c67cc64533a4b4b60f3e15a794d26e351f5ba5.tar.gz
emacs-13c67cc64533a4b4b60f3e15a794d26e351f5ba5.zip
(read_minibuf): Remove unused variables.
(read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. (do_completion): Move assignment out of conditional context. (Fdisplay_completion_list): Add parentheses to conditional expression.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 8df58b42206..7ae4c91a228 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -248,7 +248,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
248 Lisp_Object mini_frame, ambient_dir, minibuffer, input_method; 248 Lisp_Object mini_frame, ambient_dir, minibuffer, input_method;
249 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; 249 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
250 Lisp_Object enable_multibyte; 250 Lisp_Object enable_multibyte;
251 extern Lisp_Object Qinvisible, Qintangible, Qread_only, Qfront_sticky; 251 extern Lisp_Object Qread_only, Qfront_sticky;
252 extern Lisp_Object Qrear_nonsticky; 252 extern Lisp_Object Qrear_nonsticky;
253 253
254 specbind (Qminibuffer_default, defalt); 254 specbind (Qminibuffer_default, defalt);
@@ -512,7 +512,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
512 if (expflag) 512 if (expflag)
513 { 513 {
514 Lisp_Object expr_and_pos; 514 Lisp_Object expr_and_pos;
515 unsigned char *p;
516 int pos; 515 int pos;
517 516
518 if (STRINGP (val) && XSTRING (val)->size == 0 517 if (STRINGP (val) && XSTRING (val)->size == 0
@@ -891,7 +890,6 @@ If optional third arg REQUIRE-MATCH is non-nil, only existing buffer names are a
891 (prompt, def, require_match) 890 (prompt, def, require_match)
892 Lisp_Object prompt, def, require_match; 891 Lisp_Object prompt, def, require_match;
893{ 892{
894 Lisp_Object tem;
895 Lisp_Object args[4]; 893 Lisp_Object args[4];
896 894
897 if (BUFFERP (def)) 895 if (BUFFERP (def))
@@ -1158,7 +1156,6 @@ scmp (s1, s2, len)
1158 int len; 1156 int len;
1159{ 1157{
1160 register int l = len; 1158 register int l = len;
1161 register unsigned char *start = s1;
1162 1159
1163 if (completion_ignore_case) 1160 if (completion_ignore_case)
1164 { 1161 {
@@ -1374,7 +1371,6 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 8, 0,
1374 int pos = 0; 1371 int pos = 0;
1375 int count = specpdl_ptr - specpdl; 1372 int count = specpdl_ptr - specpdl;
1376 struct gcpro gcpro1; 1373 struct gcpro gcpro1;
1377 int disable_multibyte = ! NILP (Vminibuffer_completing_file_name);
1378 1374
1379 GCPRO1 (def); 1375 GCPRO1 (def);
1380 1376
@@ -1512,7 +1508,8 @@ do_completion ()
1512 1508
1513 /* compiler bug */ 1509 /* compiler bug */
1514 tem = Fstring_equal (completion, Fbuffer_string()); 1510 tem = Fstring_equal (completion, Fbuffer_string());
1515 if (completedp = NILP (tem)) 1511 completedp = NILP (tem);
1512 if (completedp)
1516 { 1513 {
1517 Ferase_buffer (); /* Some completion happened */ 1514 Ferase_buffer (); /* Some completion happened */
1518 Finsert (1, &completion); 1515 Finsert (1, &completion);
@@ -1941,7 +1938,7 @@ It can find the completion buffer in `standard-output'.")
1941 don't put another on the same line. */ 1938 don't put another on the same line. */
1942 if (column > 33 || first 1939 if (column > 33 || first
1943 /* If this is really wide, don't put it second on a line. */ 1940 /* If this is really wide, don't put it second on a line. */
1944 || column > 0 && length > 45) 1941 || (column > 0 && length > 45))
1945 { 1942 {
1946 Fterpri (Qnil); 1943 Fterpri (Qnil);
1947 column = 0; 1944 column = 0;