Mercurial > emacs
comparison src/fns.c @ 2171:4fbceca13b22
* fns.c (Fy_or_n_p): Display the answer.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 14 Mar 1993 20:56:05 +0000 |
parents | eedbad26e34c |
children | 98b714786ad0 |
comparison
equal
deleted
inserted
replaced
2170:3f45176fe02f | 2171:4fbceca13b22 |
---|---|
1148 args[1] = prompt; | 1148 args[1] = prompt; |
1149 xprompt = Fconcat (2, args); | 1149 xprompt = Fconcat (2, args); |
1150 } | 1150 } |
1151 } | 1151 } |
1152 UNGCPRO; | 1152 UNGCPRO; |
1153 | |
1154 message ("%s(y or n) %c", XSTRING (xprompt)->data, answer ? 'y' : 'n'); | |
1155 | |
1153 return answer ? Qt : Qnil; | 1156 return answer ? Qt : Qnil; |
1154 } | 1157 } |
1155 | 1158 |
1156 /* This is how C code calls `yes-or-no-p' and allows the user | 1159 /* This is how C code calls `yes-or-no-p' and allows the user |
1157 to redefined it. | 1160 to redefined it. |