]> git.eshelyaron.com Git - emacs.git/commit
Support setting region from secondary selection and vice versa
authorTak Kunihiro <tkk@misasa.okayama-u.ac.jp>
Thu, 21 Sep 2017 08:26:00 +0000 (11:26 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 21 Sep 2017 08:26:00 +0000 (11:26 +0300)
commit31e1d9ef2f70937cd0f93f67399620201ded300b
tree4b956d0f55bf4df22f95f3ed6075c160c0ecf775
parent047f02f00f602b9aef63ae8938e12f3f0ab481eb
Support setting region from secondary selection and vice versa

* lisp/mouse.el (secondary-selection-exist-p): New function to
allow callers to tell existence of the secondary selection
in current buffer.
(secondary-selection-to-region): New function to set
beginning and end of the region from those of the secondary
selection.
(secondary-selection-from-region): New function to set
beginning and end of the secondary selection from those of
the region.  (Bug#27530)

* etc/NEWS: Mention the new functions.
etc/NEWS
lisp/mouse.el