[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/lread.c,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/src/lread.c,v |
Date: |
Thu, 14 Aug 2008 19:24:54 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/08/14 19:24:54
Index: lread.c
===================================================================
RCS file: /sources/emacs/emacs/src/lread.c,v
retrieving revision 1.399
retrieving revision 1.400
diff -u -b -r1.399 -r1.400
--- lread.c 31 Jul 2008 05:33:52 -0000 1.399
+++ lread.c 14 Aug 2008 19:24:54 -0000 1.400
@@ -791,13 +791,13 @@
Lisp_Object prompt, inherit_input_method, seconds;
{
Lisp_Object val;
- int c;
if (! NILP (prompt))
message_with_string ("%s", prompt, 0);
val = read_filtered_event (1, 1, 1, ! NILP (inherit_input_method), seconds);
- c = XINT (val);
- return make_number (char_resolve_modifier_mask (c));
+
+ return (NILP (val) ? Qnil
+ : make_number (char_resolve_modifier_mask (XINT (val))));
}
DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0,
@@ -836,13 +836,14 @@
Lisp_Object prompt, inherit_input_method, seconds;
{
Lisp_Object val;
- int c;
if (! NILP (prompt))
message_with_string ("%s", prompt, 0);
+
val = read_filtered_event (1, 1, 0, ! NILP (inherit_input_method), seconds);
- c = XINT (val);
- return make_number (char_resolve_modifier_mask (c));
+
+ return (NILP (val) ? Qnil
+ : make_number (char_resolve_modifier_mask (XINT (val))));
}
DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/lread.c,v,
Chong Yidong <=