From fd66b2321e5445650a062f394bec65bca39ba700 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 25 Dec 2019 02:16:26 -0500 Subject: [PATCH] Trigger so-long even in modes with no comment syntax Refactoring of #2183 --- core/core-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index e05101fee..8f33e9285 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -511,7 +511,7 @@ files, so we replace calls to `pp' with the much faster `prin1'." ;; syntax, but in some buffers comment state isn't initialized, leading ;; to a wrong-type-argument: stringp error. (defun doom-buffer-has-long-lines-p () - (when (bound-and-true-p comment-use-syntax) + (let ((so-long-skip-leading-comments (bound-and-true-p comment-use-syntax))) (so-long-detected-long-line-p))) (setq so-long-predicate #'doom-buffer-has-long-lines-p))