Function: archive-rename-entry
archive-rename-entry is an interactive and byte-compiled function
defined in arc-mode.el.gz.
Signature
(archive-rename-entry NEWNAME)
Documentation
Change the name associated with this entry in the archive file.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
(defun archive-rename-entry (newname)
"Change the name associated with this entry in the archive file."
(interactive "sNew name: " archive-mode)
(if archive-read-only (error "Archive is read-only"))
(if (string= newname "")
(error "Archive members may not be given empty names"))
(let ((func (archive-name "rename-entry"))
(descr (archive-get-descr)))
(if (fboundp func)
(progn
(funcall func
(encode-coding-string newname
archive-file-name-coding-system)
descr)
(archive-resummarize))
(error "Renaming is not supported for this archive type"))))