diff options
| author | Richard M. Stallman | 1996-06-14 02:11:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-14 02:11:11 +0000 |
| commit | 4cc0ea11758b2b5c18dfffe9e46e420cfb2f4e2c (patch) | |
| tree | c3b41e548076a6cc10ec1a2bb5b9ba4bea02f2b3 /lisp | |
| parent | 45c2639bdf326b1175a050c4081f688ad57d6f5a (diff) | |
| download | emacs-4cc0ea11758b2b5c18dfffe9e46e420cfb2f4e2c.tar.gz emacs-4cc0ea11758b2b5c18dfffe9e46e420cfb2f4e2c.zip | |
(set-fill-column): Error if no argument.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/simple.el | 12 |
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. |
| 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 |