diff options
| author | Tak Kunihiro | 2017-09-21 11:26:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-09-21 11:26:00 +0300 |
| commit | 31e1d9ef2f70937cd0f93f67399620201ded300b (patch) | |
| tree | 4b956d0f55bf4df22f95f3ed6075c160c0ecf775 /etc | |
| parent | 047f02f00f602b9aef63ae8938e12f3f0ab481eb (diff) | |
| download | emacs-31e1d9ef2f70937cd0f93f67399620201ded300b.tar.gz emacs-31e1d9ef2f70937cd0f93f67399620201ded300b.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -1819,6 +1819,13 @@ can be replicated simply by setting 'comment-auto-fill-only-comments'. | |||
| 1819 | ** New pcase pattern 'rx' to match against a rx-style regular expression. | 1819 | ** New pcase pattern 'rx' to match against a rx-style regular expression. |
| 1820 | For details, see the doc string of 'rx--pcase-macroexpander'. | 1820 | For details, see the doc string of 'rx--pcase-macroexpander'. |
| 1821 | 1821 | ||
| 1822 | --- | ||
| 1823 | ** New functions to set region from secondary selection and vice versa. | ||
| 1824 | The new functions 'secondary-selection-to-region' and | ||
| 1825 | 'secondary-selection-from-region' let you set the beginning and the | ||
| 1826 | end of the region from those of the secondary selection and vise | ||
| 1827 | versa. | ||
| 1828 | |||
| 1822 | 1829 | ||
| 1823 | * Changes in Emacs 26.1 on Non-Free Operating Systems | 1830 | * Changes in Emacs 26.1 on Non-Free Operating Systems |
| 1824 | 1831 | ||