diff lisp/simple.el @ 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 4773a5d3ff67
children 051595eb9b58 ad23e0fe40f4
line wrap: on
line diff
--- 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")))))