Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
37fda77e
Commit
37fda77e
authored
Sep 06, 2008
by
Martin Rudalics
Browse files
(symbol-file): Fix doc-string.
parent
18a2979d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/subr.el
lisp/subr.el
+9
-8
No files found.
lisp/ChangeLog
View file @
37fda77e
2008-09-06 Martin Rudalics <rudalics@gmx.at>
* subr.el (symbol-file): Fix doc-string.
2008-09-06 Glenn Morris <rgm@gnu.org>
* help-mode.el (help-xref-forward-stack): Doc fix.
...
...
lisp/subr.el
View file @
37fda77e
...
...
@@ -1458,14 +1458,15 @@ If TOGGLE has a `:menu-tag', that is used for the menu item's label."
;; (setq symbol-file-load-history-loaded t)))
(
defun
symbol-file
(
symbol
&optional
type
)
"Return the input source in which SYMBOL was defined.
The value is an absolute file name.
It can also be nil, if the definition is not associated with any file.
If TYPE is nil, then any kind of definition is acceptable.
If TYPE is `defun' or `defvar', that specifies function
definition only or variable definition only.
`defface' specifies a face definition only."
"Return the name of the file that defined SYMBOL.
The value is normally an absolute file name. It can also be nil,
if the definition is not associated with any file. If SYMBOL
specifies an autoloaded function, the value can be a relative
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."
(
if
(
and
(
or
(
null
type
)
(
eq
type
'defun
))
(
symbolp
symbol
)
(
fboundp
symbol
)
(
eq
'autoload
(
car-safe
(
symbol-function
symbol
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment