+2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
+
+ * rect.el (delete-rectangle-line): Fix pos/column confusion.
+
2001-11-15 Stefan Monnier <monnier@cs.yale.edu>
* menu-bar.el (menu-bar-edit-menu) <copy>: Put an explicit key binding.
(defun delete-rectangle-line (startcol endcol fill)
(let ((pt (line-end-position)))
(when (= (move-to-column-force startcol (or fill 'coerce)) startcol)
- (if (and (not fill) (<= pt endcol))
- (delete-region (point) pt)
- ;; else
- (setq pt (point))
- (move-to-column-force endcol)
- (delete-region pt (point))))
- ))
+ (setq pt (point))
+ (move-to-column-force endcol)
+ (delete-region pt (point)))))
(defun delete-extract-rectangle-line (startcol endcol lines fill)
(let ((pt (point-at-eol)))