diff options
| author | Juri Linkov | 2018-01-25 23:40:52 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-01-25 23:40:52 +0200 |
| commit | 2e777582e05680f08664f80c95fee4267e028db9 (patch) | |
| tree | 38de672112c731bf90858d9aad4486523444aabd | |
| parent | 9107cf30c0c895bc4ea42810a22feee4af991157 (diff) | |
| download | emacs-2e777582e05680f08664f80c95fee4267e028db9.tar.gz emacs-2e777582e05680f08664f80c95fee4267e028db9.zip | |
* lisp/arc-mode.el (archive-extract): Let-bind `create-lockfiles' to nil
to prevent directory time modification by lock_file on visiting
a file from archive. (Bug#30215)
(archive-summarize): Let-bind `create-lockfiles' to nil
instead of `buffer-file-truename'.
| -rw-r--r-- | lisp/arc-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 1dec40f2157..ce3ec09e286 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -806,7 +806,7 @@ is visible (and the real data of the buffer is hidden). | |||
| 806 | Optional argument SHUT-UP, if non-nil, means don't print messages | 806 | Optional argument SHUT-UP, if non-nil, means don't print messages |
| 807 | when parsing the archive." | 807 | when parsing the archive." |
| 808 | (widen) | 808 | (widen) |
| 809 | (let ((buffer-file-truename nil) ; avoid changing dir mtime by lock_file | 809 | (let ((create-lockfiles nil) ; avoid changing dir mtime by lock_file |
| 810 | (inhibit-read-only t)) | 810 | (inhibit-read-only t)) |
| 811 | (setq archive-proper-file-start (copy-marker (point-min) t)) | 811 | (setq archive-proper-file-start (copy-marker (point-min) t)) |
| 812 | (set (make-local-variable 'change-major-mode-hook) 'archive-desummarize) | 812 | (set (make-local-variable 'change-major-mode-hook) 'archive-desummarize) |
| @@ -1063,7 +1063,9 @@ using `make-temp-file', and the generated name is returned." | |||
| 1063 | ;; We read an archive member by no-conversion at | 1063 | ;; We read an archive member by no-conversion at |
| 1064 | ;; first, then decode appropriately by calling | 1064 | ;; first, then decode appropriately by calling |
| 1065 | ;; archive-set-buffer-as-visiting-file later. | 1065 | ;; archive-set-buffer-as-visiting-file later. |
| 1066 | (coding-system-for-read 'no-conversion)) | 1066 | (coding-system-for-read 'no-conversion) |
| 1067 | ;; Avoid changing dir mtime by lock_file | ||
| 1068 | (create-lockfiles nil)) | ||
| 1067 | (condition-case err | 1069 | (condition-case err |
| 1068 | (if (fboundp extractor) | 1070 | (if (fboundp extractor) |
| 1069 | (funcall extractor archive ename) | 1071 | (funcall extractor archive ename) |