aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-09-11 00:13:21 -0700
committerGlenn Morris2012-09-11 00:13:21 -0700
commit511fd0b2f470a33bf7f3d101ab03fcf47b797218 (patch)
tree0743ed0fc590c60f32109944f209e32ef92fb75c
parentfa05bfe0525d75bde4c94c3cbbd90c5fa7a5a7dc (diff)
downloademacs-511fd0b2f470a33bf7f3d101ab03fcf47b797218.tar.gz
emacs-511fd0b2f470a33bf7f3d101ab03fcf47b797218.zip
load-path-shadows-font-lock-keywords tweak
* lisp/emacs-lisp/shadow.el (load-path-shadows-font-lock-keywords): Be more robust about locating simple.el.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/shadow.el8
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5d0d00be9dc..b448f30e5e3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-09-11 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/shadow.el (load-path-shadows-font-lock-keywords):
4 Be more robust about locating simple.el.
5
12012-09-10 Glenn Morris <rgm@gnu.org> 62012-09-10 Glenn Morris <rgm@gnu.org>
2 7
3 * mail/emacsbug.el (report-emacs-bug): Trap load-path-shadows errors. 8 * mail/emacsbug.el (report-emacs-bug): Trap load-path-shadows errors.
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."
158 (eq 0 (call-process "cmp" nil nil nil "-s" f1 f2)))))))) 158 (eq 0 (call-process "cmp" nil nil nil "-s" f1 f2))))))))
159 159
160(defvar load-path-shadows-font-lock-keywords 160(defvar load-path-shadows-font-lock-keywords
161 ;; The idea is that shadows of files supplied with Emacs are more
162 ;; serious than various versions of external packages shadowing each
163 ;; other.
161 `((,(format "hides \\(%s.*\\)" 164 `((,(format "hides \\(%s.*\\)"
162 (file-name-directory (locate-library "simple.el"))) 165 (file-name-directory
166 (or (locate-library "simple")
167 (file-name-as-directory
168 (expand-file-name "../lisp" data-directory)))))
163 . (1 font-lock-warning-face))) 169 . (1 font-lock-warning-face)))
164 "Keywords to highlight in `load-path-shadows-mode'.") 170 "Keywords to highlight in `load-path-shadows-mode'.")
165 171