On Mon, Mar 7, 2011 at 9:42 PM, Le Wang
<l26wang@gmail.com> wrote:
...
(let ((repeat-message-function #'ignore))
(setq last-repeatable-command #'tl-indent-region-engine)
(repeat nil)))
Wow, this repeat bit is a /COOL/ trick. I'll have to file this snippet away. Region stays active, and deactivates when repeating stops (no mucking with deactivate-mark manually) ... very cool.
Thanks for sharing!
Teemu, one bug in the code is that you need to call (require 'repeat) at the beginning, otherwise when it gets autoloaded later `repeat-message-function' doesn't get initialized properly because of the "(let ..." binding.