diff options
| author | Richard M. Stallman | 1997-04-14 03:00:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-14 03:00:06 +0000 |
| commit | 0a3fc8a2dee849e92823acb7be50d2156a541a9a (patch) | |
| tree | e33888cca9d50470004917b837519f5f9c628dab | |
| parent | 305ec1066500d79f491d832e4c7a36d13cf99e29 (diff) | |
| download | emacs-0a3fc8a2dee849e92823acb7be50d2156a541a9a.tar.gz emacs-0a3fc8a2dee849e92823acb7be50d2156a541a9a.zip | |
Add defgroup; use defcustom for user vars.
| -rw-r--r-- | lisp/browse-url.el | 53 |
1 files changed, 35 insertions, 18 deletions
diff --git a/lisp/browse-url.el b/lisp/browse-url.el index d4e6988a387..cfd44c41b3a 100644 --- a/lisp/browse-url.el +++ b/lisp/browse-url.el | |||
| @@ -289,33 +289,50 @@ Hostname matching is stricter in this case than for | |||
| 289 | browse-url-path-regexp) | 289 | browse-url-path-regexp) |
| 290 | "A regular expression probably matching a complete URL.") | 290 | "A regular expression probably matching a complete URL.") |
| 291 | 291 | ||
| 292 | ;;;###autoload | ||
| 293 | (defgroup browse-url nil | ||
| 294 | "Use a web browser to look at a URL." | ||
| 295 | :group 'emacs) | ||
| 292 | 296 | ||
| 293 | ;;;###autoload | 297 | ;;;###autoload |
| 294 | (defvar browse-url-browser-function | 298 | (defcustom browse-url-browser-function |
| 295 | 'browse-url-netscape | 299 | 'browse-url-netscape |
| 296 | "*Function to display the current buffer in a WWW browser. | 300 | "*Function to display the current buffer in a WWW browser. |
| 297 | Used by the `browse-url-at-point', `browse-url-at-mouse', and | 301 | This is used by the `browse-url-at-point', `browse-url-at-mouse', and |
| 298 | `browse-url-of-file' commands.") | 302 | `browse-url-of-file' commands." |
| 299 | 303 | The function should take one argument, an URL." | |
| 300 | (defvar browse-url-netscape-command "netscape" | 304 | :type 'function |
| 301 | "*The name by which to invoke Netscape.") | 305 | :group 'browse-url) |
| 302 | 306 | ||
| 303 | (defvar browse-url-netscape-arguments nil | 307 | (defcustom browse-url-netscape-program "netscape" |
| 304 | "*A list of strings to pass to Netscape as arguments.") | 308 | "*The name by which to invoke Netscape." |
| 305 | 309 | :type 'string | |
| 306 | (defvar browse-url-netscape-startup-arguments browse-url-netscape-arguments | 310 | :group 'browse-url) |
| 311 | |||
| 312 | (defcustom browse-url-netscape-arguments nil | ||
| 313 | "*A list of strings to pass to Netscape as arguments." | ||
| 314 | :type '(repeat (string :tag "Argument")) | ||
| 315 | :group 'browse-url) | ||
| 316 | |||
| 317 | (defcustom browse-url-netscape-startup-arguments browse-url-netscape-arguments | ||
| 307 | "*A list of strings to pass to Netscape when it starts up. | 318 | "*A list of strings to pass to Netscape when it starts up. |
| 308 | Defaults to the value of browse-url-netscape-arguments at the time | 319 | Defaults to the value of `browse-url-netscape-arguments' at the time |
| 309 | browse-url is loaded.") | 320 | browse-url is loaded." |
| 321 | :type '(repeat (string :tag "Argument")) | ||
| 322 | :group 'browse-url) | ||
| 310 | 323 | ||
| 311 | (defvar browse-url-new-window-p nil | 324 | (defcustom browse-url-new-window-p nil |
| 312 | "*If non-nil, always open a new browser window. | 325 | "*If non-nil, always open a new browser window. |
| 313 | Passing an interactive argument to \\[browse-url-netscape] or | 326 | Passing an interactive argument to \\[browse-url-netscape] or |
| 314 | \\[browse-url-cci] reverses the effect of this variable. Requires | 327 | \\[browse-url-cci] reverses the effect of this variable. Requires |
| 315 | Netscape version 1.1N or later or XMosaic version 2.5 or later.") | 328 | Netscape version 1.1N or later or XMosaic version 2.5 or later." |
| 316 | 329 | :type 'boolean | |
| 317 | (defvar browse-url-mosaic-arguments nil | 330 | :group 'browse-url) |
| 318 | "*A list of strings to pass to Mosaic as arguments.") | 331 | |
| 332 | (defcustom browse-url-mosaic-arguments nil | ||
| 333 | "*A list of strings to pass to Mosaic as arguments." | ||
| 334 | :type '(repeat (string :tag "Argument")) | ||
| 335 | :group 'browse-url) | ||
| 319 | 336 | ||
| 320 | (defvar browse-url-filename-alist | 337 | (defvar browse-url-filename-alist |
| 321 | '(("^/+" . "file:/")) | 338 | '(("^/+" . "file:/")) |