aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-11-23 14:03:22 +0000
committerDave Love2000-11-23 14:03:22 +0000
commit595dead24f51441813e5ccda956e9f741feff275 (patch)
tree0937a50433faf25563db5131ecdbf44630019638
parent1e66b27ab8116c12b2406d5b9717911f48d2ef5c (diff)
downloademacs-595dead24f51441813e5ccda956e9f741feff275.tar.gz
emacs-595dead24f51441813e5ccda956e9f741feff275.zip
(string-rectangle): Don't test delete-selection-mode.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/rect.el9
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 52cad6be16e..68da7842fbd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12000-11-23 Dave Love <fx@gnu.org>
2
3 * rect.el (string-rectangle): Don't test delete-selection-mode.
4
12000-11-23 Gerd Moellmann <gerd@gnu.org> 52000-11-23 Gerd Moellmann <gerd@gnu.org>
2 6
3 * dired-aux.el (dired-add-entry): Don't call dired-get-filename 7 * dired-aux.el (dired-add-entry): Don't call dired-get-filename
diff --git a/lisp/rect.el b/lisp/rect.el
index 2189bd714b8..302621776c3 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -334,8 +334,13 @@ When called from a program the rectangle's corners are START and END.
334The left edge of the rectangle specifies the column for insertion. 334The left edge of the rectangle specifies the column for insertion.
335This command does not delete or overwrite any existing text." 335This command does not delete or overwrite any existing text."
336 (interactive "*r\nsString rectangle: ") 336 (interactive "*r\nsString rectangle: ")
337 (apply-on-rectangle 'string-rectangle-line start end string 337 ;; XEmacs tests `pending-delete-mode' here, and replaces the
338 (bound-and-true-p 'delete-selection-mode))) 338 ;; rectangle if that's on. Using `delete-selection-mode' here would
339 ;; only be useful if `mark-even-if-inactive' is on since otherwise
340 ;; we need the mark to be active, given the interactive spec, and
341 ;; then we'd always delete. Maybe revisit this and consider testing
342 ;; `mark-even-if-inactive' too?
343 (apply-on-rectangle 'string-rectangle-line start end string nil))
339 344
340(defun string-rectangle-line (startcol endcol string delete) 345(defun string-rectangle-line (startcol endcol string delete)
341 (move-to-column-force startcol) 346 (move-to-column-force startcol)