aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasatake YAMATO2005-05-30 18:06:02 +0000
committerMasatake YAMATO2005-05-30 18:06:02 +0000
commit6dfa731f20bc5702c88f99297e60e41f1e27cbea (patch)
tree76bde4e676d315ea982a048ae45d4efbd879112b
parente9bd5782648b11fce3900f34c14ddea46394e501 (diff)
downloademacs-6dfa731f20bc5702c88f99297e60e41f1e27cbea.tar.gz
emacs-6dfa731f20bc5702c88f99297e60e41f1e27cbea.zip
* emacs-lisp/find-func.el (find-function-noselect): Handle
subroutines. * help-fns.el (help-C-file-name): Added autoload mark for `find-function-noselect'.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/emacs-lisp/find-func.el4
-rw-r--r--lisp/help-fns.el2
3 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1b67921f88b..f09d6f816b2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12005-05-31 Masatake YAMATO <jet@gyve.org>
2
3 * emacs-lisp/find-func.el (find-function-noselect): Handle
4 subroutines.
5
6 * help-fns.el (help-C-file-name): Added autoload mark for
7 `find-function-noselect'.
8
12005-05-30 Glenn Morris <gmorris@ast.cam.ac.uk> 92005-05-30 Glenn Morris <gmorris@ast.cam.ac.uk>
2 10
3 * calendar/diary-lib.el (mark-included-diary-files): Only kill 11 * calendar/diary-lib.el (mark-included-diary-files): Only kill
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index eab957e5671..9a0a1606953 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -246,8 +246,6 @@ searched for in `find-function-source-path' if non nil, otherwise
246in `load-path'." 246in `load-path'."
247 (if (not function) 247 (if (not function)
248 (error "You didn't specify a function")) 248 (error "You didn't specify a function"))
249 (and (subrp (symbol-function function))
250 (error "%s is a primitive function" function))
251 (let ((def (symbol-function function)) 249 (let ((def (symbol-function function))
252 aliases) 250 aliases)
253 (while (symbolp def) 251 (while (symbolp def)
@@ -265,6 +263,8 @@ in `load-path'."
265 (let ((library 263 (let ((library
266 (cond ((eq (car-safe def) 'autoload) 264 (cond ((eq (car-safe def) 'autoload)
267 (nth 1 def)) 265 (nth 1 def))
266 ((subrp def)
267 (help-C-file-name def 'subr))
268 ((symbol-file function 'defun))))) 268 ((symbol-file function 'defun)))))
269 (find-function-search-for-symbol function nil library)))) 269 (find-function-search-for-symbol function nil library))))
270 270
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index c11aaf6da76..b5e22bf1855 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -224,7 +224,7 @@ ARGLIST can also be t or a string of the form \"(FUN ARG1 ARG2 ...)\"."
224;;; (symbol-file (if (symbolp subr-or-var) subr-or-var 224;;; (symbol-file (if (symbolp subr-or-var) subr-or-var
225;;; (subr-name subr-or-var)) 225;;; (subr-name subr-or-var))
226;;; (if (eq kind 'var) 'defvar 'defun))) 226;;; (if (eq kind 'var) 'defvar 'defun)))
227 227;;;###autoload
228(defun help-C-file-name (subr-or-var kind) 228(defun help-C-file-name (subr-or-var kind)
229 "Return the name of the C file where SUBR-OR-VAR is defined. 229 "Return the name of the C file where SUBR-OR-VAR is defined.
230KIND should be `var' for a variable or `subr' for a subroutine." 230KIND should be `var' for a variable or `subr' for a subroutine."