Commit 24e71050 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix rectangle commands when 'indent-tabs-mode' is non-nil

* lisp/rect.el (delete-rectangle, kill-rectangle): Temporarily
bind 'indent-tabs-mode' to nil.  (Bug#67925)
parent 6abf1c03
Pipeline #27653 failed with stages
in 25 minutes and 13 seconds
......@@ -282,7 +282,8 @@ When called from a program the rectangle's corners are START and END.
With a prefix (or a FILL) argument, also fill lines where nothing has
to be deleted."
(interactive "*r\nP")
(apply-on-rectangle 'delete-rectangle-line start end fill))
(let (indent-tabs-mode)
(apply-on-rectangle 'delete-rectangle-line start end fill)))
;;;###autoload
(defun delete-extract-rectangle (start end &optional fill)
......@@ -337,7 +338,8 @@ you can use this command to copy text from a read-only buffer.
even beep.)"
(interactive "r\nP")
(condition-case nil
(setq killed-rectangle (delete-extract-rectangle start end fill))
(let (indent-tabs-mode)
(setq killed-rectangle (delete-extract-rectangle start end fill)))
((buffer-read-only text-read-only)
(setq deactivate-mark t)
(setq killed-rectangle (extract-rectangle start end))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment