emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7671d47 3/3: Clarify that `symbol-file' only works for symbols in


From: Lars Ingebrigtsen
Subject: master 7671d47 3/3: Clarify that `symbol-file' only works for symbols in Lisp files
Date: Sun, 30 May 2021 02:25:30 -0400 (EDT)

branch: master
commit 7671d470781a3e68b4e39b43281c0b1b73c5eaa9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 78507a5..8874015 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]