mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 20:32:00 -08:00
(set-fill-column): Error if no argument.
This commit is contained in:
parent
45c2639bdf
commit
4cc0ea1175
1 changed files with 9 additions and 3 deletions
|
|
@ -2452,10 +2452,16 @@ automatically breaks the line at a previous space."
|
|||
(auto-fill-mode 1))
|
||||
|
||||
(defun set-fill-column (arg)
|
||||
"Set `fill-column' to current column, or to argument if given.
|
||||
The variable `fill-column' has a separate value for each buffer."
|
||||
"Set `fill-column' to specified argument.
|
||||
Just \\[universal-argument] as argument means to use the current column."
|
||||
(interactive "P")
|
||||
(setq fill-column (if (integerp arg) arg (current-column)))
|
||||
(cond ((integerp arg)
|
||||
(setq fill-column arg))
|
||||
((consp arg)
|
||||
(setq fill-column (current-column)))
|
||||
;; Disallow missing argument; it's probably a typo for C-x C-f.
|
||||
(t
|
||||
(error "set-fill-column requires an explicit argument")))
|
||||
(message "fill-column set to %d" fill-column))
|
||||
|
||||
(defconst comment-multi-line nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue