]> code.delx.au - gnu-emacs/commitdiff
* lisp/arc-mode.el (archive-summarize): Let-bind `buffer-file-truename'
authorJuri Linkov <juri@jurta.org>
Sun, 30 Sep 2012 16:54:43 +0000 (19:54 +0300)
committerJuri Linkov <juri@jurta.org>
Sun, 30 Sep 2012 16:54:43 +0000 (19:54 +0300)
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
lisp/ChangeLog
lisp/arc-mode.el
lisp/tar-mode.el

index 4ac0f1d451e7cc7682bf76887d53a6002844644f..bdc8afd208da04daea6f5a1653525aafa410e931 100644 (file)
@@ -1,3 +1,10 @@
+2012-09-30  Juri Linkov  <juri@jurta.org>
+
+       * 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.  (Bug#2295)
+       * tar-mode.el (tar-summarize-buffer): Idem.
+
 2012-09-30  Juri Linkov  <juri@jurta.org>
 
        * facemenu.el (list-colors-sort): Add option "Luminance".
 
        * register.el (copy-to-register, copy-rectangle-to-register):
        Deactivate the mark, and use indicate-copied-region (Bug#10056).
-       (append-to-register, prepend-to-register):
-       Call 2012-07-29  Juri Linkov  <juri@jurta.org>
+       (append-to-register, prepend-to-register): Call indicate-copied-region.
+
+2012-07-29  Juri Linkov  <juri@jurta.org>
 
        * simple.el (async-shell-command-buffer): New defcustom.
        (shell-command): Use it.  (Bug#4719)
index a97a052dc08fae676cee77b277c91673588a458e..c04cd8dcf9d2962fca10c0eb8adfd3a7c76d6c17 100644 (file)
@@ -787,7 +787,8 @@ is visible (and the real data of the buffer is hidden).
 Optional argument SHUT-UP, if non-nil, means don't print messages
 when parsing the archive."
   (widen)
-  (let ((inhibit-read-only t))
+  (let ((buffer-file-truename nil) ; avoid changing dir mtime by lock_file
+       (inhibit-read-only t))
     (setq archive-proper-file-start (copy-marker (point-min) t))
     (set (make-local-variable 'change-major-mode-hook) 'archive-desummarize)
     (or shut-up
index 9cd69d84250e073e878d744c98508ec82d0311d1..2622a8215b80a21d0ea15a1e1c6ef5a85a5d8df5 100644 (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))))
 \f
 (defvar tar-mode-map
   (let ((map (make-keymap)))