comparison lisp/indent.el @ 4812:5b560b7374ff

Make COLUMN optional in #'indent-region, as in GNU. 2010-01-08 Aidan Kehoe <kehoea@parhasard.net> * indent.el (indent-region): Make COLUMN optional as in GNU, merging Andreas Roehler's change of http://mid.gmane.org/4B46F5FC.2070506@online.de ; thank you Andreas!
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 08 Jan 2010 14:20:14 +0000
parents a634e3b7acc8
children 308d34e9f07d
comparison
equal deleted inserted replaced
4811:3c96cf473e07 4812:5b560b7374ff
287 287
288 (defvar indent-region-function nil 288 (defvar indent-region-function nil
289 "Short cut function to indent region using `indent-according-to-mode'. 289 "Short cut function to indent region using `indent-according-to-mode'.
290 A value of nil means really run `indent-according-to-mode' on each line.") 290 A value of nil means really run `indent-according-to-mode' on each line.")
291 291
292 (defun indent-region (start end column) 292 (defun indent-region (start end &optional column)
293 "Indent each nonblank line in the region. 293 "Indent each nonblank line in the region.
294 With no argument, indent each line using `indent-according-to-mode', 294 With no argument, indent each line using `indent-according-to-mode',
295 or use `indent-region-function' to do the whole region if that's non-nil. 295 or use `indent-region-function' to do the whole region if that's non-nil.
296 If there is a fill prefix, make each line start with the fill prefix. 296 If there is a fill prefix, make each line start with the fill prefix.
297 With argument COLUMN, indent each line to that column. 297 With argument COLUMN, indent each line to that column.