]> git.eshelyaron.com Git - emacs.git/commit
* lisp/rect.el: Make it possible to move bounds past EOL or into TABs.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 11 Jun 2014 21:51:44 +0000 (17:51 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 11 Jun 2014 21:51:44 +0000 (17:51 -0400)
commit7e74ad023826cfe89604b09b605ef74679b375e2
treeb60095b9e15c1177ff6d30e6db571bd509690c5b
parentb83db3b9439b36e84cf8dfb253b8a6006f726c4d
* lisp/rect.el: Make it possible to move bounds past EOL or into TABs.
(operate-on-rectangle): Use apply-on-rectangle.
(rectangle--mark-crutches): New var.
(rectangle--pos-cols, rectangle--col-pos, rectangle--point-col)
(rectangle--crutches, rectangle--reset-crutches): New functions.
(apply-on-rectangle): Obey crutches.  Avoid setq.
Fix missing final iteration if end is at EOB&BOL.
(rectangle-mark-mode-map): Add remap bindings for
exchange-point-and-mark and char/line movements.
(rectangle--*-char): New function.
(rectangle-exchange-point-and-mark, rectangle-right-char)
(rectangle-left-char, rectangle-forward-char)
(rectangle-backward-char, rectangle-next-line)
(rectangle-previous-line): New commands.
(rectangle--place-cursor): New function.
(rectangle--highlight-for-redisplay): Use it.  Use apply-on-rectangle.
etc/NEWS
lisp/ChangeLog
lisp/rect.el