1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-20 23:20:36 -08:00

shr.el: Encode copied URLs

* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
URLs containing spaces and the like.
This commit is contained in:
Lars Magne Ingebrigtsen 2014-08-25 17:59:38 +02:00
parent 015ea0ffdb
commit 0a4aa6bd20
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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).

View file

@ -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."