diff options
| author | Lars Ingebrigtsen | 2017-01-26 18:32:48 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-01-26 18:32:48 +0100 |
| commit | 950c0d8969bae1e763016adedc62345c79cfad8a (patch) | |
| tree | 1a3f5106afb9419692f10153429e252ba3f32939 | |
| parent | 9527d201c1c5a323eb605e260f057b163722712e (diff) | |
| download | emacs-950c0d8969bae1e763016adedc62345c79cfad8a.tar.gz emacs-950c0d8969bae1e763016adedc62345c79cfad8a.zip | |
Make eww buffers prettier in the buffer listing
* lisp/net/eww.el (eww-render): Put the currently visited URL
into the buffer listing (bug#23738).
(eww-render): Ditto.
| -rw-r--r-- | lisp/net/eww.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 172044a12ec..15911f6e85f 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -355,9 +355,11 @@ Currently this means either text/html or application/xhtml+xml." | |||
| 355 | "utf-8")))) | 355 | "utf-8")))) |
| 356 | (data-buffer (current-buffer)) | 356 | (data-buffer (current-buffer)) |
| 357 | last-coding-system-used) | 357 | last-coding-system-used) |
| 358 | ;; Save the https peer status. | ||
| 359 | (with-current-buffer buffer | 358 | (with-current-buffer buffer |
| 360 | (plist-put eww-data :peer (plist-get status :peer))) | 359 | ;; Save the https peer status. |
| 360 | (plist-put eww-data :peer (plist-get status :peer)) | ||
| 361 | ;; Make buffer listings more informative. | ||
| 362 | (setq list-buffers-directory url)) | ||
| 361 | (unwind-protect | 363 | (unwind-protect |
| 362 | (progn | 364 | (progn |
| 363 | (cond | 365 | (cond |
| @@ -849,6 +851,8 @@ the like." | |||
| 849 | (erase-buffer) | 851 | (erase-buffer) |
| 850 | (insert text) | 852 | (insert text) |
| 851 | (goto-char (plist-get elem :point)) | 853 | (goto-char (plist-get elem :point)) |
| 854 | ;; Make buffer listings more informative. | ||
| 855 | (setq list-buffers-directory (plist-get elem :url)) | ||
| 852 | (eww-update-header-line-format)))) | 856 | (eww-update-header-line-format)))) |
| 853 | 857 | ||
| 854 | (defun eww-next-url () | 858 | (defun eww-next-url () |