diff options
author | Juri Linkov <juri@jurta.org> | 2012-09-30 19:54:43 +0300 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2012-09-30 19:54:43 +0300 |
commit | 4c478e6b45d9e868efaf5f402fad2e54f4324a93 (patch) | |
tree | 2f42cec4a5c65e2e26d9976ce4da1b01f4346249 /lisp/tar-mode.el | |
parent | d80d54b289a971d7a98dc5fafebaa957082c8222 (diff) | |
download | emacs-4c478e6b45d9e868efaf5f402fad2e54f4324a93.tar.gz |
* lisp/arc-mode.el (archive-summarize): Let-bind `buffer-file-truename'
to nil around the call to `add-text-properties' to prevent
directory time modification by lock_file.
* lisp/tar-mode.el (tar-summarize-buffer): Idem.
Fixes: debbugs:2295
Diffstat (limited to 'lisp/tar-mode.el')
-rw-r--r-- | lisp/tar-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 9cd69d84250..2622a8215b8 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -518,12 +518,13 @@ MODE should be an integer which is a file mode value." (progress-reporter-done progress-reporter) (message "Warning: premature EOF parsing tar file")) (goto-char (point-min)) - (let ((inhibit-read-only t) + (let ((buffer-file-truename nil) ; avoid changing dir mtime by lock_file + (inhibit-read-only t) (total-summaries (mapconcat 'tar-header-block-summarize tar-parse-info "\n"))) - (insert total-summaries "\n")) - (goto-char (point-min)) - (restore-buffer-modified-p modified))) + (insert total-summaries "\n") + (goto-char (point-min)) + (restore-buffer-modified-p modified)))) (defvar tar-mode-map (let ((map (make-keymap))) |