Mercurial > emacs
comparison lisp/browse-url.el @ 23097:86a92272892c
(browse-url-netscape): Fix format for hex escapes.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 25 Aug 1998 13:16:35 +0000 |
parents | f189183483a2 |
children | e441cd61a9aa |
comparison
equal
deleted
inserted
replaced
23096:e4419c63d4d7 | 23097:86a92272892c |
---|---|
698 (interactive (browse-url-interactive-arg "Netscape URL: ")) | 698 (interactive (browse-url-interactive-arg "Netscape URL: ")) |
699 ;; URL encode any `confusing' characters in the URL. This needs to | 699 ;; URL encode any `confusing' characters in the URL. This needs to |
700 ;; include at least commas; presumably also close parens. | 700 ;; include at least commas; presumably also close parens. |
701 (while (string-match "[,)]" url) | 701 (while (string-match "[,)]" url) |
702 (setq url (replace-match | 702 (setq url (replace-match |
703 (format "%x" (string-to-char (match-string 0 url))) t t url))) | 703 (format "%%%x" (string-to-char (match-string 0 url))) t t url))) |
704 (let* ((process-environment (browse-url-process-environment)) | 704 (let* ((process-environment (browse-url-process-environment)) |
705 (process (apply 'start-process | 705 (process (apply 'start-process |
706 (concat "netscape " url) nil | 706 (concat "netscape " url) nil |
707 browse-url-netscape-program | 707 browse-url-netscape-program |
708 (append browse-url-netscape-arguments | 708 (append browse-url-netscape-arguments |