]> git.eshelyaron.com Git - emacs.git/commit
Combine archive-int-to-mode and tar-grind-file-mode
authorTino Calancha <tino.calancha@gmail.com>
Fri, 8 May 2020 20:14:03 +0000 (22:14 +0200)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 14 May 2020 16:43:15 +0000 (18:43 +0200)
commit3a284e578625e617fdc6085ae11da2b4e41bb59b
treeff6c8708cc3cd9d892d2433be5adbf9156584157
parent4af8b17149ee04655f038229c6103963f247ff87
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.
doc/lispref/files.texi
etc/NEWS
lisp/arc-mode.el
lisp/files.el
lisp/tar-mode.el
test/lisp/arc-mode-tests.el
test/lisp/files-tests.el
test/lisp/tar-mode-tests.el