aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2011-09-22 12:00:07 +0200
committerMichael Albinus2011-09-22 12:00:07 +0200
commite74f1bb6f82eef5bc4909f25b5c10d8e7bffc090 (patch)
treec877408289b432121e60c3007603cfad0e9f63f9 /lisp
parent7f80c86d3c06491c81836de1dff2db554b9d750c (diff)
downloademacs-e74f1bb6f82eef5bc4909f25b5c10d8e7bffc090.tar.gz
emacs-e74f1bb6f82eef5bc4909f25b5c10d8e7bffc090.zip
* files.el (copy-directory): Set directory attributes only in case
they could be retrieved from the source directory. (Bug#9565)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el7
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 17000ca8697..013df43f3b7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-22 Michael Albinus <michael.albinus@gmx.de>
2
3 * files.el (copy-directory): Set directory attributes only in case
4 they could be retrieved from the source directory. (Bug#9565)
5
12011-09-22 Dima Kogan <dkogan@secretsauce.net> (tiny change) 62011-09-22 Dima Kogan <dkogan@secretsauce.net> (tiny change)
2 7
3 * progmodes/hideshow.el (hs-looking-at-block-start-p) 8 * progmodes/hideshow.el (hs-looking-at-block-start-p)
diff --git a/lisp/files.el b/lisp/files.el
index b29c0596d7b..8b05b62e524 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4941,9 +4941,10 @@ directly into NEWNAME instead."
4941 (copy-file file target t keep-time))))) 4941 (copy-file file target t keep-time)))))
4942 4942
4943 ;; Set directory attributes. 4943 ;; Set directory attributes.
4944 (set-file-modes newname (file-modes directory)) 4944 (let ((modes (file-modes directory))
4945 (if keep-time 4945 (times (and keep-time (nth 5 (file-attributes directory)))))
4946 (set-file-times newname (nth 5 (file-attributes directory))))))) 4946 (if modes (set-file-modes newname modes))
4947 (if times (set-file-times newname times))))))
4947 4948
4948(put 'revert-buffer-function 'permanent-local t) 4949(put 'revert-buffer-function 'permanent-local t)
4949(defvar revert-buffer-function nil 4950(defvar revert-buffer-function nil