emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101835: Rename some more shadow.el s


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101835: Rename some more shadow.el stuff.
Date: Thu, 07 Oct 2010 10:22:51 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101835
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2010-10-07 10:22:51 -0700
message:
  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.
modified:
  lisp/ChangeLog
  lisp/emacs-lisp/shadow.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-10-07 17:17:18 +0000
+++ b/lisp/ChangeLog    2010-10-07 17:22:51 +0000
@@ -3,6 +3,9 @@
        * emacs-lisp/shadow.el (shadow-font-lock-keywords)
        (load-path-shadows-mode, list-load-path-shadows): Rename shadow-mode to
        load-path-shadows-mode, update references.
+       (load-path-shadows-font-lock-keywords, load-path-shadows-find-file):
+       Rename variable and button.
+       (list-load-path-shadows): Update button caller.
 
 2010-10-07  Stefan Monnier  <address@hidden>
 

=== modified file 'lisp/emacs-lisp/shadow.el'
--- a/lisp/emacs-lisp/shadow.el 2010-10-07 17:17:18 +0000
+++ b/lisp/emacs-lisp/shadow.el 2010-10-07 17:22:51 +0000
@@ -152,7 +152,7 @@
                         (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 @@
 (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 @@
                      (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]