aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-09-19 11:22:03 +0000
committerMichaël Cadilhac2007-09-19 11:22:03 +0000
commit59c4e1dad9c1c7b325631d9a3f806909736a1406 (patch)
treea6ff54f9ba4c2d57104a217540895e913689bff7 /lisp
parentba1cbad78960f89c6a4f680a51d502cfa0c83a59 (diff)
downloademacs-59c4e1dad9c1c7b325631d9a3f806909736a1406.tar.gz
emacs-59c4e1dad9c1c7b325631d9a3f806909736a1406.zip
(browse-url-url-encode-chars): Use the right parameter name in the function body.
Reported by Johannes Weiner.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/browse-url.el12
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c0b26d26108..1c76b0e48f1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-09-19 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
2
3 * net/browse-url.el (browse-url-url-encode-chars): Use the right
4 parameter name in the function body.
5 Reported by Johannes Weiner.
6
12007-09-19 Glenn Morris <rgm@gnu.org> 72007-09-19 Glenn Morris <rgm@gnu.org>
2 8
3 * net/socks.el (socks-open-network-stream): Signal an explicit 9 * net/socks.el (socks-open-network-stream): Signal an explicit
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 33dfb327864..4d098322c16 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -622,15 +622,15 @@ down (this *won't* always work)."
622(defun browse-url-url-encode-chars (text chars) 622(defun browse-url-url-encode-chars (text chars)
623 "URL-encode the chars in TEXT that match CHARS. 623 "URL-encode the chars in TEXT that match CHARS.
624CHARS is a regexp-like character alternative (e.g., \"[,)$]\")." 624CHARS is a regexp-like character alternative (e.g., \"[,)$]\")."
625 (let ((encoded-url (copy-sequence url)) 625 (let ((encoded-text (copy-sequence text))
626 (s 0)) 626 (s 0))
627 (while (setq s (string-match chars encoded-url s)) 627 (while (setq s (string-match chars encoded-text s))
628 (setq encoded-url 628 (setq encoded-text
629 (replace-match (format "%%%x" 629 (replace-match (format "%%%x"
630 (string-to-char (match-string 0 encoded-url))) 630 (string-to-char (match-string 0 encoded-text)))
631 t t encoded-url) 631 t t encoded-text)
632 s (1+ s))) 632 s (1+ s)))
633 encoded-url)) 633 encoded-text))
634 634
635(defun browse-url-encode-url (url) 635(defun browse-url-encode-url (url)
636 "Escape annoying characters in URL. 636 "Escape annoying characters in URL.