]> git.eshelyaron.com Git - emacs.git/commit
* lisp/arc-mode.el: Use cl-structs rather than vectors
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 3 Apr 2020 20:45:54 +0000 (16:45 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 3 Apr 2020 20:45:54 +0000 (16:45 -0400)
commitc640be60d918d5a7be4d9d5e717cf159f878d38c
treead9ab7ec07f3b274f34bdab74aaae748976c397a
parent9b995320c853a45d785896fb25f788f9248658f4
* lisp/arc-mode.el: Use cl-structs rather than vectors

(archive--file-desc, archive--file-summary, archive-arc--file-desc)
(archive-lzh--file-desc, archive-zip--file-desc)
(archive-zoo--file-desc, archive-rar--file-desc)
(archive-7z--file-desc, archive-ar--file-desc): New structs.

(archive-get-descr, archive-mode, archive-summarize-files)
(archive-maybe-copy, archive-extract, archive-*-write-file-member)
(archive-expunge, archive-arc-summarize, archive-arc-rename-entry)
(archive-lzh-summarize, archive-lzh-rename-entry, archive-lzh-ogm)
(archive-zip-summarize, archive-zip-write-file-member)
(archive-zip-chmod-entry, archive-zoo-summarize)
(archive-rar-summarize, archive-7z-summarize, archive-ar-summarize)
(archive-ar-write-file-member): Use struct constructors and accessors
instead of `vector` and `aref`.

(archive-calc-mode): Remove `error` arg which was always non-nil;
adjust all callers.
Rewrite using `string-to-number` and `file-modes-symbolic-to-number`.
lisp/arc-mode.el