summaryrefslogtreecommitdiff
path: root/lisp/emulation/cua-base.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-12-15 21:24:08 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-12-15 21:24:08 -0500
commit2013a2f955e4dc6edf9869767e9f5d70fbf9d69c (patch)
treed641c6fe8fc0b763645a5447f1fda75987cc4ac0 /lisp/emulation/cua-base.el
parentdb50ad5f11cc5809c27091181a13ee7aa34ec5ed (diff)
downloademacs-2013a2f955e4dc6edf9869767e9f5d70fbf9d69c.tar.gz
* lisp/emulation/cua-rect.el (cua-rectangle-mark-mode): New minor mode.
(cua--deactivate-rectangle): Don't deactivate the mark. (cua-set-rectangle-mark): Don't set mark-active since cua--activate-rectangle already does it for us. (cua--rectangle-highlight-for-redisplay): Unhighlight a previous non-rectangular region. * lisp/emulation/cua-base.el (cua-repeat-replace-region): Use with-current-buffer. * lisp/net/gnutls.el: Use cl-lib. (gnutls-negotiate): `mapcan' -> cl-mapcan.
Diffstat (limited to 'lisp/emulation/cua-base.el')
-rw-r--r--lisp/emulation/cua-base.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 24149a33c89..4a158087d12 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -971,9 +971,8 @@ replaced by typing text over it and replaces it with the same stretch
of text."
(interactive "P")
(when cua--last-deleted-region-pos
- (save-excursion
+ (with-current-buffer (car cua--last-deleted-region-pos)
(save-restriction
- (set-buffer (car cua--last-deleted-region-pos))
(widen)
;; Find the text that replaced the region via the undo list.
(let ((ul buffer-undo-list)