summaryrefslogtreecommitdiff
path: root/lisp/emulation
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-04-09 23:04:33 +0000
committerKim F. Storm <storm@cua.dk>2006-04-09 23:04:33 +0000
commita4dad45a786371837a5e6030a874858fc2ecbc4a (patch)
treecc1bc8de9349b71fdb198fdcba334da775e120ad /lisp/emulation
parent15ac4d58250bcd7502a48aaeb6ba14204c6d362d (diff)
downloademacs-a4dad45a786371837a5e6030a874858fc2ecbc4a.tar.gz
(cua-copy-region-to-global-mark)
(cua-cut-region-to-global-mark): Use filter-buffer-substring.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-gmrk.el4
1 files changed, 2 insertions, 2 deletions
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."
(let ((src-buf (current-buffer)))
(save-excursion
(if (equal (marker-buffer cua--global-mark-marker) src-buf)
- (let ((text (buffer-substring-no-properties start end)))
+ (let ((text (filter-buffer-substring start end nil t)))
(goto-char (marker-position cua--global-mark-marker))
(insert text))
(set-buffer (marker-buffer cua--global-mark-marker))
@@ -167,7 +167,7 @@ With prefix argument, don't jump to global mark when cancelling it."
(if (and (< start (marker-position cua--global-mark-marker))
(< (marker-position cua--global-mark-marker) end))
(message "Can't move region into itself")
- (let ((text (buffer-substring-no-properties start end))
+ (let ((text (filter-buffer-substring start end nil t))
(p1 (copy-marker start))
(p2 (copy-marker end)))
(goto-char (marker-position cua--global-mark-marker))