diff options
| author | Paul Eggert | 2012-09-13 09:23:06 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-13 09:23:06 -0700 |
| commit | c18e885bdd2607ec1784c3e1585e581459408932 (patch) | |
| tree | aeacf95b156f43cd91086bb5152086915893da8d /src | |
| parent | d607d303028dca3d7d6ba21b4013f08dd2b0a1d6 (diff) | |
| download | emacs-c18e885bdd2607ec1784c3e1585e581459408932.tar.gz emacs-c18e885bdd2607ec1784c3e1585e581459408932.zip | |
Use a more backwards-compatible timer format.
* etc/NEWS: Document it.
* lisp/emacs-lisp/timer.el (timer): PSECS is now at the end, rather than
being right after USECS, as that better supports old code that
inadvisedly looked directly at the timer vector.
* src/keyboard.c (decode_timer): Get PSECS from the 8th (origin-0)
vector element, not from the 4th, since PSECS is now at the end.
(Fcurrent_idle_time): Doc fix.
Fixes: debbugs:12430
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/keyboard.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 153a0b59c62..a7fe68646d0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Use a more backwards-compatible timer format (Bug#12430). | ||
| 4 | * keyboard.c (decode_timer): Get PSECS from the 8th (origin-0) | ||
| 5 | vector element, not from the 4th, since PSECS is now at the end. | ||
| 6 | (Fcurrent_idle_time): Doc fix. | ||
| 7 | |||
| 1 | 2012-09-13 Dmitry Antipov <dmantipov@yandex.ru> | 8 | 2012-09-13 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 9 | ||
| 3 | Function to mark objects and remove killed buffers at once. | 10 | Function to mark objects and remove killed buffers at once. |
diff --git a/src/keyboard.c b/src/keyboard.c index aec9028ae94..45638bc412b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4330,7 +4330,7 @@ decode_timer (Lisp_Object timer, EMACS_TIME *result) | |||
| 4330 | if (! NILP (vector[0])) | 4330 | if (! NILP (vector[0])) |
| 4331 | return 0; | 4331 | return 0; |
| 4332 | 4332 | ||
| 4333 | return decode_time_components (vector[1], vector[2], vector[3], vector[4], | 4333 | return decode_time_components (vector[1], vector[2], vector[3], vector[8], |
| 4334 | result, 0); | 4334 | result, 0); |
| 4335 | } | 4335 | } |
| 4336 | 4336 | ||
| @@ -4532,7 +4532,7 @@ in the same style as (current-time). | |||
| 4532 | 4532 | ||
| 4533 | The value when Emacs is not idle is nil. | 4533 | The value when Emacs is not idle is nil. |
| 4534 | 4534 | ||
| 4535 | NSEC is a multiple of the system clock resolution. */) | 4535 | PSEC is a multiple of the system clock resolution. */) |
| 4536 | (void) | 4536 | (void) |
| 4537 | { | 4537 | { |
| 4538 | if (EMACS_TIME_VALID_P (timer_idleness_start_time)) | 4538 | if (EMACS_TIME_VALID_P (timer_idleness_start_time)) |