summaryrefslogtreecommitdiff
path: root/lisp/cus-dep.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cus-dep.el')
-rw-r--r--lisp/cus-dep.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/cus-dep.el b/lisp/cus-dep.el
index 6794b196930..b923dfcbacd 100644
--- a/lisp/cus-dep.el
+++ b/lisp/cus-dep.el
@@ -54,7 +54,8 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
(insert-file-contents file)
(goto-char (point-min))
(string-match "\\`\\(.*\\)\\.el\\'" file)
- (let ((name (file-name-nondirectory (match-string 1 file))))
+ (let ((name (file-name-nondirectory (match-string 1 file)))
+ (load-file-name file))
(if (save-excursion
(re-search-forward
(concat "(provide[ \t\n]+\\('\\|(quote[ \t\n]\\)[ \t\n]*"