summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/shadow.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-10-07 10:22:51 -0700
committerGlenn Morris <rgm@gnu.org>2010-10-07 10:22:51 -0700
commit06d9ef85db168b4dbe3b7d1c980bce06ceb3ed19 (patch)
tree51b41b663b519868c2b15d830532d7e9cd6494fa /lisp/emacs-lisp/shadow.el
parentac44263aedb1c739c24687239e21d278645455c7 (diff)
downloademacs-06d9ef85db168b4dbe3b7d1c980bce06ceb3ed19.tar.gz
Rename some more shadow.el stuff.
* lisp/emacs-lisp/shadow.el (load-path-shadows-font-lock-keywords) (load-path-shadows-find-file): Rename variable and button. (list-load-path-shadows): Update button caller.
Diffstat (limited to 'lisp/emacs-lisp/shadow.el')
-rw-r--r--lisp/emacs-lisp/shadow.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index 9297ee8b068..ee59cca2d6f 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -152,7 +152,7 @@ See the documentation for `list-load-path-shadows' for further information."
(nth 7 (file-attributes f2)))
(eq 0 (call-process "cmp" nil nil nil "-s" f1 f2))))))))
-(defvar shadow-font-lock-keywords
+(defvar load-path-shadows-font-lock-keywords
`((,(format "hides \\(%s.*\\)"
(file-name-directory (locate-library "simple.el")))
. (1 font-lock-warning-face)))
@@ -161,13 +161,13 @@ See the documentation for `list-load-path-shadows' for further information."
(define-derived-mode load-path-shadows-mode fundamental-mode "LP-Shadows"
"Major mode for load-path shadows buffer."
(set (make-local-variable 'font-lock-defaults)
- '((shadow-font-lock-keywords)))
+ '((load-path-shadows-font-lock-keywords)))
(setq buffer-undo-list t
buffer-read-only t))
;; TODO use text-properties instead, a la dired.
(require 'button)
-(define-button-type 'shadow-find-file
+(define-button-type 'load-path-shadows-find-file
'follow-link t
;; 'face 'default
'action (lambda (button)
@@ -273,7 +273,8 @@ function, `find-emacs-lisp-shadows'."
(dotimes (i 2)
(make-button (match-beginning (1+ i))
(match-end (1+ i))
- 'type 'shadow-find-file 'shadow-file
+ 'type 'load-path-shadows-find-file
+ 'shadow-file
(match-string (1+ i)))))
(goto-char (point-max)))))
;; We are non-interactive, print shadows via message.