shr.el: Encode copied URLs

* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
URLs containing spaces and the like.
parent 015ea0ff
2014-08-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
URLs containing spaces and the like.
2014-08-25 Christoph Scholtes <cschol2112@gmail.com>
* subr.el (remq): Fix docstring (Bug#18253).
......
......@@ -246,9 +246,9 @@ redirects somewhere else."
;; Copy the URL to the kill ring.
(t
(with-temp-buffer
(insert url)
(insert (url-encode-url url))
(copy-region-as-kill (point-min) (point-max))
(message "Copied %s" url))))))
(message "Copied %s" (buffer-substring)))))))
(defun shr-next-link ()
"Skip to the next link."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment