[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete-indentation should work on regions too
From: |
Kevin Rodgers |
Subject: |
Re: delete-indentation should work on regions too |
Date: |
Mon, 03 Jan 2005 16:07:24 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Dan Jacobson wrote:
> Oops, as the two commands have different goals, I now mean:
> delete-indentation's docstring should mention if one wants to
> delete-indentation of a whole block, use indent-region with a negative
> argument.
Or perhaps it could do that for you automatically:
(if (and mark-active transient-mark-mode)
;; C-h v most-negative-fixnum
(indent-region (region-beginning) (region-end) (- -1 (lsh -1 -1)))
(progn
;; normal body here
))
--
Kevin Rodgers