Skip to content

Commit

Permalink
Patch that fixes an error in the *Message* buffer about an undefined …
Browse files Browse the repository at this point in the history
…face

and makes the highlighting work when you insert subdirs into a buffer
rather than change to them.

Patch from Matt Ford <[email protected]>
  • Loading branch information
jwiegley committed Aug 13, 2013
1 parent 23a130f commit 3ff6247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-annex.el
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 104,13 @@
(defvar git-annex-dired-annexed-unavailable 'git-annex-dired-annexed-unavailable
"Face name used to highlight unavailable git-annex'd files.")
(defvar git-annex-dired-annexed-invisible
'(face git-annex-dired-annexed invisible t)
'(face git-annex-dired-annexed-available invisible t)
"Face name used to hide a git-annex'd file's annex path.")

(defun git-annex-lookup-file (limit)
(and (re-search-forward " -> \\(.*\\.git/annex/. \\)" limit t)
(file-exists-p
(expand-file-name (match-string 1)))))
(expand-file-name (match-string 1) (dired-current-directory)))))

(eval-after-load "dired"
'(progn
Expand Down

0 comments on commit 3ff6247

Please sign in to comment.