branch: elpa/elfeed
commit c8a2072682c0a3ca0f9f045d8c5dc635ec8bc270
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Stop using obsolete x-set-selection
---
elfeed-search.el | 5 +----
elfeed-show.el | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/elfeed-search.el b/elfeed-search.el
index 1e4856f2a7..d76513137b 100644
--- a/elfeed-search.el
+++ b/elfeed-search.el
@@ -936,10 +936,7 @@ the browser defined by
`browse-url-secondary-browser-function'."
(when entries
(elfeed-untag entries 'unread)
(kill-new links-str)
- (if (fboundp 'gui-set-selection)
- (gui-set-selection elfeed-search-clipboard-type links-str)
- (with-no-warnings
- (x-set-selection elfeed-search-clipboard-type links-str)))
+ (gui-set-selection elfeed-search-clipboard-type links-str)
(message "Copied: %s" links-str)
(mapc #'elfeed-search-update-entry entries)
(elfeed-search--after-action 'yank))))
diff --git a/elfeed-show.el b/elfeed-show.el
index 717a75226e..2aa9f17e85 100644
--- a/elfeed-show.el
+++ b/elfeed-show.el
@@ -324,10 +324,7 @@ the browser defined by
`browse-url-secondary-browser-function'."
(interactive nil elfeed-show-mode)
(when-let* ((link (elfeed-entry-link elfeed-show-entry)))
(kill-new link)
- (if (fboundp 'gui-set-selection)
- (gui-set-selection 'PRIMARY link)
- (with-no-warnings
- (x-set-selection 'PRIMARY link)))
+ (gui-set-selection 'PRIMARY link)
(message "Yanked: %s" link)))
(defun elfeed-show-tag (&rest tags)