comparison lisp/indent.el @ 108760:f528b6459bdd

merge trunk
author Kenichi Handa <handa@etlken>
date Tue, 25 May 2010 09:35:50 +0900
parents 144e6ea330f0
children 280c8ae2476d
comparison
equal deleted inserted replaced
108759:0bb727f1d547 108760:f528b6459bdd
429 (while (< (point) end) 429 (while (< (point) end)
430 (delete-region (point) (progn (skip-chars-forward " \t") (point))) 430 (delete-region (point) (progn (skip-chars-forward " \t") (point)))
431 (or (eolp) 431 (or (eolp)
432 (indent-to column 0)) 432 (indent-to column 0))
433 (forward-line 1)) 433 (forward-line 1))
434 (move-marker end nil)))) 434 (move-marker end nil)))
435 ;; In most cases, reindenting modifies the buffer, but it may also
436 ;; leave it unmodified, in which case we have to deactivate the mark
437 ;; by hand.
438 (deactivate-mark))
435 439
436 (defun indent-relative-maybe () 440 (defun indent-relative-maybe ()
437 "Indent a new line like previous nonblank line. 441 "Indent a new line like previous nonblank line.
438 If the previous nonblank line has no indent points beyond the 442 If the previous nonblank line has no indent points beyond the
439 column point starts at, this command does nothing. 443 column point starts at, this command does nothing.