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.
This commit is contained in:
parent
a0de71dee8
commit
f3748b2977
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue