From 5cbce271a61935fe07103b94cfad678d129f06c9 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 14 Jul 2010 12:11:39 -0400 Subject: [PATCH] * simple.el (push-mark-command): Set selection for select-active-regions. --- lisp/ChangeLog | 5 +++++ lisp/simple.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dec7a513927..4655469ed54 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/simple.el b/lisp/simple.el index 7f4bc3bc87b..6c8725a813f 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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"))))) -- 2.39.2