aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/rect.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/rect.el b/lisp/rect.el
index 97fa980d1a6..a48b0e650ce 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -58,7 +58,7 @@ the desired column only if the line is long enough."
58;; to accumulate them for extract-rectangle and delete-extract-rectangle. 58;; to accumulate them for extract-rectangle and delete-extract-rectangle.
59(defvar operate-on-rectangle-lines) 59(defvar operate-on-rectangle-lines)
60 60
61;; ### NOTE: this function is untouched, but not used anymore appart in 61;; ### NOTE: this function is untouched, but not used anymore apart from
62;; `delete-whitespace-rectangle'. `apply-on-rectangle' is used instead. --dv 62;; `delete-whitespace-rectangle'. `apply-on-rectangle' is used instead. --dv
63(defun operate-on-rectangle (function start end coerce-tabs) 63(defun operate-on-rectangle (function start end coerce-tabs)
64 "Call FUNCTION for each line of rectangle with corners at START, END. 64 "Call FUNCTION for each line of rectangle with corners at START, END.
@@ -297,12 +297,10 @@ on the right side of the rectangle."
297 (goto-char start)) 297 (goto-char start))
298 298
299(defun open-rectangle-line (startcol endcol fill) 299(defun open-rectangle-line (startcol endcol fill)
300 (let (spaces) 300 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol)
301 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol) 301 (unless (and (not fill)
302 (unless (and (not fill) 302 (= (point) (point-at-eol)))
303 (= (point) (point-at-eol))) 303 (indent-to endcol))))
304 (indent-to endcol)))
305 ))
306 304
307(defun delete-whitespace-rectangle-line (startcol endcol fill) 305(defun delete-whitespace-rectangle-line (startcol endcol fill)
308 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol) 306 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol)