aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2004-12-27 16:16:24 +0000
committerRichard M. Stallman <[email protected]>2004-12-27 16:16:24 +0000
commit5cb345c184f835909aed741d09f43c1ff5b8c943 (patch)
treef12af688f583afa48a41fecbaa6aca6187b6bc52 /lisp
parentc044263ba10e1d07b1c408a71ac17f51b6c9bbbf (diff)
(eshell-find-alias-function): Call symbol-file with `defun'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/eshell/esh-cmd.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 477d8b410e..d7c65066ac 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -1285,7 +1285,7 @@ COMMAND may result in an alias being executed, or a plain command."
(defun eshell-find-alias-function (name)
"Check whether a function called `eshell/NAME' exists."
(let* ((sym (intern-soft (concat "eshell/" name)))
- (file (symbol-file sym)))
+ (file (symbol-file sym 'defun)))
;; If the function exists, but is defined in an eshell module
;; that's not currently enabled, don't report it as found
(if (and file