# HG changeset patch # User Chong Yidong # Date 1279123899 14400 # Node ID 54860321176514662080daf8c4f0ccc0a682e453 # Parent 60266cf487b0f0161ecdc9babc2eaa82b1875ff3 * simple.el (push-mark-command): Set selection for select-active-regions. diff -r 60266cf487b0 -r 548603211765 lisp/ChangeLog --- 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 + + * simple.el (push-mark-command): Set the selection if + select-active-regions is non-nil. + 2010-07-10 Glenn Morris * calendar/calendar.el (calendar-week-end-day): New function. diff -r 60266cf487b0 -r 548603211765 lisp/simple.el --- 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")))))