]> git.eshelyaron.com Git - emacs.git/commitdiff
* simple.el (push-mark-command): Set selection for select-active-regions.
authorChong Yidong <cyd@stupidchicken.com>
Wed, 14 Jul 2010 16:11:39 +0000 (12:11 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 14 Jul 2010 16:11:39 +0000 (12:11 -0400)
lisp/ChangeLog
lisp/simple.el

index dec7a513927b2a6c7495a1b779f5a9516e4c05cb..4655469ed5494a1ef611ac4f28754b14df6d4af5 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * simple.el (push-mark-command): Set the selection if
+       select-active-regions is non-nil.
+
 2010-07-10  Glenn Morris  <rgm@gnu.org>
 
        * calendar/calendar.el (calendar-week-end-day): New function.
index 7f4bc3bc87ba9ecb4c405482ce139e240c6e5b9a..6c8725a813f00d84552d96af2503ba6234887270 100644 (file)
@@ -3687,6 +3687,8 @@ Display `Mark set' unless the optional second arg NOMSG is non-nil."
        (push-mark nil nomsg t)
       (setq mark-active t)
       (run-hooks 'activate-mark-hook)
+      (and select-active-regions (display-selections-p)
+          (x-set-selection 'PRIMARY (current-buffer)))
       (unless nomsg
        (message "Mark activated")))))