diff options
| author | Lars Magne Ingebrigtsen | 2016-06-27 22:26:02 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-06-27 22:26:02 +0200 |
| commit | 1bd74554970450054c874dbb69837b43f783c6bd (patch) | |
| tree | a7948f553dc4932cb7ef3ddcfb69063528034756 | |
| parent | f7ea7aa11f6211b5142bbcfc41c580d75485ca56 (diff) | |
| download | emacs-1bd74554970450054c874dbb69837b43f783c6bd.tar.gz emacs-1bd74554970450054c874dbb69837b43f783c6bd.zip | |
Fix the prefix action of shr-copy-url
* lisp/net/shr.el (shr-copy-url): Make the command really copy
the image url if given a prefix.
| -rw-r--r-- | lisp/net/shr.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 9d42fde0756..6b1998362d9 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -296,8 +296,10 @@ image under point instead. | |||
| 296 | If called twice, then try to fetch the URL and see whether it | 296 | If called twice, then try to fetch the URL and see whether it |
| 297 | redirects somewhere else." | 297 | redirects somewhere else." |
| 298 | (interactive "P") | 298 | (interactive "P") |
| 299 | (let ((url (or (get-text-property (point) 'shr-url) | 299 | (let ((url (if image-url |
| 300 | (get-text-property (point) 'image-url)))) | 300 | (get-text-property (point) 'image-url) |
| 301 | (or (get-text-property (point) 'shr-url) | ||
| 302 | (get-text-property (point) 'image-url))))) | ||
| 301 | (cond | 303 | (cond |
| 302 | ((not url) | 304 | ((not url) |
| 303 | (message "No URL under point")) | 305 | (message "No URL under point")) |