diff options
| author | Gerd Moellmann | 2001-05-18 11:27:38 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-18 11:27:38 +0000 |
| commit | af06f4599db58ce5ac46101adc2460561e8a5db8 (patch) | |
| tree | 892dc72ba50070da020d05cc928bedafb13a7362 | |
| parent | 0f6f6e13d72fc1eac253a13ba5954ece0b97055d (diff) | |
| download | emacs-af06f4599db58ce5ac46101adc2460561e8a5db8.tar.gz emacs-af06f4599db58ce5ac46101adc2460561e8a5db8.zip | |
(browse-url-browser-function): Add kde.
(browse-url-kde-program, browse-url-kde-args): New variables.
(browse-url-kde): New function.
| -rw-r--r-- | lisp/net/browse-url.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index ee579d859c1..5419ed63686 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -49,6 +49,7 @@ | |||
| 49 | ;; browse-url-generic arbitrary | 49 | ;; browse-url-generic arbitrary |
| 50 | ;; browse-url-default-windows-browser MS-Windows browser | 50 | ;; browse-url-default-windows-browser MS-Windows browser |
| 51 | ;; browse-url-gnome-moz GNOME interface to Mozilla | 51 | ;; browse-url-gnome-moz GNOME interface to Mozilla |
| 52 | ;; browse-url-kde KDE konqueror (kfm) | ||
| 52 | 53 | ||
| 53 | ;; [A version of the Netscape browser is now free software | 54 | ;; [A version of the Netscape browser is now free software |
| 54 | ;; <URL:http://www.mozilla.org/>, albeit not GPLed, so it is | 55 | ;; <URL:http://www.mozilla.org/>, albeit not GPLed, so it is |
| @@ -261,6 +262,7 @@ regexp should probably be \".\" to specify a default browser." | |||
| 261 | :value browse-url-lynx-emacs) | 262 | :value browse-url-lynx-emacs) |
| 262 | (function-item :tag "Grail" :value browse-url-grail) | 263 | (function-item :tag "Grail" :value browse-url-grail) |
| 263 | (function-item :tag "MMM" :value browse-url-mmm) | 264 | (function-item :tag "MMM" :value browse-url-mmm) |
| 265 | (function-item :tag "KDE" :value browse-url-kde) | ||
| 264 | (function-item :tag "Specified by `Browse Url Generic Program'" | 266 | (function-item :tag "Specified by `Browse Url Generic Program'" |
| 265 | :value browse-url-generic) | 267 | :value browse-url-generic) |
| 266 | (function-item :tag "Default Windows browser" | 268 | (function-item :tag "Default Windows browser" |
| @@ -480,6 +482,17 @@ down (this *won't* always work)." | |||
| 480 | (defcustom browse-url-lynx-input-delay 0.2 | 482 | (defcustom browse-url-lynx-input-delay 0.2 |
| 481 | "How many seconds to wait for lynx between moves down from an input field.") | 483 | "How many seconds to wait for lynx between moves down from an input field.") |
| 482 | 484 | ||
| 485 | (defcustom browse-url-kde-program "kfmclient" | ||
| 486 | "The name by which to invoke the KDE web browser." | ||
| 487 | :type 'string | ||
| 488 | :version "21.1" | ||
| 489 | :group 'browse-url) | ||
| 490 | |||
| 491 | (defcustom browse-url-kde-args '("openURL") | ||
| 492 | "*A list of strings defining options for `browse-url-kde-program'." | ||
| 493 | :type '(repeat (string :tag "Argument")) | ||
| 494 | :group 'browse-url) | ||
| 495 | |||
| 483 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 496 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 484 | ;; URL input | 497 | ;; URL input |
| 485 | 498 | ||
| @@ -1071,6 +1084,15 @@ don't offer a form of remote control." | |||
| 1071 | browse-url-generic-program | 1084 | browse-url-generic-program |
| 1072 | (append browse-url-generic-args (list url)))) | 1085 | (append browse-url-generic-args (list url)))) |
| 1073 | 1086 | ||
| 1087 | ;;;###autoload | ||
| 1088 | (defun browse-url-kde (url &optional new-window) | ||
| 1089 | "Ask the KDE WWW browser to load URL. | ||
| 1090 | Default to the URL around or before point." | ||
| 1091 | (interactive (browse-url-interactive-arg "KDE URL: ")) | ||
| 1092 | (message "Sending URL to KDE...") | ||
| 1093 | (apply #'start-process `(,(concat "KDE" url) nil ,browse-url-kde-program | ||
| 1094 | ,@browse-url-kde-args ,url))) | ||
| 1095 | |||
| 1074 | (provide 'browse-url) | 1096 | (provide 'browse-url) |
| 1075 | 1097 | ||
| 1076 | ;;; browse-url.el ends here | 1098 | ;;; browse-url.el ends here |