aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2000-09-26 13:05:29 +0000
committerSam Steingold2000-09-26 13:05:29 +0000
commit63900fcf00b94b4e474fbc07b66eeb4354bd084f (patch)
tree5d71671cf8d3d00c55f16263cd83f44e5d89d250
parentc98863bfb9eb38e1f14a62d2094c2498e51b6cc8 (diff)
downloademacs-63900fcf00b94b4e474fbc07b66eeb4354bd084f.tar.gz
emacs-63900fcf00b94b4e474fbc07b66eeb4354bd084f.zip
(browse-url-file-url): Check for null maps.
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/net/browse-url.el13
2 files changed, 12 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e89ce1f7e81..d00d8a9e21f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12000-09-25 Sam Steingold <sds@gnu.org>
2
3 * net/browse-url.el (browse-url-file-url): Check for null maps.
4
12000-09-26 Gerd Moellmann <gerd@gnu.org> 52000-09-26 Gerd Moellmann <gerd@gnu.org>
2 6
3 * frame.el (frame-notice-user-settings): Make tool-bar-mode and 7 * frame.el (frame-notice-user-settings): Make tool-bar-mode and
@@ -10,9 +14,9 @@
10 * bytecomp.el (byte-compile-defvar-or-defconst): Only cons onto 14 * bytecomp.el (byte-compile-defvar-or-defconst): Only cons onto
11 current-load-list in top-level forms. Else this leaks a cons cell 15 current-load-list in top-level forms. Else this leaks a cons cell
12 every time a defun is called. 16 every time a defun is called.
13 17
14 * mail/mail-utils.el (rmail-dont-reply-to): Fix last change. 18 * mail/mail-utils.el (rmail-dont-reply-to): Fix last change.
15 19
162000-09-25 Dave Love <fx@gnu.org> 202000-09-25 Dave Love <fx@gnu.org>
17 21
18 * startup.el (fancy-splash-head): Check XPM is available. 22 * startup.el (fancy-splash-head): Check XPM is available.
@@ -32,10 +36,10 @@
32 36
33 * mail/mail-utils.el (rmail-dont-reply-to): Avoid infinite loop if 37 * mail/mail-utils.el (rmail-dont-reply-to): Avoid infinite loop if
34 rmail-dont-reply-to-names matches the empty string. 38 rmail-dont-reply-to-names matches the empty string.
35 39
362000-09-25 Gerd Moellmann <gerd@gnu.org> 402000-09-25 Gerd Moellmann <gerd@gnu.org>
37 41
38 * startup.el (command-line-1, fancy-splash-text): Change the 42 * startup.el (command-line-1, fancy-splash-text): Change the
39 text to sound more friendly. 43 text to sound more friendly.
40 44
412000-09-23 Thien-Thi Nguyen <ttn@gnu.org> 452000-09-23 Thien-Thi Nguyen <ttn@gnu.org>
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 27b7aabb095..5b37ea1ea88 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -405,7 +405,7 @@ These might set its size, for instance."
405 :type '(repeat (string :tag "Argument")) 405 :type '(repeat (string :tag "Argument"))
406 :group 'browse-url) 406 :group 'browse-url)
407 407
408(defcustom browse-url-lynx-emacs-args (and (not window-system) 408(defcustom browse-url-lynx-emacs-args (and (not window-system)
409 '("-show_cursor")) 409 '("-show_cursor"))
410 "A list of strings defining options for Lynx in an Emacs buffer. 410 "A list of strings defining options for Lynx in an Emacs buffer.
411 411
@@ -540,14 +540,9 @@ Use variable `browse-url-filename-alist' to map filenames to URLs."
540 (while (string-match "[*\"()',=;? ]" file) 540 (while (string-match "[*\"()',=;? ]" file)
541 (let ((enc (format "%%%x" (aref file (match-beginning 0))))) 541 (let ((enc (format "%%%x" (aref file (match-beginning 0)))))
542 (setq file (replace-match enc t t file)))) 542 (setq file (replace-match enc t t file))))
543 (let ((maps browse-url-filename-alist)) 543 (dolist (map browse-url-filename-alist)
544 (while maps 544 (when (and map (string-match (car map) file))
545 (let* ((map (car maps)) 545 (setq file (replace-match (cdr map) t nil file))))
546 (from-re (car map))
547 (to-string (cdr map)))
548 (setq maps (cdr maps))
549 (and (string-match from-re file)
550 (setq file (replace-match to-string t nil file))))))
551 file) 546 file)
552 547
553;;;###autoload 548;;;###autoload