diff options
| author | Tino Calancha | 2020-05-08 22:14:03 +0200 |
|---|---|---|
| committer | Tino Calancha | 2020-05-14 18:43:15 +0200 |
| commit | 3a284e578625e617fdc6085ae11da2b4e41bb59b (patch) | |
| tree | ff6c8708cc3cd9d892d2433be5adbf9156584157 /doc | |
| parent | 4af8b17149ee04655f038229c6103963f247ff87 (diff) | |
| download | emacs-3a284e578625e617fdc6085ae11da2b4e41bb59b.tar.gz emacs-3a284e578625e617fdc6085ae11da2b4e41bb59b.zip | |
Combine archive-int-to-mode and tar-grind-file-modebug27952_combine-tar-grind-file-mode_archive-int-to-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')
| -rw-r--r-- | doc/lispref/files.texi | 5 |
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 | |||
| 1909 | all. | 1909 | all. |
| 1910 | @end defun | 1910 | @end defun |
| 1911 | 1911 | ||
| 1912 | @defun file-modes-number-to-symbolic modes | ||
| 1913 | This function converts a numeric file mode specification in | ||
| 1914 | @var{modes} into the equivalent symbolic form. | ||
| 1915 | @end defun | ||
| 1916 | |||
| 1912 | @defun set-file-times filename &optional time flag | 1917 | @defun set-file-times filename &optional time flag |
| 1913 | This function sets the access and modification times of @var{filename} | 1918 | This function sets the access and modification times of @var{filename} |
| 1914 | to @var{time}. The return value is @code{t} if the times are successfully | 1919 | to @var{time}. The return value is @code{t} if the times are successfully |