]> git.eshelyaron.com Git - emacs.git/commitdiff
(cua-copy-region-to-global-mark)
authorKim F. Storm <storm@cua.dk>
Sun, 9 Apr 2006 23:04:33 +0000 (23:04 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 9 Apr 2006 23:04:33 +0000 (23:04 +0000)
(cua-cut-region-to-global-mark): Use filter-buffer-substring.

lisp/emulation/cua-gmrk.el

index c3e6727ab651dcea1dfe7f36feb8a61f0a0c354c..842ee9ce0e3df4af1f895e5579217db59e481717 100644 (file)
@@ -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))