emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1bd7455 3/3: Fix the prefix action of shr-copy-url


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 1bd7455 3/3: Fix the prefix action of shr-copy-url
Date: Mon, 27 Jun 2016 20:26:16 +0000 (UTC)

branch: master
commit 1bd74554970450054c874dbb69837b43f783c6bd
Author: Lars Magne Ingebrigtsen <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>

    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.
---
 lisp/net/shr.el |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 9d42fde..6b19983 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -296,8 +296,10 @@ image under point instead.
 If called twice, then try to fetch the URL and see whether it
 redirects somewhere else."
   (interactive "P")
-  (let ((url (or (get-text-property (point) 'shr-url)
-                (get-text-property (point) 'image-url))))
+  (let ((url (if image-url
+                 (get-text-property (point) 'image-url)
+               (or (get-text-property (point) 'shr-url)
+                   (get-text-property (point) 'image-url)))))
     (cond
      ((not url)
       (message "No URL under point"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]