comparison lisp/net/browse-url.el @ 55830:2fe67fa04b1a

(browse-url-interactive-arg): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 May 2004 15:34:50 +0000
parents 5806629f9848
children f6eed72febea 4c90ffeb71c5
comparison
equal deleted inserted replaced
55829:fcd2e17daffa 55830:2fe67fa04b1a
576 ;; to switch between browsers. 576 ;; to switch between browsers.
577 577
578 (defun browse-url-interactive-arg (prompt) 578 (defun browse-url-interactive-arg (prompt)
579 "Read a URL from the minibuffer, prompting with PROMPT. 579 "Read a URL from the minibuffer, prompting with PROMPT.
580 If `transient-mark-mode' is non-nil and the mark is active, 580 If `transient-mark-mode' is non-nil and the mark is active,
581 defaults to the current region, else to the URL at or before 581 it defaults to the current region, else to the URL at or before
582 point. If invoked with a mouse button, set point to the 582 point. If invoked with a mouse button, it moves point to the
583 position clicked first. Return a list for use in `interactive' 583 position clicked before acting.
584 containing the URL and `browse-url-new-window-flag' or its 584
585 negation if a prefix argument was given." 585 This function returns a list (URL NEW-WINDOW-FLAG)
586 for use in `interactive'."
586 (let ((event (elt (this-command-keys) 0))) 587 (let ((event (elt (this-command-keys) 0)))
587 (and (listp event) (mouse-set-point event))) 588 (and (listp event) (mouse-set-point event)))
588 (list (read-string prompt (or (and transient-mark-mode mark-active 589 (list (read-string prompt (or (and transient-mark-mode mark-active
589 ;; rfc2396 Appendix E. 590 ;; rfc2396 Appendix E.
590 (replace-regexp-in-string 591 (replace-regexp-in-string