summaryrefslogtreecommitdiff
path: root/doc/lispref/files.texi
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2020-05-08 22:14:03 +0200
committerTino Calancha <tino.calancha@gmail.com>2020-05-14 18:43:15 +0200
commit3a284e578625e617fdc6085ae11da2b4e41bb59b (patch)
treeff6c8708cc3cd9d892d2433be5adbf9156584157 /doc/lispref/files.texi
parent4af8b17149ee04655f038229c6103963f247ff87 (diff)
downloademacs-3a284e578625e617fdc6085ae11da2b4e41bb59b.tar.gz
emacs-3a284e578625e617fdc6085ae11da2b4e41bb59b.tar.bz2
emacs-3a284e578625e617fdc6085ae11da2b4e41bb59b.zip
Combine archive-int-to-mode and tar-grind-file-mode
Add a new function, file-modes-number-to-symbolic. Make archive-int-to-mode and obsolete alias of it; use it to define tar-grind-file-mode (Bug#27952). * lisp/files.el (file-modes-number-to-symbolic): New defun. * lisp/arc-mode.el (archive-int-to-mode): Make it an obsolete alias. * lisp/tar-mode.el (tar-grind-file-mode): Use file-modes-number-to-symbolic. * test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode) * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): Update test. * test/lisp/files-tests.el (files-tests-file-modes-symbolic-to-number) (files-tests-file-modes-number-to-symbolic): New tests. * doc/lispref/files.texi (Changing Files): Document the new funtion. * etc/NEWS (Lisp Changes in Emacs 28.1): Announce it.
Diffstat (limited to 'doc/lispref/files.texi')
-rw-r--r--doc/lispref/files.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index b3ad9b99649..686dbdb1caf 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1909,6 +1909,11 @@ omitted or @code{nil}, it defaults to 0, i.e., no access rights at
all.
@end defun
+@defun file-modes-number-to-symbolic modes
+This function converts a numeric file mode specification in
+@var{modes} into the equivalent symbolic form.
+@end defun
+
@defun set-file-times filename &optional time flag
This function sets the access and modification times of @var{filename}
to @var{time}. The return value is @code{t} if the times are successfully