Mercurial > emacs
comparison lisp/emulation/cua-rect.el @ 102915:5200e3730ccd
(cua--indent-rectangle): Insert tabs using
tab-to-tab-stop to respect indent-tabs-mode.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 09 Apr 2009 17:13:54 +0000 |
parents | a9dc0e7c3f2b |
children | 328150f0cf76 |
comparison
equal
deleted
inserted
replaced
102914:8b13a9b37672 | 102915:5200e3730ccd |
---|---|
845 (if (and (eolp) | 845 (if (and (eolp) |
846 (< (current-column) col)) | 846 (< (current-column) col)) |
847 (move-to-column col t)) | 847 (move-to-column col t)) |
848 (cond | 848 (cond |
849 (to-col (indent-to to-col)) | 849 (to-col (indent-to to-col)) |
850 (ch (insert ch)) | 850 ((and ch (not (eq ch ?\t))) (insert ch)) |
851 (t (tab-to-tab-stop))) | 851 (t (tab-to-tab-stop))) |
852 (if (cua--rectangle-right-side t) | 852 (if (cua--rectangle-right-side t) |
853 (cua--rectangle-insert-col (current-column)) | 853 (cua--rectangle-insert-col (current-column)) |
854 (setq indent (- (current-column) l)))) | 854 (setq indent (- (current-column) l)))) |
855 '(lambda (l r) | 855 '(lambda (l r) |