aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-10-21 17:40:03 +0000
committerRichard M. Stallman2006-10-21 17:40:03 +0000
commit627fb581aed103ff9ed9268d8bff8aea44845415 (patch)
tree4fa88fc1f9e912456e81bbd48abcef1cc41e79be /src
parentcd987aaa0a8254a701886b3c32c269b09025c7a1 (diff)
downloademacs-627fb581aed103ff9ed9268d8bff8aea44845415.tar.gz
emacs-627fb581aed103ff9ed9268d8bff8aea44845415.zip
(Vread_expression_map): Define here.
(Qread_expression_history): New variable. (syms_of_minibuf): Initialize them. (Feval_minibuffer): Use Vread_expression_map and Qread_expression_history.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/minibuf.c18
2 files changed, 24 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 930c2a44d4d..2a10a65c71b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12006-10-21 Richard Stallman <rms@gnu.org>
2
3 * minibuf.c (Vread_expression_map): Define here.
4 (Qread_expression_history): New variable.
5 (syms_of_minibuf): Initialize them.
6 (Feval_minibuffer): Use Vread_expression_map and
7 Qread_expression_history.
8
12006-10-21 Kenichi Handa <handa@m17n.org> 92006-10-21 Kenichi Handa <handa@m17n.org>
2 10
3 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild 11 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
diff --git a/src/minibuf.c b/src/minibuf.c
index bb9c80b4e7d..46c54d8724f 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -132,7 +132,8 @@ int minibuffer_auto_raise;
132 132
133static Lisp_Object last_exact_completion; 133static Lisp_Object last_exact_completion;
134 134
135extern Lisp_Object Voverriding_local_map; 135/* Keymap for reading expressions. */
136Lisp_Object Vread_expression_map;
136 137
137Lisp_Object Quser_variable_p; 138Lisp_Object Quser_variable_p;
138 139
@@ -142,6 +143,10 @@ Lisp_Object Qcurrent_input_method, Qactivate_input_method;
142 143
143Lisp_Object Qcase_fold_search; 144Lisp_Object Qcase_fold_search;
144 145
146Lisp_Object Qread_expression_history;
147
148extern Lisp_Object Voverriding_local_map;
149
145extern Lisp_Object Qmouse_face; 150extern Lisp_Object Qmouse_face;
146 151
147extern Lisp_Object Qfield; 152extern Lisp_Object Qfield;
@@ -1040,7 +1045,9 @@ arguments are used as in `read-from-minibuffer'.) */)
1040 (prompt, initial_contents) 1045 (prompt, initial_contents)
1041 Lisp_Object prompt, initial_contents; 1046 Lisp_Object prompt, initial_contents;
1042{ 1047{
1043 return Feval (Fread_minibuffer (prompt, initial_contents)); 1048 return Feval (read_minibuf (Vread_expression_map, initial_contents,
1049 prompt, Qnil, 1, Qread_expression_history,
1050 make_number (0), Qnil, 0, 0));
1044} 1051}
1045 1052
1046/* Functions that use the minibuffer to read various things. */ 1053/* Functions that use the minibuffer to read various things. */
@@ -2808,6 +2815,9 @@ syms_of_minibuf ()
2808 Qcase_fold_search = intern ("case-fold-search"); 2815 Qcase_fold_search = intern ("case-fold-search");
2809 staticpro (&Qcase_fold_search); 2816 staticpro (&Qcase_fold_search);
2810 2817
2818 Qread_expression_history = intern ("read-expression-history");
2819 staticpro (&Qread_expression_history);
2820
2811 DEFVAR_LISP ("read-buffer-function", &Vread_buffer_function, 2821 DEFVAR_LISP ("read-buffer-function", &Vread_buffer_function,
2812 doc: /* If this is non-nil, `read-buffer' does its work by calling this function. */); 2822 doc: /* If this is non-nil, `read-buffer' does its work by calling this function. */);
2813 Vread_buffer_function = Qnil; 2823 Vread_buffer_function = Qnil;
@@ -2933,6 +2943,10 @@ properties. */);
2933 Vminibuffer_prompt_properties 2943 Vminibuffer_prompt_properties
2934 = Fcons (intern ("read-only"), Fcons (Qt, Qnil)); 2944 = Fcons (intern ("read-only"), Fcons (Qt, Qnil));
2935 2945
2946 DEFVAR_LISP ("read-expression-map", &Vread_expression_map,
2947 doc: /* Minibuffer keymap used for reading Lisp expressions. */);
2948 Vread_expression_map = Qnil;
2949
2936 defsubr (&Sset_minibuffer_window); 2950 defsubr (&Sset_minibuffer_window);
2937 defsubr (&Sread_from_minibuffer); 2951 defsubr (&Sread_from_minibuffer);
2938 defsubr (&Seval_minibuffer); 2952 defsubr (&Seval_minibuffer);