[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115323: (eww-current-dom): New variable used to sav
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] trunk r115323: (eww-current-dom): New variable used to save the current DOM. |
Date: |
Sun, 01 Dec 2013 13:11:55 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115323
revision-id: address@hidden
parent: address@hidden
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Sun 2013-12-01 14:11:36 +0100
message:
(eww-current-dom): New variable used to save the current DOM.
Rewritten from a short patch by T.V. Raman.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/net/eww.el eww.el-20130610114603-80ap3gwnw4x4m5ix-1
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-12-01 13:05:26 +0000
+++ b/lisp/ChangeLog 2013-12-01 13:11:36 +0000
@@ -2,6 +2,7 @@
* net/eww.el (eww-restore-history): Update the window title after
moving in the history.
+ (eww-current-dom): New variable used to save the current DOM.
2013-12-01 Dmitry Gutov <address@hidden>
=== modified file 'lisp/net/eww.el'
--- a/lisp/net/eww.el 2013-12-01 13:05:26 +0000
+++ b/lisp/net/eww.el 2013-12-01 13:11:36 +0000
@@ -89,6 +89,7 @@
:group 'eww)
(defvar eww-current-url nil)
+(defvar eww-current-dom nil)
(defvar eww-current-title ""
"Title of current page.")
(defvar eww-history nil)
@@ -219,6 +220,7 @@
'base (list (cons 'href url))
(libxml-parse-html-region (point) (point-max)))))
(eww-setup-buffer)
+ (setq eww-current-dom document)
(let ((inhibit-read-only t)
(after-change-functions nil)
(shr-width nil)
@@ -378,6 +380,7 @@
\\{eww-mode-map}"
;; FIXME? This seems a strange default.
(set (make-local-variable 'eww-current-url) 'author)
+ (set (make-local-variable 'eww-current-dom) nil)
(set (make-local-variable 'browse-url-browser-function) 'eww-browse-url)
(set (make-local-variable 'after-change-functions) 'eww-process-text-input)
(set (make-local-variable 'eww-history) nil)
@@ -390,6 +393,7 @@
(push (list :url eww-current-url
:title eww-current-title
:point (point)
+ :dom eww-current-dom
:text (buffer-string))
eww-history))
@@ -429,6 +433,7 @@
(let ((inhibit-read-only t))
(erase-buffer)
(insert (plist-get elem :text))
+ (setq eww-current-dom (plist-get elem :dom))
(goto-char (plist-get elem :point))
(setq eww-current-url (plist-get elem :url)
eww-current-title (plist-get elem :title))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115323: (eww-current-dom): New variable used to save the current DOM.,
Lars Ingebrigtsen <=