diff options
| author | Paul Eggert | 2013-07-09 23:26:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-09 23:26:23 -0700 |
| commit | 954b166e9037de5fdd43b4fbe7b8c73a36ac402e (patch) | |
| tree | 4a1aa065be1ec87b53fdaff13f1129863ba2ebb5 /etc | |
| parent | 56973319b58a66e97ae45e050f9f943ff8f1439b (diff) | |
| download | emacs-954b166e9037de5fdd43b4fbe7b8c73a36ac402e.tar.gz emacs-954b166e9037de5fdd43b4fbe7b8c73a36ac402e.zip | |
Timestamp fixes for undo.
* doc/lispref/text.texi (Undo):
Document (t . 0) and (t . -1) in buffer-undo-list.
* etc/NEWS: Changes to visited-file-modtime, set-visited-file-modtime.
* lisp/files.el (clear-visited-file-modtime): Move here from fileio.c.
* src/atimer.c (schedule_atimer):
* src/fileio.c (Ffile_newer_than_file_p):
Minor cleanup: use EMACS_TIME_LT so that we can remove EMACS_TIME_GT.
* src/buffer.c (buffer-undo-list): Document (t . 0) and (t . -1).
* src/fileio.c (Fclear_visited_file_modtime): Move to lisp/files.el.
(syms_of_fileio): Remove Sclear_visited_file_name.
(Fvisited_file_modtime): Return -1, not (-1 ...), when the visited
file doesn't exist; this avoids an ambiguity with negative timestamps.
(Fset_visited_file_modtime): Accept -1 and 0 as time-list arg.
* src/systime.h (make_emacs_time, invalid_emacs_time):
Don't assume struct timespec layout; POSIX doesn't guarantee it.
(EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE): Remove.
* src/undo.c (record_first_change): Push (visited-file-modtime) onto
undo list rather than reimplementing it by hand, incorrectly.
Fixes: debbugs:14824
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/NEWS | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 843f176a6a8..9ed1b6e0df7 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-07-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Timestamp fixes for undo (Bug#14824). | ||
| 4 | * NEWS: Changes to visited-file-modtime, set-visited-file-modtime. | ||
| 5 | |||
| 1 | 2013-07-08 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2013-07-08 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * NEWS: NS can be build with ImageMagick. | 8 | * NEWS: NS can be build with ImageMagick. |
| @@ -537,6 +537,9 @@ alist of extended attributes as returned by the new function | |||
| 537 | `file-extended-attributes'. The attributes can be applied to another | 537 | `file-extended-attributes'. The attributes can be applied to another |
| 538 | file using `set-file-extended-attributes'. | 538 | file using `set-file-extended-attributes'. |
| 539 | 539 | ||
| 540 | ** `visited-file-modtime' now returns -1 for nonexistent files. | ||
| 541 | Formerly it returned a list (-1 LOW USEC PSEC), but this was ambiguous | ||
| 542 | in the presence of files with negative time stamps. | ||
| 540 | 543 | ||
| 541 | * Lisp Changes in Emacs 24.4 | 544 | * Lisp Changes in Emacs 24.4 |
| 542 | 545 | ||
| @@ -613,6 +616,9 @@ Emacs uses `image-default-frame-delay'. | |||
| 613 | *** New functions `image-current-frame' and `image-show-frame' for getting | 616 | *** New functions `image-current-frame' and `image-show-frame' for getting |
| 614 | and setting the current frame of a multi-frame image. | 617 | and setting the current frame of a multi-frame image. |
| 615 | 618 | ||
| 619 | ** The function `set-visited-file-modtime' now accepts a 0 or -1 argument | ||
| 620 | with the same interpretation as the returned value of `visited-file-modtime'. | ||
| 621 | |||
| 616 | ** time-to-seconds is not obsolete any more. | 622 | ** time-to-seconds is not obsolete any more. |
| 617 | ** New function special-form-p. | 623 | ** New function special-form-p. |
| 618 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' | 624 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' |