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
07696982
Commit
07696982
authored
Jan 23, 2006
by
Juri Linkov
Browse files
(desktop-load-file): Check for `fboundp' before calling `symbol-function'.
parent
192e44fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lisp/desktop.el
lisp/desktop.el
+1
-1
No files found.
lisp/desktop.el
View file @
07696982
...
...
@@ -966,7 +966,7 @@ directory DIRNAME."
(
defun
desktop-load-file
(
function
)
"Load the file where auto loaded FUNCTION is defined."
(
when
function
(
let
((
fcell
(
symbol-function
function
)))
(
let
((
fcell
(
and
(
fboundp
function
)
(
symbol-function
function
)))
)
(
when
(
and
(
listp
fcell
)
(
eq
'autoload
(
car
fcell
)))
(
load
(
cadr
fcell
))))))
...
...
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