diff options
| author | Lars Magne Ingebrigtsen | 2013-06-24 15:57:35 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2013-06-24 15:57:35 +0200 |
| commit | 0ebd92a3e9a766510a987ee0548c30f5d35a5e52 (patch) | |
| tree | 245db75b988d473a33a97b0eca06292ff92f3ee8 | |
| parent | b89fc1569bbf5bcd5cb3d09fc4b49dfa6d2acf89 (diff) | |
| download | emacs-0ebd92a3e9a766510a987ee0548c30f5d35a5e52.tar.gz emacs-0ebd92a3e9a766510a987ee0548c30f5d35a5e52.zip | |
* net/eww.el (eww-external-browser): Moved to shr.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/eww.el | 16 | ||||
| -rw-r--r-- | lisp/net/shr.el | 8 |
3 files changed, 13 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 03a03e1d8c3..c3300fe645c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-06-24 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * net/eww.el (eww-external-browser): Moved to shr. | ||
| 4 | |||
| 1 | 2013-06-24 Ivan Kanis <ivan@kanis.fr> | 5 | 2013-06-24 Ivan Kanis <ivan@kanis.fr> |
| 2 | 6 | ||
| 3 | * net/eww.el (eww): Work more correctly for file: URLs. | 7 | * net/eww.el (eww): Work more correctly for file: URLs. |
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 2aab8e40deb..535992513a2 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -50,18 +50,6 @@ | |||
| 50 | :group 'eww | 50 | :group 'eww |
| 51 | :type 'string) | 51 | :type 'string) |
| 52 | 52 | ||
| 53 | (defcustom eww-external-browser | ||
| 54 | (cond ((eq system-type 'windows-nt) | ||
| 55 | 'browse-url-default-windows-browser) | ||
| 56 | ((eq system-type 'darwin) | ||
| 57 | 'browse-url-default-macosx-browser) | ||
| 58 | (t | ||
| 59 | 'browse-url-netscape)) | ||
| 60 | "Function used to launch an external browser." | ||
| 61 | :version "24.4" | ||
| 62 | :group 'eww | ||
| 63 | :type 'function) | ||
| 64 | |||
| 65 | (defface eww-form-submit | 53 | (defface eww-form-submit |
| 66 | '((((type x w32 ns) (class color)) ; Like default mode line | 54 | '((((type x w32 ns) (class color)) ; Like default mode line |
| 67 | :box (:line-width 2 :style released-button) | 55 | :box (:line-width 2 :style released-button) |
| @@ -845,9 +833,9 @@ appears in a <link> or <a> tag." | |||
| 845 | 833 | ||
| 846 | (defun eww-browse-with-external-browser () | 834 | (defun eww-browse-with-external-browser () |
| 847 | "Browse the current URL with an external browser. | 835 | "Browse the current URL with an external browser. |
| 848 | The browser to used is specified by the `eww-external-browser' variable." | 836 | The browser to used is specified by the `shr-external-browser' variable." |
| 849 | (interactive) | 837 | (interactive) |
| 850 | (funcall eww-external-browser eww-current-url)) | 838 | (funcall shr-external-browser eww-current-url)) |
| 851 | 839 | ||
| 852 | (defun eww-yank-page-url () | 840 | (defun eww-yank-page-url () |
| 853 | (interactive) | 841 | (interactive) |
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 979743f9588..7c48ceeee80 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | (defgroup shr nil | 37 | (defgroup shr nil |
| 38 | "Simple HTML Renderer" | 38 | "Simple HTML Renderer" |
| 39 | :version "24.1" | 39 | :version "24.1" |
| 40 | :group 'mail) | 40 | :group 'hypermedia) |
| 41 | 41 | ||
| 42 | (defcustom shr-max-image-proportion 0.9 | 42 | (defcustom shr-max-image-proportion 0.9 |
| 43 | "How big pictures displayed are in relation to the window they're in. | 43 | "How big pictures displayed are in relation to the window they're in. |
| @@ -93,6 +93,12 @@ Alternative suggestions are: | |||
| 93 | :type 'string | 93 | :type 'string |
| 94 | :group 'shr) | 94 | :group 'shr) |
| 95 | 95 | ||
| 96 | (defcustom shr-external-browser 'browse-url-default-browser | ||
| 97 | "Function used to launch an external browser." | ||
| 98 | :version "24.4" | ||
| 99 | :group 'shr | ||
| 100 | :type 'function) | ||
| 101 | |||
| 96 | (defvar shr-content-function nil | 102 | (defvar shr-content-function nil |
| 97 | "If bound, this should be a function that will return the content. | 103 | "If bound, this should be a function that will return the content. |
| 98 | This is used for cid: URLs, and the function is called with the | 104 | This is used for cid: URLs, and the function is called with the |