diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-17 07:56:22 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-17 07:56:22 -0700 |
commit | 3d6eced1ae51ffd0a782130e7c334052277e2724 (patch) | |
tree | 5d1d2ad7cd3374f922886c4a72062511a035c168 /lisp/emacs-lisp/shadow.el | |
parent | bf69f522a9e135f9aa483cedd53e71e915f2bf75 (diff) | |
parent | 7c3d167f48d6262ee4e5512aa50a07ee96bc1509 (diff) | |
download | emacs-3d6eced1ae51ffd0a782130e7c334052277e2724.tar.gz emacs-3d6eced1ae51ffd0a782130e7c334052277e2724.tar.bz2 emacs-3d6eced1ae51ffd0a782130e7c334052277e2724.zip |
merge from trunk
Diffstat (limited to 'lisp/emacs-lisp/shadow.el')
-rw-r--r-- | lisp/emacs-lisp/shadow.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el index 286c4937b5b..bceec296ad8 100644 --- a/lisp/emacs-lisp/shadow.el +++ b/lisp/emacs-lisp/shadow.el @@ -158,8 +158,14 @@ See the documentation for `list-load-path-shadows' for further information." (eq 0 (call-process "cmp" nil nil nil "-s" f1 f2)))))))) (defvar load-path-shadows-font-lock-keywords + ;; The idea is that shadows of files supplied with Emacs are more + ;; serious than various versions of external packages shadowing each + ;; other. `((,(format "hides \\(%s.*\\)" - (file-name-directory (locate-library "simple.el"))) + (file-name-directory + (or (locate-library "simple") + (file-name-as-directory + (expand-file-name "../lisp" data-directory))))) . (1 font-lock-warning-face))) "Keywords to highlight in `load-path-shadows-mode'.") |