1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* 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
This commit is contained in:
Juri Linkov 2012-09-30 19:54:43 +03:00
parent d80d54b289
commit 4c478e6b45
3 changed files with 17 additions and 7 deletions

View file

@ -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)))