diff options
| author | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
| commit | adf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch) | |
| tree | a5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /src/lread.c | |
| parent | 63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff) | |
| parent | 38726039b77db432989fed106c88e9f1aa463281 (diff) | |
| download | emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip | |
Merge from mainline.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c index 57c7df74127..9518631ba6d 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -609,7 +609,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 609 | bool error_nonascii, bool input_method, Lisp_Object seconds) | 609 | bool error_nonascii, bool input_method, Lisp_Object seconds) |
| 610 | { | 610 | { |
| 611 | Lisp_Object val, delayed_switch_frame; | 611 | Lisp_Object val, delayed_switch_frame; |
| 612 | EMACS_TIME end_time; | 612 | struct timespec end_time; |
| 613 | 613 | ||
| 614 | #ifdef HAVE_WINDOW_SYSTEM | 614 | #ifdef HAVE_WINDOW_SYSTEM |
| 615 | if (display_hourglass_p) | 615 | if (display_hourglass_p) |
| @@ -622,8 +622,8 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 622 | if (NUMBERP (seconds)) | 622 | if (NUMBERP (seconds)) |
| 623 | { | 623 | { |
| 624 | double duration = extract_float (seconds); | 624 | double duration = extract_float (seconds); |
| 625 | EMACS_TIME wait_time = EMACS_TIME_FROM_DOUBLE (duration); | 625 | struct timespec wait_time = dtotimespec (duration); |
| 626 | end_time = add_emacs_time (current_emacs_time (), wait_time); | 626 | end_time = timespec_add (current_timespec (), wait_time); |
| 627 | } | 627 | } |
| 628 | 628 | ||
| 629 | /* Read until we get an acceptable event. */ | 629 | /* Read until we get an acceptable event. */ |
| @@ -1262,7 +1262,7 @@ Return t if the file exists and loads successfully. */) | |||
| 1262 | } | 1262 | } |
| 1263 | 1263 | ||
| 1264 | if (result == 0 | 1264 | if (result == 0 |
| 1265 | && EMACS_TIME_LT (get_stat_mtime (&s1), get_stat_mtime (&s2))) | 1265 | && timespec_cmp (get_stat_mtime (&s1), get_stat_mtime (&s2)) < 0) |
| 1266 | { | 1266 | { |
| 1267 | /* Make the progress messages mention that source is newer. */ | 1267 | /* Make the progress messages mention that source is newer. */ |
| 1268 | newer = 1; | 1268 | newer = 1; |
| @@ -3229,7 +3229,7 @@ substitute_object_recurse (Lisp_Object object, Lisp_Object placeholder, Lisp_Obj | |||
| 3229 | if (BOOL_VECTOR_P (subtree)) | 3229 | if (BOOL_VECTOR_P (subtree)) |
| 3230 | return subtree; /* No sub-objects anyway. */ | 3230 | return subtree; /* No sub-objects anyway. */ |
| 3231 | else if (CHAR_TABLE_P (subtree) || SUB_CHAR_TABLE_P (subtree) | 3231 | else if (CHAR_TABLE_P (subtree) || SUB_CHAR_TABLE_P (subtree) |
| 3232 | || COMPILEDP (subtree)) | 3232 | || COMPILEDP (subtree) || HASH_TABLE_P (subtree)) |
| 3233 | length = ASIZE (subtree) & PSEUDOVECTOR_SIZE_MASK; | 3233 | length = ASIZE (subtree) & PSEUDOVECTOR_SIZE_MASK; |
| 3234 | else if (VECTORP (subtree)) | 3234 | else if (VECTORP (subtree)) |
| 3235 | length = ASIZE (subtree); | 3235 | length = ASIZE (subtree); |