From 07696982f10458a8af3b47d96190c554a8fde8fc Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 23 Jan 2006 01:23:10 +0000 Subject: [PATCH] (desktop-load-file): Check for `fboundp' before calling `symbol-function'. --- lisp/desktop.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/desktop.el b/lisp/desktop.el index 49034884b53..249ed91ab29 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -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)))))) -- 2.39.2