From 84756b33a0b10a6a5aafc65daf733a470a3062f2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 20 Jun 2018 01:57:57 +0200 Subject: [PATCH] Fix closure symbolp errors blocking stacktraces Caused because of symbol-file advice assuming SYMBOL would always be a symbol. This would prevent backtraces from happening, making debugging impossibly obtuse. This may indirectly fix #701 --- core/core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index b931ed286..3e9026600 100644 --- a/core/core.el +++ b/core/core.el @@ -228,7 +228,7 @@ with functions that require it (like modeline segments)." (defun doom*symbol-file (orig-fn symbol &optional type) "If a `doom-file' symbol property exists on SYMBOL, use that instead of the original value of `symbol-file'." - (or (get symbol 'doom-file) + (or (if (symbolp symbol) (get symbol 'doom-file)) (funcall orig-fn symbol type))) (advice-add #'symbol-file :around #'doom*symbol-file)