aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/simple.el2
-rw-r--r--lisp/winner.el6
3 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2423acc5667..98ba110ab33 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12013-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * winner.el (winner-active-region): Use region-active-p, activate-mark
4 and deactivate-mark (bug#14225).
5
6 * simple.el (deactivate-mark): Don't inline it.
7
12013-04-18 Michael Albinus <michael.albinus@gmx.de> 82013-04-18 Michael Albinus <michael.albinus@gmx.de>
2 9
3 * net/tramp-sh.el (tramp-remote-process-environment): Add "TMOUT=0". 10 * net/tramp-sh.el (tramp-remote-process-environment): Add "TMOUT=0".
diff --git a/lisp/simple.el b/lisp/simple.el
index 3f28b8413e0..5fda9021004 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4177,7 +4177,7 @@ a mistake; see the documentation of `set-mark'."
4177 (marker-position (mark-marker)) 4177 (marker-position (mark-marker))
4178 (signal 'mark-inactive nil))) 4178 (signal 'mark-inactive nil)))
4179 4179
4180(defsubst deactivate-mark (&optional force) 4180(defun deactivate-mark (&optional force)
4181 "Deactivate the mark. 4181 "Deactivate the mark.
4182If Transient Mark mode is disabled, this function normally does 4182If Transient Mark mode is disabled, this function normally does
4183nothing; but if FORCE is non-nil, it deactivates the mark anyway. 4183nothing; but if FORCE is non-nil, it deactivates the mark anyway.
diff --git a/lisp/winner.el b/lisp/winner.el
index dfbd15b6676..f521ba0521b 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -45,10 +45,8 @@
45 (if (featurep 'xemacs) 45 (if (featurep 'xemacs)
46 `(if ,store (zmacs-activate-region) 46 `(if ,store (zmacs-activate-region)
47 (zmacs-deactivate-region)) 47 (zmacs-deactivate-region))
48 `(setq mark-active ,store))))) 48 `(if ,store (activate-mark) (deactivate-mark))))))
49 (if (boundp 'mark-active) 49 (region-active-p))
50 mark-active
51 (region-active-p)))
52 50
53(defalias 'winner-edges 51(defalias 'winner-edges
54 (if (featurep 'xemacs) 'window-pixel-edges 'window-edges)) 52 (if (featurep 'xemacs) 'window-pixel-edges 'window-edges))