aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2000-08-22 22:49:22 +0000
committerStefan Monnier2000-08-22 22:49:22 +0000
commit739cc391758f1779ef4337726d49e1025e82b026 (patch)
treef6abd6f3099e69c1c923a01c3ec37a87f03d8e44 /src
parent49dc9682b7a2d79221c9652abe469b5eaccf440a (diff)
downloademacs-739cc391758f1779ef4337726d49e1025e82b026.tar.gz
emacs-739cc391758f1779ef4337726d49e1025e82b026.zip
(Vcompletion_auto_help): Renamed from `auto_help'.
(do_completion, Fminibuffer_complete_word): Use it. (syms_of_minibuf): Turn completion-auto-help into a proper Lisp var so it can take non-boolean values.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 464dc37093f..19c06105fbc 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -54,7 +54,7 @@ int minibuf_level;
54 54
55/* Nonzero means display completion help for invalid input. */ 55/* Nonzero means display completion help for invalid input. */
56 56
57int auto_help; 57Lisp_Object Vcompletion_auto_help;
58 58
59/* The maximum length of a minibuffer history. */ 59/* The maximum length of a minibuffer history. */
60 60
@@ -1637,7 +1637,7 @@ do_completion ()
1637 UNGCPRO; 1637 UNGCPRO;
1638 if (completedp) 1638 if (completedp)
1639 return 5; 1639 return 5;
1640 else if (auto_help) 1640 else if (!NILP (Vcompletion_auto_help))
1641 Fminibuffer_completion_help (); 1641 Fminibuffer_completion_help ();
1642 else 1642 else
1643 temp_echo_area_glyphs (" [Next char not unique]"); 1643 temp_echo_area_glyphs (" [Next char not unique]");
@@ -1974,7 +1974,7 @@ Return nil if there is no valid completion, else t.")
1974 1974
1975 if (i == ZV - prompt_end_charpos) 1975 if (i == ZV - prompt_end_charpos)
1976 { 1976 {
1977 if (auto_help) 1977 if (!NILP (Vcompletion_auto_help))
1978 Fminibuffer_completion_help (); 1978 Fminibuffer_completion_help ();
1979 return Qnil; 1979 return Qnil;
1980 } 1980 }
@@ -2358,9 +2358,9 @@ just after a new element is inserted. Setting the history-length\n\
2358property of a history variable overrides this default."); 2358property of a history variable overrides this default.");
2359 XSETFASTINT (Vhistory_length, 30); 2359 XSETFASTINT (Vhistory_length, 30);
2360 2360
2361 DEFVAR_BOOL ("completion-auto-help", &auto_help, 2361 DEFVAR_LISP ("completion-auto-help", &Vcompletion_auto_help,
2362 "*Non-nil means automatically provide help for invalid completion input."); 2362 "*Non-nil means automatically provide help for invalid completion input.");
2363 auto_help = 1; 2363 Vcompletion_auto_help = Qt;
2364 2364
2365 DEFVAR_BOOL ("completion-ignore-case", &completion_ignore_case, 2365 DEFVAR_BOOL ("completion-ignore-case", &completion_ignore_case,
2366 "Non-nil means don't consider case significant in completion."); 2366 "Non-nil means don't consider case significant in completion.");