comparison lisp/simple.el @ 15431:68cca71d69bd

(set-fill-column): Error if no argument.
author Richard M. Stallman <rms@gnu.org>
date Fri, 14 Jun 1996 02:11:11 +0000
parents 29ba4949d3d5
children e3f8bfd1bb1f
comparison
equal deleted inserted replaced
15430:760c7139c19c 15431:68cca71d69bd
2450 (defun turn-on-auto-fill () 2450 (defun turn-on-auto-fill ()
2451 "Unconditionally turn on Auto Fill mode." 2451 "Unconditionally turn on Auto Fill mode."
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.
2456 The variable `fill-column' has a separate value for each buffer." 2456 Just \\[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
2462 "*Non-nil means \\[indent-new-comment-line] should continue same comment 2468 "*Non-nil means \\[indent-new-comment-line] should continue same comment
2463 on new line, with no new terminator or starter. 2469 on new line, with no new terminator or starter.