aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMiles Bader2006-04-17 08:41:12 +0000
committerMiles Bader2006-04-17 08:41:12 +0000
commitcfc2051d0ed5a268528a647ab0911a2f5cc451de (patch)
treecb622fe0b6c1ba8b97314fb80ba2fd8fad60a5a2 /lisp/emulation
parentca49cf1703cc20d50653c32ca2f438c8819b78bd (diff)
parente4a89ccf738861d7b9c4f611185aa0f204c9c208 (diff)
downloademacs-cfc2051d0ed5a268528a647ab0911a2f5cc451de.tar.gz
emacs-cfc2051d0ed5a268528a647ab0911a2f5cc451de.zip
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-56
Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 204-225) - Update from CVS - Sync from erc--emacs--0 - Merge from gnus--rel--5.10 - Improve tq.el. - Update from CVS: src/puresize.h (PURESIZE_RATIO): Reduce to 10/6. * gnus--rel--5.10 (patch 81-85) - Update from CVS - Merge from emacs--devo--0
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-base.el8
-rw-r--r--lisp/emulation/cua-gmrk.el4
-rw-r--r--lisp/emulation/cua-rect.el10
3 files changed, 11 insertions, 11 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index e7888dbdb0e..2d169e889cd 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -769,7 +769,7 @@ Save a copy in register 0 if `cua-delete-copy-to-register-0' is non-nil."
769 (let ((start (mark)) (end (point))) 769 (let ((start (mark)) (end (point)))
770 (or (<= start end) 770 (or (<= start end)
771 (setq start (prog1 end (setq end start)))) 771 (setq start (prog1 end (setq end start))))
772 (setq cua--last-deleted-region-text (buffer-substring start end)) 772 (setq cua--last-deleted-region-text (filter-buffer-substring start end))
773 (if cua-delete-copy-to-register-0 773 (if cua-delete-copy-to-register-0
774 (set-register ?0 cua--last-deleted-region-text)) 774 (set-register ?0 cua--last-deleted-region-text))
775 (delete-region start end) 775 (delete-region start end)
@@ -858,7 +858,7 @@ If global mark is active, copy from register or one character."
858 (if regtxt 858 (if regtxt
859 (cua--insert-at-global-mark regtxt) 859 (cua--insert-at-global-mark regtxt)
860 (when (not (eobp)) 860 (when (not (eobp))
861 (cua--insert-at-global-mark (buffer-substring (point) (+ (point) count))) 861 (cua--insert-at-global-mark (filter-buffer-substring (point) (+ (point) count)))
862 (forward-char count)))) 862 (forward-char count))))
863 (buffer-read-only 863 (buffer-read-only
864 (message "Cannot paste into a read-only buffer")) 864 (message "Cannot paste into a read-only buffer"))
@@ -875,7 +875,7 @@ If global mark is active, copy from register or one character."
875 (setq paste-lines (cua--delete-rectangle)) 875 (setq paste-lines (cua--delete-rectangle))
876 (if (= paste-lines 1) 876 (if (= paste-lines 1)
877 (setq paste-lines nil))) ;; paste all 877 (setq paste-lines nil))) ;; paste all
878 (if (string= (buffer-substring (point) (mark)) 878 (if (string= (filter-buffer-substring (point) (mark))
879 (car kill-ring)) 879 (car kill-ring))
880 (current-kill 1)) 880 (current-kill 1))
881 (cua-delete-region))) 881 (cua-delete-region)))
@@ -950,7 +950,7 @@ of text."
950 (setq s (car u) e (cdr u))))))) 950 (setq s (car u) e (cdr u)))))))
951 (setq cua--repeat-replace-text 951 (setq cua--repeat-replace-text
952 (cond ((and s e (<= s e) (= s (mark t))) 952 (cond ((and s e (<= s e) (= s (mark t)))
953 (buffer-substring-no-properties s e)) 953 (filter-buffer-substring s e nil t))
954 ((and (null s) (eq u elt)) ;; nothing inserted 954 ((and (null s) (eq u elt)) ;; nothing inserted
955 "") 955 "")
956 (t 956 (t
diff --git a/lisp/emulation/cua-gmrk.el b/lisp/emulation/cua-gmrk.el
index c3e6727ab65..842ee9ce0e3 100644
--- a/lisp/emulation/cua-gmrk.el
+++ b/lisp/emulation/cua-gmrk.el
@@ -143,7 +143,7 @@ With prefix argument, don't jump to global mark when cancelling it."
143 (let ((src-buf (current-buffer))) 143 (let ((src-buf (current-buffer)))
144 (save-excursion 144 (save-excursion
145 (if (equal (marker-buffer cua--global-mark-marker) src-buf) 145 (if (equal (marker-buffer cua--global-mark-marker) src-buf)
146 (let ((text (buffer-substring-no-properties start end))) 146 (let ((text (filter-buffer-substring start end nil t)))
147 (goto-char (marker-position cua--global-mark-marker)) 147 (goto-char (marker-position cua--global-mark-marker))
148 (insert text)) 148 (insert text))
149 (set-buffer (marker-buffer cua--global-mark-marker)) 149 (set-buffer (marker-buffer cua--global-mark-marker))
@@ -167,7 +167,7 @@ With prefix argument, don't jump to global mark when cancelling it."
167 (if (and (< start (marker-position cua--global-mark-marker)) 167 (if (and (< start (marker-position cua--global-mark-marker))
168 (< (marker-position cua--global-mark-marker) end)) 168 (< (marker-position cua--global-mark-marker) end))
169 (message "Can't move region into itself") 169 (message "Can't move region into itself")
170 (let ((text (buffer-substring-no-properties start end)) 170 (let ((text (filter-buffer-substring start end nil t))
171 (p1 (copy-marker start)) 171 (p1 (copy-marker start))
172 (p2 (copy-marker end))) 172 (p2 (copy-marker end)))
173 (goto-char (marker-position cua--global-mark-marker)) 173 (goto-char (marker-position cua--global-mark-marker))
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index 53056d667fb..43a66fd0e3e 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -631,7 +631,7 @@ If command is repeated at same position, delete the rectangle."
631 (if (not (cua--rectangle-virtual-edges)) 631 (if (not (cua--rectangle-virtual-edges))
632 (cua--rectangle-operation nil nil nil nil nil ; do not tabify 632 (cua--rectangle-operation nil nil nil nil nil ; do not tabify
633 '(lambda (s e l r) 633 '(lambda (s e l r)
634 (setq rect (cons (buffer-substring-no-properties s e) rect)))) 634 (setq rect (cons (filter-buffer-substring s e nil t) rect))))
635 (cua--rectangle-operation nil 1 nil nil nil ; do not tabify 635 (cua--rectangle-operation nil 1 nil nil nil ; do not tabify
636 '(lambda (s e l r v) 636 '(lambda (s e l r v)
637 (let ((copy t) (bs 0) (as 0) row) 637 (let ((copy t) (bs 0) (as 0) row)
@@ -649,7 +649,7 @@ If command is repeated at same position, delete the rectangle."
649 (setq as (- r (max (current-column) l)) 649 (setq as (- r (max (current-column) l))
650 e (point))) 650 e (point)))
651 (setq row (if (and copy (> e s)) 651 (setq row (if (and copy (> e s))
652 (buffer-substring-no-properties s e) 652 (filter-buffer-substring s e nil t)
653 "")) 653 ""))
654 (when (> bs 0) 654 (when (> bs 0)
655 (setq row (concat (make-string bs ?\s) row))) 655 (setq row (concat (make-string bs ?\s) row)))
@@ -1127,12 +1127,12 @@ The length of STRING need not be the same as the rectangle width."
1127 '(lambda (s e l r) 1127 '(lambda (s e l r)
1128 (cond 1128 (cond
1129 ((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t) 1129 ((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t)
1130 (let* ((txt (buffer-substring-no-properties (match-beginning 1) (match-end 1))) 1130 (let* ((txt (filter-buffer-substring (match-beginning 1) (match-end 1) nil t))
1131 (n (string-to-number txt 16)) 1131 (n (string-to-number txt 16))
1132 (fmt (format "0x%%0%dx" (length txt)))) 1132 (fmt (format "0x%%0%dx" (length txt))))
1133 (replace-match (format fmt (+ n increment))))) 1133 (replace-match (format fmt (+ n increment)))))
1134 ((re-search-forward "\\( *-?[0-9]+\\)" e t) 1134 ((re-search-forward "\\( *-?[0-9]+\\)" e t)
1135 (let* ((txt (buffer-substring-no-properties (match-beginning 1) (match-end 1))) 1135 (let* ((txt (filter-buffer-substring (match-beginning 1) (match-end 1) nil t))
1136 (prefix (if (= (aref txt 0) ?0) "0" "")) 1136 (prefix (if (= (aref txt 0) ?0) "0" ""))
1137 (n (string-to-number txt 10)) 1137 (n (string-to-number txt 10))
1138 (fmt (format "%%%s%dd" prefix (length txt)))) 1138 (fmt (format "%%%s%dd" prefix (length txt))))
@@ -1213,7 +1213,7 @@ The numbers are formatted according to the FORMAT string."
1213 (when replace 1213 (when replace
1214 (goto-char (point-min)) 1214 (goto-char (point-min))
1215 (while (not (eobp)) 1215 (while (not (eobp))
1216 (setq z (cons (buffer-substring (point) (line-end-position)) z)) 1216 (setq z (cons (filter-buffer-substring (point) (line-end-position)) z))
1217 (forward-line 1)))) 1217 (forward-line 1))))
1218 (if (not cua--debug) 1218 (if (not cua--debug)
1219 (kill-buffer auxbuf)) 1219 (kill-buffer auxbuf))