aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-05 01:51:54 +0000
committerRichard M. Stallman1993-08-05 01:51:54 +0000
commit0ce830bc2648634e9dfbb8ede58f5457a7d4a83e (patch)
tree428aed7ef39423f82a2ecded9361a0dbfd4ed2ca /src
parent97c48db572b849a8ae8ba2aaa70eec6085799f15 (diff)
downloademacs-0ce830bc2648634e9dfbb8ede58f5457a7d4a83e.tar.gz
emacs-0ce830bc2648634e9dfbb8ede58f5457a7d4a83e.zip
(Fyes_or_no_p): Use Qyes_or_no_p_history.
(syms_of_fns): Set up Qyes_or_no_p_history.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 18d645dcd17..192711ec27c 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -33,6 +33,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
33#include "intervals.h" 33#include "intervals.h"
34 34
35Lisp_Object Qstring_lessp, Qprovide, Qrequire; 35Lisp_Object Qstring_lessp, Qprovide, Qrequire;
36Lisp_Object Qyes_or_no_p_history;
36 37
37static Lisp_Object internal_equal (); 38static Lisp_Object internal_equal ();
38 39
@@ -1216,7 +1217,8 @@ and can edit it until it as been confirmed.")
1216 GCPRO1 (prompt); 1217 GCPRO1 (prompt);
1217 while (1) 1218 while (1)
1218 { 1219 {
1219 ans = Fdowncase (Fread_string (prompt, Qnil)); 1220 ans = Fdowncase (Fread_from_minibuffer (prompt, Qnil, Qnil, Qnil,
1221 Qyes_or_no_p_history));
1220 if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes")) 1222 if (XSTRING (ans)->size == 3 && !strcmp (XSTRING (ans)->data, "yes"))
1221 { 1223 {
1222 UNGCPRO; 1224 UNGCPRO;
@@ -1333,6 +1335,8 @@ syms_of_fns ()
1333 staticpro (&Qprovide); 1335 staticpro (&Qprovide);
1334 Qrequire = intern ("require"); 1336 Qrequire = intern ("require");
1335 staticpro (&Qrequire); 1337 staticpro (&Qrequire);
1338 Qyes_or_no_p_history = intern ("yes-or-no-p-history");
1339 staticpro (&Qyes_or_no_p_history);
1336 1340
1337 DEFVAR_LISP ("features", &Vfeatures, 1341 DEFVAR_LISP ("features", &Vfeatures,
1338 "A list of symbols which are the features of the executing emacs.\n\ 1342 "A list of symbols which are the features of the executing emacs.\n\