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
97b3a214
Commit
97b3a214
authored
Oct 12, 2005
by
Lars Hansen
Browse files
(desktop-load-file): Do nothing when FUNCTION is nil.
parent
cc9e7d91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/desktop.el
lisp/desktop.el
+5
-4
No files found.
lisp/ChangeLog
View file @
97b3a214
2005-10-12 Lars Hansen <larsh@soem.dk>
* desktop.el (desktop-load-file): Do nothing when FUNCTION is nil.
Reported by Reiner Steib <Reiner.Steib@gmx.de>.
2005-10-11 Sven Joachim <svenjoac@gmx.de>
* progmodes/sh-script.el (sh-tmp-file):
...
...
lisp/desktop.el
View file @
97b3a214
...
...
@@ -963,10 +963,11 @@ directory DIRNAME."
(
defun
desktop-load-file
(
function
)
"Load the file where auto loaded FUNCTION is defined."
(
let
((
fcell
(
symbol-function
function
)))
(
when
(
and
(
listp
fcell
)
(
eq
'autoload
(
car
fcell
)))
(
load
(
cadr
fcell
)))))
(
when
function
(
let
((
fcell
(
symbol-function
function
)))
(
when
(
and
(
listp
fcell
)
(
eq
'autoload
(
car
fcell
)))
(
load
(
cadr
fcell
))))))
;; ----------------------------------------------------------------------------
;; Create a buffer, load its file, set its mode, ...;
...
...
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