diff options
| author | Kim F. Storm | 2004-09-12 20:26:39 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-09-12 20:26:39 +0000 |
| commit | 4e687447ad2db8b2bb588ae0a28df50567e42f84 (patch) | |
| tree | 6fbbd79c4818e72996a168acdb6596fed076c2bd | |
| parent | f4961c00594d91b316e532c234c314e3279f5be0 (diff) | |
| download | emacs-4e687447ad2db8b2bb588ae0a28df50567e42f84.tar.gz emacs-4e687447ad2db8b2bb588ae0a28df50567e42f84.zip | |
(cua--rectangle-operation): Let bind
inhibit-field-text-motion to t so rectangles work in comint buffers.
| -rw-r--r-- | lisp/emulation/cua-rect.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 10d369fa042..742ae2033be 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el | |||
| @@ -559,7 +559,8 @@ If command is repeated at same position, delete the rectangle." | |||
| 559 | ;; Rectangle is padded if PAD = t or numeric and (cua--rectangle-virtual-edges) | 559 | ;; Rectangle is padded if PAD = t or numeric and (cua--rectangle-virtual-edges) |
| 560 | ;; Perform auto-tabify after operation if TABIFY is non-nil. | 560 | ;; Perform auto-tabify after operation if TABIFY is non-nil. |
| 561 | ;; Mark is kept if keep-clear is 'keep and cleared if keep-clear is 'clear. | 561 | ;; Mark is kept if keep-clear is 'keep and cleared if keep-clear is 'clear. |
| 562 | (let* ((start (cua--rectangle-top)) | 562 | (let* ((inhibit-field-text-motion t) |
| 563 | (start (cua--rectangle-top)) | ||
| 563 | (end (cua--rectangle-bot)) | 564 | (end (cua--rectangle-bot)) |
| 564 | (l (cua--rectangle-left)) | 565 | (l (cua--rectangle-left)) |
| 565 | (r (1+ (cua--rectangle-right))) | 566 | (r (1+ (cua--rectangle-right))) |