Function: increase-right-margin
increase-right-margin is an interactive and byte-compiled function
defined in indent.el.gz.
Signature
(increase-right-margin FROM TO INC)
Documentation
Increase the right-margin of the region.
With no prefix argument, increase the right margin by standard-indent.
A prefix arg (optional third arg INC noninteractively) specifies the amount
to change the margin by, in characters. A negative argument decreases
the right margin width.
If auto-fill-mode is active, re-fill the region to fit the new margin.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/indent.el.gz
(defun increase-right-margin (from to inc)
"Increase the right-margin of the region.
With no prefix argument, increase the right margin by `standard-indent'.
A prefix arg (optional third arg INC noninteractively) specifies the amount
to change the margin by, in characters. A negative argument decreases
the right margin width.
If `auto-fill-mode' is active, re-fill the region to fit the new margin."
(interactive "r\nP")
(setq inc (if inc (prefix-numeric-value inc) standard-indent))
(save-excursion
(alter-text-property from to 'right-margin
(lambda (v) (+ inc (or v 0))))
(if auto-fill-function
(fill-region from to nil t t))))