* vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
be nil. Handle this. (Bug#13636)
This commit is contained in:
parent
025875980c
commit
fed000725c
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2013-02-07 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
|
||||
be nil. Handle this. (Bug#13636)
|
||||
|
||||
2013-02-07 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* mail/rmail.el (rmail-variables): Specify `no-conversion' for
|
||||
|
|
|
|||
|
|
@ -858,8 +858,10 @@ current, and kill the buffer that visits the link."
|
|||
(set (make-local-variable 'backup-inhibited) t))
|
||||
;; Let the backend setup any buffer-local things he needs.
|
||||
(vc-call-backend backend 'find-file-hook))
|
||||
((let* ((truename (expand-file-name buffer-file-truename))
|
||||
(link-type (and (not (equal buffer-file-name truename))
|
||||
((let* ((truename (and buffer-file-truename
|
||||
(expand-file-name buffer-file-truename)))
|
||||
(link-type (and truename
|
||||
(not (equal buffer-file-name truename))
|
||||
(vc-backend truename))))
|
||||
(cond ((not link-type) nil) ;Nothing to do.
|
||||
((eq vc-follow-symlinks nil)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue