Subject: bug#2859: 23.0.91; indent-tabs-mode and cua-rectangle editing when using the tab key

From: Glenn Morris <[email-masked]>
Date: Thu, 09 Apr 2009 02:22:05 -0400

Stefan Reichör wrote:

> (setq-default indent-tabs-mode nil)
> I have set indent-tabs-mode to nil
> This setting does not work during indenting with cua rectangle mode

It seems that cua-indent-rectangle always uses tabs.
Kim, can you comment on this?

(defun cua-indent-rectangle (column)
  "Indent rectangle to next tab stop.
With prefix arg, indent to that column."
  (interactive "P")
  (if (null column)
      (cua-insert-char-rectangle ?\t)    ;   <-------
    (cua--indent-rectangle nil (prefix-numeric-value column))))