diff options
| author | Juri Linkov | 2013-12-17 23:17:05 +0200 |
|---|---|---|
| committer | Juri Linkov | 2013-12-17 23:17:05 +0200 |
| commit | 7a409b30053cf0c48ff5de7c5d9b408493df1054 (patch) | |
| tree | 2a55b913db56fb204f9011d2068f366ce303db55 | |
| parent | e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e (diff) | |
| download | emacs-7a409b30053cf0c48ff5de7c5d9b408493df1054.tar.gz emacs-7a409b30053cf0c48ff5de7c5d9b408493df1054.zip | |
* lisp/menu-bar.el (menu-bar-tools-menu): Add `browse-web'.
* lisp/startup.el (fancy-startup-screen, fancy-about-screen):
Set browse-url-browser-function to eww-browse-url locally.
(Bug#14751)
* lisp/net/browse-url.el (browse-url-browser-function): Move `eww'
closer to similar functions.
* lisp/net/eww.el (browse-web): Add alias to `eww'.
(eww-mode-map): Bind "r" to `eww-forward-url' like in Info.
Bind "S-SPC" to `scroll-down-command'. (Bug#16178)
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 2 | ||||
| -rw-r--r-- | lisp/net/browse-url.el | 2 | ||||
| -rw-r--r-- | lisp/net/eww.el | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 2 |
5 files changed, 25 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 86b52fe5339..55a99103c93 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2013-12-17 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * menu-bar.el (menu-bar-tools-menu): Add `browse-web'. | ||
| 4 | (Bug#14751) | ||
| 5 | |||
| 6 | * net/eww.el (browse-web): Add alias to `eww'. | ||
| 7 | (eww-mode-map): Bind "r" to `eww-forward-url' like in Info. | ||
| 8 | Bind "S-SPC" to `scroll-down-command'. (Bug#16178) | ||
| 9 | |||
| 10 | * net/browse-url.el (browse-url-browser-function): Move `eww' | ||
| 11 | closer to similar functions. | ||
| 12 | |||
| 13 | * startup.el (fancy-startup-screen, fancy-about-screen): | ||
| 14 | Set browse-url-browser-function to eww-browse-url locally. | ||
| 15 | (Bug#14751) | ||
| 16 | |||
| 1 | 2013-12-17 Stefan Monnier <monnier@iro.umontreal.ca> | 17 | 2013-12-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 18 | ||
| 3 | * window.el (window--pixel-to-total): Remove unused `mini' var. | 19 | * window.el (window--pixel-to-total): Remove unused `mini' var. |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 1f9d66f3738..f0693a0a272 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1418,6 +1418,8 @@ mail status in mode line")) | |||
| 1418 | (bindings--define-key menu [separator-net] | 1418 | (bindings--define-key menu [separator-net] |
| 1419 | menu-bar-separator) | 1419 | menu-bar-separator) |
| 1420 | 1420 | ||
| 1421 | (bindings--define-key menu [browse-web] | ||
| 1422 | '(menu-item "Browse the Web..." browse-web)) | ||
| 1421 | (bindings--define-key menu [directory-search] | 1423 | (bindings--define-key menu [directory-search] |
| 1422 | '(menu-item "Directory Search" eudc-tools-menu)) | 1424 | '(menu-item "Directory Search" eudc-tools-menu)) |
| 1423 | (bindings--define-key menu [compose-mail] | 1425 | (bindings--define-key menu [compose-mail] |
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 461a0543829..d58445cdcd2 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -227,13 +227,13 @@ regexp should probably be \".\" to specify a default browser." | |||
| 227 | (function-item :tag "Emacs W3" :value browse-url-w3) | 227 | (function-item :tag "Emacs W3" :value browse-url-w3) |
| 228 | (function-item :tag "W3 in another Emacs via `gnudoit'" | 228 | (function-item :tag "W3 in another Emacs via `gnudoit'" |
| 229 | :value browse-url-w3-gnudoit) | 229 | :value browse-url-w3-gnudoit) |
| 230 | (function-item :tag "eww" :value eww-browse-url) | ||
| 230 | (function-item :tag "Mozilla" :value browse-url-mozilla) | 231 | (function-item :tag "Mozilla" :value browse-url-mozilla) |
| 231 | (function-item :tag "Firefox" :value browse-url-firefox) | 232 | (function-item :tag "Firefox" :value browse-url-firefox) |
| 232 | (function-item :tag "Chromium" :value browse-url-chromium) | 233 | (function-item :tag "Chromium" :value browse-url-chromium) |
| 233 | (function-item :tag "Galeon" :value browse-url-galeon) | 234 | (function-item :tag "Galeon" :value browse-url-galeon) |
| 234 | (function-item :tag "Epiphany" :value browse-url-epiphany) | 235 | (function-item :tag "Epiphany" :value browse-url-epiphany) |
| 235 | (function-item :tag "Netscape" :value browse-url-netscape) | 236 | (function-item :tag "Netscape" :value browse-url-netscape) |
| 236 | (function-item :tag "eww" :value eww-browse-url) | ||
| 237 | (function-item :tag "Mosaic" :value browse-url-mosaic) | 237 | (function-item :tag "Mosaic" :value browse-url-mosaic) |
| 238 | (function-item :tag "Mosaic using CCI" :value browse-url-cci) | 238 | (function-item :tag "Mosaic using CCI" :value browse-url-cci) |
| 239 | (function-item :tag "Text browser in an xterm window" | 239 | (function-item :tag "Text browser in an xterm window" |
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index a4cec26dbf9..bff5cd8f2d3 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -159,6 +159,8 @@ word(s) will be searched for via `eww-search-prefix'." | |||
| 159 | (replace-regexp-in-string " " "+" url)))))) | 159 | (replace-regexp-in-string " " "+" url)))))) |
| 160 | (url-retrieve url 'eww-render (list url))) | 160 | (url-retrieve url 'eww-render (list url))) |
| 161 | 161 | ||
| 162 | ;;;###autoload (defalias 'browse-web 'eww) | ||
| 163 | |||
| 162 | ;;;###autoload | 164 | ;;;###autoload |
| 163 | (defun eww-open-file (file) | 165 | (defun eww-open-file (file) |
| 164 | "Render a file using EWW." | 166 | "Render a file using EWW." |
| @@ -399,10 +401,11 @@ word(s) will be searched for via `eww-search-prefix'." | |||
| 399 | (define-key map [tab] 'shr-next-link) | 401 | (define-key map [tab] 'shr-next-link) |
| 400 | (define-key map [backtab] 'shr-previous-link) | 402 | (define-key map [backtab] 'shr-previous-link) |
| 401 | (define-key map [delete] 'scroll-down-command) | 403 | (define-key map [delete] 'scroll-down-command) |
| 404 | (define-key map [?\S-\ ] 'scroll-down-command) | ||
| 402 | (define-key map "\177" 'scroll-down-command) | 405 | (define-key map "\177" 'scroll-down-command) |
| 403 | (define-key map " " 'scroll-up-command) | 406 | (define-key map " " 'scroll-up-command) |
| 404 | (define-key map "l" 'eww-back-url) | 407 | (define-key map "l" 'eww-back-url) |
| 405 | (define-key map "f" 'eww-forward-url) | 408 | (define-key map "r" 'eww-forward-url) |
| 406 | (define-key map "n" 'eww-next-url) | 409 | (define-key map "n" 'eww-next-url) |
| 407 | (define-key map "p" 'eww-previous-url) | 410 | (define-key map "p" 'eww-previous-url) |
| 408 | (define-key map "u" 'eww-up-url) | 411 | (define-key map "u" 'eww-up-url) |
diff --git a/lisp/startup.el b/lisp/startup.el index bbcf5bda2d7..efa198482c2 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1742,6 +1742,7 @@ splash screen in another window." | |||
| 1742 | (insert "\n") | 1742 | (insert "\n") |
| 1743 | (fancy-startup-tail concise)) | 1743 | (fancy-startup-tail concise)) |
| 1744 | (use-local-map splash-screen-keymap) | 1744 | (use-local-map splash-screen-keymap) |
| 1745 | (setq-local browse-url-browser-function 'eww-browse-url) | ||
| 1745 | (setq tab-width 22 | 1746 | (setq tab-width 22 |
| 1746 | buffer-read-only t) | 1747 | buffer-read-only t) |
| 1747 | (set-buffer-modified-p nil) | 1748 | (set-buffer-modified-p nil) |
| @@ -1779,6 +1780,7 @@ splash screen in another window." | |||
| 1779 | (goto-char (point-min)) | 1780 | (goto-char (point-min)) |
| 1780 | (force-mode-line-update)) | 1781 | (force-mode-line-update)) |
| 1781 | (use-local-map splash-screen-keymap) | 1782 | (use-local-map splash-screen-keymap) |
| 1783 | (setq-local browse-url-browser-function 'eww-browse-url) | ||
| 1782 | (setq tab-width 22) | 1784 | (setq tab-width 22) |
| 1783 | (setq buffer-read-only t) | 1785 | (setq buffer-read-only t) |
| 1784 | (goto-char (point-min)) | 1786 | (goto-char (point-min)) |