From: Chong Yidong Date: Wed, 14 Jul 2010 16:11:39 +0000 (-0400) Subject: * simple.el (push-mark-command): Set selection for select-active-regions. X-Git-Tag: emacs-pretest-23.2.90~139^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5cbce271a61935fe07103b94cfad678d129f06c9;p=emacs.git * simple.el (push-mark-command): Set selection for select-active-regions. --- 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")))))