1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/test/lisp
Paul Eggert 5d4cf1fef8 Add ‘nofollow’ flag to set-file-times
This is a companion to the recent set-file-modes patch.
It adds support for a ‘nofollow’ flag to set-file-times (Bug#39773).
Like the set-file-modes patch, it needs work in the w32 port.
* admin/merge-gnulib (GNULIB_MODULES): Add futimens, utimensat.
Remove utimens.
* doc/lispref/files.texi (Changing Files):
* etc/NEWS: Mention the change.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lisp/files.el (copy-directory):
* lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file):
* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file):
* lisp/tar-mode.el (tar-copy):
* test/lisp/filenotify-tests.el (file-notify-test03-events):
* test/lisp/files-tests.el:
(files-tests-file-name-non-special-set-file-times):
* test/lisp/net/tramp-tests.el (tramp-test22-file-times):
When setting file times, avoid following symbolic links
when the file is not supposed to be a symbolic link.
* lib/futimens.c, lib/utimensat.c, m4/futimens.m4, m4/utimensat.m4:
New files, copied from Gnulib.
* lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file):
When creating a file that is not supposed to exist already,
use the excl flag to check this.
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
Accept an optional FLAG arg that is currently ignored,
and add a FIXME comment for it.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times):
* src/fileio.c (Fset_file_times):
Support an optional FLAG arg.
* src/fileio.c (Fcopy_file): Use futimens instead of set_file_times,
as it’s simpler and is a POSIX API.
* src/sysdep.c (set_file_times): Move from here ...
* src/w32.c (set_file_times): ... to here, and make it static,
since it is now used only in w32.c.  Presumably w32.c should also
add support for futimens and utimensat (the POSIX APIs, which
Emacs now uses) and it can remove fdutimens (the Gnulib API,
which Emacs no longer uses).
2020-03-07 12:15:43 -08:00
..
bookmark-resources Add tests for bookmark.el (Bug#36452) 2019-07-03 14:49:38 +03:00
calc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calendar Give fuller support for obsolete ---12 dates in iso8601 2020-01-30 03:02:48 +01:00
cedet Fix copyright years by hand 2020-01-01 01:01:53 +00:00
custom-resources New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
emacs-lisp Merge from origin/emacs-27 2020-03-07 07:50:28 -08:00
emulation Update copyright year to 2020 2020-01-01 00:59:52 +00:00
erc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eshell Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image Update copyright year to 2020 2020-01-01 00:59:52 +00:00
international Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
mail Update copyright year to 2020 2020-01-01 00:59:52 +00:00
net Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
nxml Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obsolete Update copyright year to 2020 2020-01-01 00:59:52 +00:00
org Update copyright year to 2020 2020-01-01 00:59:52 +00:00
play Update copyright year to 2020 2020-01-01 00:59:52 +00:00
progmodes Make OMake support slightly less expensive (bug#39595) 2020-02-17 11:23:41 +01:00
so-long-tests Update copyright year to 2020 2020-01-01 00:59:52 +00:00
term Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textmodes Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
url Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc Update copyright year to 2020 2020-01-01 00:59:52 +00:00
abbrev-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
arc-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el: Test for multiple ports. 2020-01-22 07:37:01 +01:00
auth-source-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoinsert-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autorevert-tests.el Minor cleanup in {autorevert,filenotify,shadowfile}-tests.el 2020-01-22 11:45:26 +01:00
bookmark-tests.el Add more tests for bookmark-bmenu-list 2020-01-26 04:11:38 +01:00
buff-menu-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
button-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
char-fold-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
color-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
comint-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
custom-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dabbrev-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
delim-col-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
descr-text-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-aux-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dom-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
electric-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
epg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faces-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ffap-tests.el Fix sxhash-equal on bytecodes, markers, etc. 2020-01-07 11:29:42 -08:00
filenotify-tests.el Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
files-tests.el Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
files-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
font-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
format-spec-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
help-fns-tests.el Provide default for describe-keymap prompt 2020-02-04 02:04:20 +01:00
help-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
hi-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
htmlfontify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ibuffer-tests.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
ido-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-file-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
imenu-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
info-xref-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
isearch-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
jit-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
json-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
jsonrpc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
kmacro-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ls-lisp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
makesum-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
man-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
md4-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obarray-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
paren-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
password-cache-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ps-print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
register-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
replace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rot13-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
scroll-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ses-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shadowfile-tests.el Minor cleanup in {autorevert,filenotify,shadowfile}-tests.el 2020-01-22 11:45:26 +01:00
shell-tests.el Fix shell-tests failures 2020-01-20 15:52:27 +01:00
simple-tests.el * lisp/simple.el (undo-redo): New command 2020-02-08 22:06:41 -05:00
sort-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
soundex-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
subr-tests.el Add tests for version comparison predicates 2020-01-24 18:28:53 +01:00
tabify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tar-mode-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tempo-tests.el Allow tempo-define-template to reassign tags to new templates 2020-02-21 11:15:00 +02:00
term-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thingatpt-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
time-stamp-tests.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
timezone-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
wdired-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
whitespace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
wid-edit-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xdg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xml-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xt-mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00