aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-30 01:15:52 +0000
committerJuanma Barranquero2005-06-30 01:15:52 +0000
commit8482d727c366aef75ec21a48bd47ad4622c30269 (patch)
tree94c7c689876fff568062f7b677b0dda08883d76a
parentc23eed1b5f098f14aba61b1d3e81f04cff7a827f (diff)
downloademacs-8482d727c366aef75ec21a48bd47ad4622c30269.tar.gz
emacs-8482d727c366aef75ec21a48bd47ad4622c30269.zip
(cua-do-rectangle-padding): Remove period from end of messages.
(cua--rectangle-seq-format): Fix typo in docstring. (cua-sequence-rectangle, cua-fill-char-rectangle): Improve argument/docstring consistency.
-rw-r--r--lisp/emulation/cua-rect.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index 72fd9195850..19360ac6845 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -992,7 +992,7 @@ With prefix argument, the toggle restriction."
992(defun cua-do-rectangle-padding () 992(defun cua-do-rectangle-padding ()
993 (interactive) 993 (interactive)
994 (if buffer-read-only 994 (if buffer-read-only
995 (message "Cannot do padding in read-only buffer.") 995 (message "Cannot do padding in read-only buffer")
996 (cua--rectangle-operation nil nil t t t) 996 (cua--rectangle-operation nil nil t t t)
997 (cua--rectangle-set-corners)) 997 (cua--rectangle-set-corners))
998 (cua--keep-active)) 998 (cua--keep-active))
@@ -1098,14 +1098,14 @@ The length of STRING need not be the same as the rectangle width."
1098 '(lambda (l r) 1098 '(lambda (l r)
1099 (cua--rectangle-right (max l (+ l (length string) -1))))))) 1099 (cua--rectangle-right (max l (+ l (length string) -1)))))))
1100 1100
1101(defun cua-fill-char-rectangle (ch) 1101(defun cua-fill-char-rectangle (character)
1102 "Replace CUA rectangle contents with CHARACTER." 1102 "Replace CUA rectangle contents with CHARACTER."
1103 (interactive "cFill rectangle with character: ") 1103 (interactive "cFill rectangle with character: ")
1104 (cua--rectangle-operation 'clear nil t 1 nil 1104 (cua--rectangle-operation 'clear nil t 1 nil
1105 '(lambda (s e l r) 1105 '(lambda (s e l r)
1106 (delete-region s e) 1106 (delete-region s e)
1107 (move-to-column l t) 1107 (move-to-column l t)
1108 (insert-char ch (- r l))))) 1108 (insert-char character (- r l)))))
1109 1109
1110(defun cua-replace-in-rectangle (regexp newtext) 1110(defun cua-replace-in-rectangle (regexp newtext)
1111 "Replace REGEXP with NEWTEXT in each line of CUA rectangle." 1111 "Replace REGEXP with NEWTEXT in each line of CUA rectangle."
@@ -1137,9 +1137,9 @@ The length of STRING need not be the same as the rectangle width."
1137 (t nil))))) 1137 (t nil)))))
1138 1138
1139(defvar cua--rectangle-seq-format "%d" 1139(defvar cua--rectangle-seq-format "%d"
1140 "Last format used by cua-sequence-rectangle.") 1140 "Last format used by `cua-sequence-rectangle'.")
1141 1141
1142(defun cua-sequence-rectangle (first incr fmt) 1142(defun cua-sequence-rectangle (first incr format)
1143 "Resequence each line of CUA rectangle starting from FIRST. 1143 "Resequence each line of CUA rectangle starting from FIRST.
1144The numbers are formatted according to the FORMAT string." 1144The numbers are formatted according to the FORMAT string."
1145 (interactive 1145 (interactive
@@ -1150,13 +1150,13 @@ The numbers are formatted according to the FORMAT string."
1150 (string-to-number 1150 (string-to-number
1151 (read-string "Increment: (1) " nil nil "1")) 1151 (read-string "Increment: (1) " nil nil "1"))
1152 (read-string (concat "Format: (" cua--rectangle-seq-format ") ")))) 1152 (read-string (concat "Format: (" cua--rectangle-seq-format ") "))))
1153 (if (= (length fmt) 0) 1153 (if (= (length format) 0)
1154 (setq fmt cua--rectangle-seq-format) 1154 (setq format cua--rectangle-seq-format)
1155 (setq cua--rectangle-seq-format fmt)) 1155 (setq cua--rectangle-seq-format format))
1156 (cua--rectangle-operation 'clear nil t 1 nil 1156 (cua--rectangle-operation 'clear nil t 1 nil
1157 '(lambda (s e l r) 1157 '(lambda (s e l r)
1158 (delete-region s e) 1158 (delete-region s e)
1159 (insert (format fmt first)) 1159 (insert (format format first))
1160 (setq first (+ first incr))))) 1160 (setq first (+ first incr)))))
1161 1161
1162(defmacro cua--convert-rectangle-as (command tabify) 1162(defmacro cua--convert-rectangle-as (command tabify)