We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 138d889 commit 1edcb85Copy full SHA for 1edcb85
modules/me-rss.el
@@ -33,10 +33,9 @@
33
(defun +elfeed-download-image ()
34
"Download the image at point."
35
(interactive)
36
- (let ((url (get-text-property (point) 'image-url)))
37
- (if (not url)
38
- (message "No image at point!")
39
- (url-copy-file url (expand-file-name (url-file-nondirectory url) (+directory-ensure +elfeed-images-dir)))))))
+ (if-let* ((url (get-text-property (point) 'image-url)))
+ (url-copy-file url (expand-file-name (url-file-nondirectory url) (+directory-ensure +elfeed-images-dir)))
+ (user-error "No image at point!"))))
40
41
42
;; Extra `elfeed' protocols to add support for Fever, NewsBlur, Nextcloud/ownCloud News and Tiny Tiny RSS
0 commit comments