changeset 109328:548603211765

* simple.el (push-mark-command): Set selection for select-active-regions.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 14 Jul 2010 12:11:39 -0400
parents 60266cf487b0
children a6e068e858a4
files lisp/ChangeLog lisp/simple.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Jul 14 12:05:53 2010 +0200
+++ b/lisp/ChangeLog	Wed Jul 14 12:11:39 2010 -0400
@@ -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.
--- a/lisp/simple.el	Wed Jul 14 12:05:53 2010 +0200
+++ b/lisp/simple.el	Wed Jul 14 12:11:39 2010 -0400
@@ -3687,6 +3687,8 @@
 	(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")))))