emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111689: * vc/vc-hooks.el (vc-find-fi


From: Michael Albinus
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111689: * vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
Date: Thu, 07 Feb 2013 09:50:04 +0100
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111689
committer: Michael Albinus <address@hidden
branch nick: trunk
timestamp: Thu 2013-02-07 09:50:04 +0100
message:
  * vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
  be nil.  Handle this.  (Bug#13636)
modified:
  lisp/ChangeLog
  lisp/vc/vc-hooks.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-02-07 08:31:21 +0000
+++ b/lisp/ChangeLog    2013-02-07 08:50:04 +0000
@@ -1,3 +1,8 @@
+2013-02-07  Michael Albinus  <address@hidden>
+
+       * vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
+       be nil.  Handle this.  (Bug#13636)
+
 2013-02-07  Richard Stallman  <address@hidden>
 
        * mail/rmail.el (rmail-variables): Specify `no-conversion' for

=== modified file 'lisp/vc/vc-hooks.el'
--- a/lisp/vc/vc-hooks.el       2013-02-06 08:27:41 +0000
+++ b/lisp/vc/vc-hooks.el       2013-02-07 08:50:04 +0000
@@ -858,8 +858,10 @@
          (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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]