branch: scratch/editorconfig-cc
commit 907a4afa7a114ba9aebd65df8d58792b8a4068dc
Author: Simen Heggestøyl <[email protected]>
Commit: Stefan Monnier <[email protected]>
Set `fill-column` directly
Set `fill-column` directly instead of using `set-fill-column`. That
function is useful when used interactively, but when called from Lisp
it’s almost equivalent to just setting `fill-column` directly, and it
avoids showing the “Fill column set to…” message.
---
editorconfig.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editorconfig.el b/editorconfig.el
index 4886a4c76a..de31620810 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -277,7 +277,7 @@ current buffer yet.")
"Set the max line length (`fill-column') to LENGTH."
(when (and (editorconfig-string-integer-p length)
(> (string-to-number length) 0))
- (set-fill-column (string-to-number length))))
+ (setq fill-column (string-to-number length))))
(defun editorconfig-call-editorconfig-exec ()
)