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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -400,6 +400,10 @@ Use macro 'with-current-buffer-window' with action alist entry 'body-function'. | |||
| 400 | 400 | ||
| 401 | * Lisp Changes in Emacs 28.1 | 401 | * Lisp Changes in Emacs 28.1 |
| 402 | 402 | ||
| 403 | +++ | ||
| 404 | ** New function 'file-modes-number-to-symbolic' to convert a numeric | ||
| 405 | file mode specification into symbolic form. | ||
| 406 | |||
| 403 | ** New macro 'dlet' to dynamically bind variables. | 407 | ** New macro 'dlet' to dynamically bind variables. |
| 404 | 408 | ||
| 405 | ** The variable 'force-new-style-backquotes' has been removed. | 409 | ** The variable 'force-new-style-backquotes' has been removed. |