aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-11-22 17:33:21 +0000
committerDave Love2000-11-22 17:33:21 +0000
commit197615f33f70b994afbf797c60482c258ddfa511 (patch)
tree5f4e09122c7e3c81693ca226bd56b423807661e1
parentf4117c4d52cad18d36e17937787d2ad0835ec4ba (diff)
downloademacs-197615f33f70b994afbf797c60482c258ddfa511.tar.gz
emacs-197615f33f70b994afbf797c60482c258ddfa511.zip
(string-rectangle): Revert last change.
(string-rectangle-line): New arg DELETE. (string-rectangle): Check delete-selection-mode.
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/rect.el9
2 files changed, 20 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 97fd006be20..cf544ed363e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12000-11-22 Dave Love <fx@gnu.org>
2
3 * rect.el (string-rectangle): Revert last change.
4 (string-rectangle-line): New arg DELETE.
5 (string-rectangle): Check delete-selection-mode.
6
7 * emacs-lisp/edebug.el (edebug-version)
8 (edebug-maintainer-address): Deleted.
9 (edebug-submit-bug-report): Just alias to report-emacs-bug.
10 (edebug-read-function): Account for other `'#' read forms.
11 (edebug-mode-menus): Make some items toggles.
12 (edebug-outside-unread-command-event, unread-command-event):
13 Remove these to avoid warnings.
14
12000-11-22 David Ponce <david@dponce.com> 152000-11-22 David Ponce <david@dponce.com>
2 16
3 * recentf.el (recentf-menu-items-for-commands) 17 * recentf.el (recentf-menu-items-for-commands)
diff --git a/lisp/rect.el b/lisp/rect.el
index 1be2c938198..2189bd714b8 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -334,17 +334,20 @@ 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 (apply-on-rectangle 'string-rectangle-line start end string
338 (bound-and-true-p 'delete-selection-mode)))
338 339
339(defun string-rectangle-line (startcol endcol string) 340(defun string-rectangle-line (startcol endcol string delete)
340 (move-to-column-force startcol) 341 (move-to-column-force startcol)
342 (if delete
343 (delete-rectangle-line startcol endcol nil))
341 (insert string)) 344 (insert string))
342 345
343;;;###autoload 346;;;###autoload
344(defun replace-rectangle (start end string) 347(defun replace-rectangle (start end string)
345 "Like `string-rectangle', but replace the original region." 348 "Like `string-rectangle', but replace the original region."
346 (interactive "*r\nsString rectangle: ") 349 (interactive "*r\nsString rectangle: ")
347 (apply-on-rectangle 'string-rectangle-line start end string)) 350 (apply-on-rectangle 'string-rectangle-line start end string t))
348 351
349;;;###autoload 352;;;###autoload
350(defun clear-rectangle (start end &optional fill) 353(defun clear-rectangle (start end &optional fill)