forked from Github/emacs
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:
parent
015ea0ffdb
commit
0a4aa6bd20
2 changed files with 7 additions and 2 deletions
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue