aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/simple.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 4ef1745ae3d..11dd51da17d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2452,10 +2452,16 @@ automatically breaks the line at a previous space."
2452 (auto-fill-mode 1)) 2452 (auto-fill-mode 1))
2453 2453
2454(defun set-fill-column (arg) 2454(defun set-fill-column (arg)
2455 "Set `fill-column' to current column, or to argument if given. 2455 "Set `fill-column' to specified argument.
2456The variable `fill-column' has a separate value for each buffer." 2456Just \\[universal-argument] as argument means to use the current column."
2457 (interactive "P") 2457 (interactive "P")
2458 (setq fill-column (if (integerp arg) arg (current-column))) 2458 (cond ((integerp arg)
2459 (setq fill-column arg))
2460 ((consp arg)
2461 (setq fill-column (current-column)))
2462 ;; Disallow missing argument; it's probably a typo for C-x C-f.
2463 (t
2464 (error "set-fill-column requires an explicit argument")))
2459 (message "fill-column set to %d" fill-column)) 2465 (message "fill-column set to %d" fill-column))
2460 2466
2461(defconst comment-multi-line nil 2467(defconst comment-multi-line nil