From f3748b29775cc6dab0ddf577c3f71a25f3cb26e1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 18 Apr 2021 13:05:26 -0400 Subject: [PATCH] Fix #4559: wrong-type-arg error on RET in some comments Some modes will set comment-line-break-function to an anonymous function or advice (as octave-mode does), which will cause this fboundp check to throw a type error when you press RET while on a commented line. --- modules/config/default/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 026cd17ef..47fa77112 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -248,7 +248,7 @@ Continues comments if executed from a commented line. Consults (interactive "*") (when (and +default-want-RET-continue-comments (doom-point-in-comment-p) - (fboundp comment-line-break-function)) + (functionp comment-line-break-function)) (funcall comment-line-break-function nil) t))