diff options
| author | Glenn Morris | 2010-10-07 20:05:09 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-07 20:05:09 -0700 |
| commit | e5d495899c82e7e7936cb2ff4c7a6e651183e8cd (patch) | |
| tree | d07c85952d788b729c6ec968b65e7fd2f751bbea | |
| parent | 12359245f6b9651541e00e6d59e07d6a25a4df8a (diff) | |
| download | emacs-e5d495899c82e7e7936cb2ff4c7a6e651183e8cd.tar.gz emacs-e5d495899c82e7e7936cb2ff4c7a6e651183e8cd.zip | |
Rename some shadow.el things.
* lisp/emacs-lisp/shadow.el (lisp-shadow): Change prefix.
(shadows-compare-text-p): Make it an obsolete alias for...
(load-path-shadows-compare-text): ... new name.
(find-emacs-lisp-shadows): Update for above name change.
(load-path-shadows-same-file-or-nonexistent): New name for the old
shadow-same-file-or-nonexistent.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shadow.el | 15 |
2 files changed, 18 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 85d108356cc..bba7a2e5d24 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-10-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/shadow.el (lisp-shadow): Change prefix. | ||
| 4 | (shadows-compare-text-p): Make it an obsolete alias for... | ||
| 5 | (load-path-shadows-compare-text): ... new name. | ||
| 6 | (find-emacs-lisp-shadows): Update for above name change. | ||
| 7 | (load-path-shadows-same-file-or-nonexistent): New name for the old | ||
| 8 | shadow-same-file-or-nonexistent. | ||
| 9 | |||
| 1 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> | 10 | 2010-10-03 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 11 | ||
| 3 | * minibuffer.el (completion--some, completion--do-completion) | 12 | * minibuffer.el (completion--some, completion--do-completion) |
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el index a41db864a1b..15cb37b8ff3 100644 --- a/lisp/emacs-lisp/shadow.el +++ b/lisp/emacs-lisp/shadow.el | |||
| @@ -53,10 +53,13 @@ | |||
| 53 | 53 | ||
| 54 | (defgroup lisp-shadow nil | 54 | (defgroup lisp-shadow nil |
| 55 | "Locate Emacs Lisp file shadowings." | 55 | "Locate Emacs Lisp file shadowings." |
| 56 | :prefix "shadows-" | 56 | :prefix "load-path-shadows-" |
| 57 | :group 'lisp) | 57 | :group 'lisp) |
| 58 | 58 | ||
| 59 | (defcustom shadows-compare-text-p nil | 59 | (define-obsolete-variable-alias 'shadows-compare-text-p |
| 60 | 'load-path-shadows-compare-text "23.3") | ||
| 61 | |||
| 62 | (defcustom load-path-shadows-compare-text nil | ||
| 60 | "If non-nil, then shadowing files are reported only if their text differs. | 63 | "If non-nil, then shadowing files are reported only if their text differs. |
| 61 | This is slower, but filters out some innocuous shadowing." | 64 | This is slower, but filters out some innocuous shadowing." |
| 62 | :type 'boolean | 65 | :type 'boolean |
| @@ -124,11 +127,11 @@ See the documentation for `list-load-path-shadows' for further information." | |||
| 124 | ;; Report it unless the files are identical. | 127 | ;; Report it unless the files are identical. |
| 125 | (let ((base1 (concat (cdr orig-dir) "/" file)) | 128 | (let ((base1 (concat (cdr orig-dir) "/" file)) |
| 126 | (base2 (concat dir "/" file))) | 129 | (base2 (concat dir "/" file))) |
| 127 | (if (not (and shadows-compare-text-p | 130 | (if (not (and load-path-shadows-compare-text |
| 128 | (shadow-same-file-or-nonexistent | 131 | (load-path-shadows-same-file-or-nonexistent |
| 129 | (concat base1 ".el") (concat base2 ".el")) | 132 | (concat base1 ".el") (concat base2 ".el")) |
| 130 | ;; This is a bit strict, but safe. | 133 | ;; This is a bit strict, but safe. |
| 131 | (shadow-same-file-or-nonexistent | 134 | (load-path-shadows-same-file-or-nonexistent |
| 132 | (concat base1 ".elc") (concat base2 ".elc")))) | 135 | (concat base1 ".elc") (concat base2 ".elc")))) |
| 133 | (setq shadows | 136 | (setq shadows |
| 134 | (append shadows (list base1 base2))))) | 137 | (append shadows (list base1 base2))))) |
| @@ -140,7 +143,7 @@ See the documentation for `list-load-path-shadows' for further information." | |||
| 140 | 143 | ||
| 141 | ;; Return true if neither file exists, or if both exist and have identical | 144 | ;; Return true if neither file exists, or if both exist and have identical |
| 142 | ;; contents. | 145 | ;; contents. |
| 143 | (defun shadow-same-file-or-nonexistent (f1 f2) | 146 | (defun load-path-shadows-same-file-or-nonexistent (f1 f2) |
| 144 | (let ((exists1 (file-exists-p f1)) | 147 | (let ((exists1 (file-exists-p f1)) |
| 145 | (exists2 (file-exists-p f2))) | 148 | (exists2 (file-exists-p f2))) |
| 146 | (or (and (not exists1) (not exists2)) | 149 | (or (and (not exists1) (not exists2)) |