To fix cases where comment-line-break-function's first argument isn't
optional.
This commit is contained in:
Henrik Lissner 2019-11-15 19:15:23 -05:00
parent 7192a686a2
commit 03e9dc1daf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -99,7 +99,7 @@ more information on modifiers."
;; FIXME oh god why ;; FIXME oh god why
(save-excursion (save-excursion
(if comment-line-break-function (if comment-line-break-function
(funcall comment-line-break-function) (funcall comment-line-break-function nil)
(comment-indent-new-line)) (comment-indent-new-line))
(when (and (derived-mode-p 'c-mode 'c++-mode 'objc-mode 'java-mode 'js2-mode) (when (and (derived-mode-p 'c-mode 'c++-mode 'objc-mode 'java-mode 'js2-mode)
(eq (char-after) ?/)) (eq (char-after) ?/))