aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-01 14:30:43 +0100
committerJoakim Verona2012-12-01 14:30:43 +0100
commit506553deb2df0d1290ab36ee69d0b9de23743d59 (patch)
treee14adcea5b637f69d1c9de0502b756e1f5fd9eef
parent6dfb20b04766051984b4171ebd416062f137dd2f (diff)
parentcb5d51dc0707c3a55abb32ad09b747bc812c7b73 (diff)
downloademacs-506553deb2df0d1290ab36ee69d0b9de23743d59.tar.gz
emacs-506553deb2df0d1290ab36ee69d0b9de23743d59.zip
auto upstream
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/vc-hooks.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c2e5e9fa8ce..ec7791597f0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-12-01 Yuya Nishihara <yuya@tcha.org> (tiny change)
2
3 * vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
4 before using it for comparison (Bug#5297).
5
12012-12-01 Jari Aalto <jari.aalto@cante.net> 62012-12-01 Jari Aalto <jari.aalto@cante.net>
2 7
3 * textmodes/css-mode.el (css-current-defun-name): New function. 8 * textmodes/css-mode.el (css-current-defun-name): New function.
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index ef900cb5257..40a1f3db982 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -858,8 +858,9 @@ current, and kill the buffer that visits the link."
858 (set (make-local-variable 'backup-inhibited) t)) 858 (set (make-local-variable 'backup-inhibited) t))
859 ;; Let the backend setup any buffer-local things he needs. 859 ;; Let the backend setup any buffer-local things he needs.
860 (vc-call-backend backend 'find-file-hook)) 860 (vc-call-backend backend 'find-file-hook))
861 ((let ((link-type (and (not (equal buffer-file-name buffer-file-truename)) 861 ((let* ((truename (expand-file-name buffer-file-truename))
862 (vc-backend buffer-file-truename)))) 862 (link-type (and (not (equal buffer-file-name truename))
863 (vc-backend truename))))
863 (cond ((not link-type) nil) ;Nothing to do. 864 (cond ((not link-type) nil) ;Nothing to do.
864 ((eq vc-follow-symlinks nil) 865 ((eq vc-follow-symlinks nil)
865 (message 866 (message