comparison lisp/net/browse-url.el @ 79228:f5052c0c5c45

(browse-url-browser-function): Delete grail. (browse-url-grail): Function and variable deleted. (browse-url-browser-function): Delete IXI Mosaic. (browse-url-default-browser): Don't try IXI Mosaic. (browse-url-iximosaic): Function deleted. (browse-url-browser-function): Delete MMM. (browse-url-default-browser): Don't try MMM. (browse-url-mmm): Function deleted.
author Richard M. Stallman <rms@gnu.org>
date Fri, 26 Oct 2007 03:49:26 +0000
parents 33d0b6780fb2
children 6888fd3398e8
comparison
equal deleted inserted replaced
79227:8cd7ba6ee31f 79228:f5052c0c5c45
44 ;; browse-url-netscape Netscape 1.1b1 44 ;; browse-url-netscape Netscape 1.1b1
45 ;; browse-url-mosaic XMosaic/mMosaic <= 2.4 45 ;; browse-url-mosaic XMosaic/mMosaic <= 2.4
46 ;; browse-url-cci XMosaic 2.5 46 ;; browse-url-cci XMosaic 2.5
47 ;; browse-url-w3 w3 0 47 ;; browse-url-w3 w3 0
48 ;; browse-url-w3-gnudoit w3 remotely 48 ;; browse-url-w3-gnudoit w3 remotely
49 ;; browse-url-iximosaic IXI Mosaic ?
50 ;; browse-url-lynx-* Lynx 0 49 ;; browse-url-lynx-* Lynx 0
51 ;; browse-url-grail Grail 0.3b1
52 ;; browse-url-mmm MMM ?
53 ;; browse-url-generic arbitrary 50 ;; browse-url-generic arbitrary
54 ;; browse-url-default-windows-browser MS-Windows browser 51 ;; browse-url-default-windows-browser MS-Windows browser
55 ;; browse-url-default-macosx-browser Mac OS X browser 52 ;; browse-url-default-macosx-browser Mac OS X browser
56 ;; browse-url-gnome-moz GNOME interface to Mozilla 53 ;; browse-url-gnome-moz GNOME interface to Mozilla
57 ;; browse-url-kde KDE konqueror (kfm) 54 ;; browse-url-kde KDE konqueror (kfm)
76 ;; has a function w3-follow-url-at-point, but that 73 ;; has a function w3-follow-url-at-point, but that
77 ;; doesn't let you edit the URL like browse-url. 74 ;; doesn't let you edit the URL like browse-url.
78 ;; The `gnuserv' package that can be used to control it in another 75 ;; The `gnuserv' package that can be used to control it in another
79 ;; Emacs process is available from 76 ;; Emacs process is available from
80 ;; <URL:ftp://ftp.splode.com/pub/users/friedman/packages/>. 77 ;; <URL:ftp://ftp.splode.com/pub/users/friedman/packages/>.
81
82 ;; Grail is the freely available WWW browser implemented in Python, a
83 ;; cool object-oriented freely available interpreted language. Grail
84 ;; 0.3b1 was the first version to have remote control as distributed.
85 ;; For more information on Grail see
86 ;; <URL:http://grail.cnri.reston.va.us/> and for more information on
87 ;; Python see <url:http://www.python.org/>. Grail support in
88 ;; browse-url.el written by Barry Warsaw <bwarsaw@python.org>.
89 78
90 ;; Lynx is now distributed by the FSF. See also 79 ;; Lynx is now distributed by the FSF. See also
91 ;; <URL:http://lynx.browser.org/>. 80 ;; <URL:http://lynx.browser.org/>.
92 81
93 ;; Free graphical browsers that could be used by `browse-url-generic' 82 ;; Free graphical browsers that could be used by `browse-url-generic'
253 (function-item :tag "Galeon" :value browse-url-galeon) 242 (function-item :tag "Galeon" :value browse-url-galeon)
254 (function-item :tag "Epiphany" :value browse-url-epiphany) 243 (function-item :tag "Epiphany" :value browse-url-epiphany)
255 (function-item :tag "Netscape" :value browse-url-netscape) 244 (function-item :tag "Netscape" :value browse-url-netscape)
256 (function-item :tag "Mosaic" :value browse-url-mosaic) 245 (function-item :tag "Mosaic" :value browse-url-mosaic)
257 (function-item :tag "Mosaic using CCI" :value browse-url-cci) 246 (function-item :tag "Mosaic using CCI" :value browse-url-cci)
258 (function-item :tag "IXI Mosaic" :value browse-url-iximosaic)
259 (function-item :tag "Lynx in an xterm window" 247 (function-item :tag "Lynx in an xterm window"
260 :value browse-url-lynx-xterm) 248 :value browse-url-lynx-xterm)
261 (function-item :tag "Lynx in an Emacs window" 249 (function-item :tag "Lynx in an Emacs window"
262 :value browse-url-lynx-emacs) 250 :value browse-url-lynx-emacs)
263 (function-item :tag "Grail" :value browse-url-grail)
264 (function-item :tag "MMM" :value browse-url-mmm)
265 (function-item :tag "KDE" :value browse-url-kde) 251 (function-item :tag "KDE" :value browse-url-kde)
266 (function-item :tag "Specified by `Browse Url Generic Program'" 252 (function-item :tag "Specified by `Browse Url Generic Program'"
267 :value browse-url-generic) 253 :value browse-url-generic)
268 (function-item :tag "Default Windows browser" 254 (function-item :tag "Default Windows browser"
269 :value browse-url-default-windows-browser) 255 :value browse-url-default-windows-browser)
854 840
855 When called non-interactively, optional second argument NEW-WINDOW is 841 When called non-interactively, optional second argument NEW-WINDOW is
856 used instead of `browse-url-new-window-flag'. 842 used instead of `browse-url-new-window-flag'.
857 843
858 The order attempted is gnome-moz-remote, Mozilla, Firefox, 844 The order attempted is gnome-moz-remote, Mozilla, Firefox,
859 Galeon, Konqueror, Netscape, Mosaic, IXI Mosaic, Lynx in an 845 Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3."
860 xterm, MMM, and then W3."
861 (apply 846 (apply
862 (cond 847 (cond
863 ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz) 848 ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz)
864 ((executable-find browse-url-mozilla-program) 'browse-url-mozilla) 849 ((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
865 ((executable-find browse-url-firefox-program) 'browse-url-firefox) 850 ((executable-find browse-url-firefox-program) 'browse-url-firefox)
866 ((executable-find browse-url-galeon-program) 'browse-url-galeon) 851 ((executable-find browse-url-galeon-program) 'browse-url-galeon)
867 ((executable-find browse-url-kde-program) 'browse-url-kde) 852 ((executable-find browse-url-kde-program) 'browse-url-kde)
868 ((executable-find browse-url-netscape-program) 'browse-url-netscape) 853 ((executable-find browse-url-netscape-program) 'browse-url-netscape)
869 ((executable-find browse-url-mosaic-program) 'browse-url-mosaic) 854 ((executable-find browse-url-mosaic-program) 'browse-url-mosaic)
870 ((executable-find "tellw3b") 'browse-url-iximosaic)
871 ((executable-find browse-url-xterm-program) 'browse-url-lynx-xterm) 855 ((executable-find browse-url-xterm-program) 'browse-url-lynx-xterm)
872 ((executable-find "mmm") 'browse-url-mmm)
873 ((locate-library "w3") 'browse-url-w3) 856 ((locate-library "w3") 'browse-url-w3)
874 (t 857 (t
875 (lambda (&ignore args) (error "No usable browser found")))) 858 (lambda (&ignore args) (error "No usable browser found"))))
876 url args)) 859 url args))
877 860
1251 (message "Starting %s..." browse-url-mosaic-program) 1234 (message "Starting %s..." browse-url-mosaic-program)
1252 (apply 'start-process "xmosaic" nil browse-url-mosaic-program 1235 (apply 'start-process "xmosaic" nil browse-url-mosaic-program
1253 (append browse-url-mosaic-arguments (list url))) 1236 (append browse-url-mosaic-arguments (list url)))
1254 (message "Starting %s...done" browse-url-mosaic-program)))) 1237 (message "Starting %s...done" browse-url-mosaic-program))))
1255 1238
1256 ;; --- Grail ---
1257
1258 (defvar browse-url-grail
1259 (concat (or (getenv "GRAILDIR") "~/.grail") "/user/rcgrail.py")
1260 "Location of Grail remote control client script `rcgrail.py'.
1261 Typically found in $GRAILDIR/rcgrail.py, or ~/.grail/user/rcgrail.py.")
1262
1263 ;;;###autoload
1264 (defun browse-url-grail (url &optional new-window)
1265 "Ask the Grail WWW browser to load URL.
1266 Default to the URL around or before point. Runs the program in the
1267 variable `browse-url-grail'."
1268 (interactive (browse-url-interactive-arg "Grail URL: "))
1269 (message "Sending URL to Grail...")
1270 (with-current-buffer (get-buffer-create " *Shell Command Output*")
1271 (erase-buffer)
1272 ;; don't worry about this failing.
1273 (if (browse-url-maybe-new-window new-window)
1274 (call-process browse-url-grail nil 0 nil "-b" url)
1275 (call-process browse-url-grail nil 0 nil url))
1276 (message "Sending URL to Grail... done")))
1277
1278 ;; --- Mosaic using CCI --- 1239 ;; --- Mosaic using CCI ---
1279 1240
1280 ;;;###autoload 1241 ;;;###autoload
1281 (defun browse-url-cci (url &optional new-window) 1242 (defun browse-url-cci (url &optional new-window)
1282 "Ask the XMosaic WWW browser to load URL. 1243 "Ask the XMosaic WWW browser to load URL.
1303 "new" 1264 "new"
1304 "current") 1265 "current")
1305 "\r\n")) 1266 "\r\n"))
1306 (process-send-string "browse-url" "disconnect\r\n") 1267 (process-send-string "browse-url" "disconnect\r\n")
1307 (delete-process "browse-url")) 1268 (delete-process "browse-url"))
1308
1309 ;; --- IXI Mosaic ---
1310
1311 ;;;###autoload
1312 (defun browse-url-iximosaic (url &optional new-window)
1313 ;; new-window ignored
1314 "Ask the IXIMosaic WWW browser to load URL.
1315 Default to the URL around or before point."
1316 (interactive (browse-url-interactive-arg "IXI Mosaic URL: "))
1317 (start-process "tellw3b" nil "tellw3b"
1318 "-service WWW_BROWSER ixi_showurl " url))
1319 1269
1320 ;; --- W3 --- 1270 ;; --- W3 ---
1321 1271
1322 ;;;###autoload 1272 ;;;###autoload
1323 (defun browse-url-w3 (url &optional new-window) 1273 (defun browse-url-w3 (url &optional new-window)
1427 (term-send-string proc (concat "g" ; goto 1377 (term-send-string proc (concat "g" ; goto
1428 "\C-u" ; kill default url 1378 "\C-u" ; kill default url
1429 url 1379 url
1430 "\r"))))) 1380 "\r")))))
1431 1381
1432 ;; --- MMM ---
1433
1434 ;;;###autoload
1435 (defun browse-url-mmm (url &optional new-window)
1436 "Ask the MMM WWW browser to load URL.
1437 Default to the URL around or before point."
1438 (interactive (browse-url-interactive-arg "MMM URL: "))
1439 (message "Sending URL to MMM...")
1440 (with-current-buffer (get-buffer-create " *Shell Command Output*")
1441 (erase-buffer)
1442 ;; mmm_remote just SEGVs if the file isn't there...
1443 (if (or (file-exists-p (expand-file-name "~/.mmm_remote"))
1444 ;; location in v 0.4:
1445 (file-exists-p (expand-file-name "~/.mmm/remote")))
1446 (call-process "mmm_remote" nil 0 nil url)
1447 (call-process "mmm" nil 0 nil "-external" url))
1448 (message "Sending URL to MMM... done")))
1449
1450 ;; --- mailto --- 1382 ;; --- mailto ---
1451 1383
1452 (autoload 'rfc2368-parse-mailto-url "rfc2368") 1384 (autoload 'rfc2368-parse-mailto-url "rfc2368")
1453 1385
1454 ;;;###autoload 1386 ;;;###autoload