diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shadow.el | 8 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-09-10 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | ||