From 7671d470781a3e68b4e39b43281c0b1b73c5eaa9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 30 May 2021 08:25:18 +0200 Subject: [PATCH] Clarify that `symbol-file' only works for symbols in Lisp files * lisp/subr.el (symbol-file): Mention help-C-file-name in the doc string (bug#14932). --- lisp/subr.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 78507a552c1..88740159b93 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2476,7 +2476,11 @@ file name without extension. If TYPE is nil, then any kind of definition is acceptable. If TYPE is `defun', `defvar', or `defface', that specifies function definition, variable definition, or face definition only. -Otherwise TYPE is assumed to be a symbol property." +Otherwise TYPE is assumed to be a symbol property. + +This function only works for symbols defined in Lisp files. For +symbols that are defined in C files, use `help-C-file-name' +instead." (if (and (or (null type) (eq type 'defun)) (symbolp symbol) (autoloadp (symbol-function symbol))) -- 2.39.5