1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 14:10:28 -08:00
Commit graph

398 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
c08883ccb4 (eww-current-buffer): Compilation fix for bug#18550 patch. 2014-12-07 20:50:23 +01:00
Lars Magne Ingebrigtsen
007d4c29c2 Make a prefix to `eww-reload' work locally
Fixes: debbugs:19086

* net/eww.el (eww-reload): Take a prefix to work locally (bug#19086).
2014-12-07 20:49:16 +01:00
Ivan Shmakov
b9ad615e65 eww history restoration fix
Fixes: debbugs:18550

* net/eww.el (eww-list-histories): Restore the history in the
correct buffer.
2014-12-07 20:38:38 +01:00
Lars Magne Ingebrigtsen
2c3d111392 eww bookmark display fixup
Fixes: debbugs:16398

* net/eww.el (eww-bookmark-prepare): Display URLs in first by
displaying shortened titles first.
2014-12-07 20:32:07 +01:00
Lars Magne Ingebrigtsen
bee76e566c Make eww use mailcap when displaying PDF files
Fixes: debbugs:19270

* net/eww.el (eww-display-pdf): Let mailcap determine how to
display PDF files.
2014-12-05 16:51:59 +01:00
Ivan Shmakov
52fab40c16 Call `eww-after-render-hook' in the correct buffer
Fixes: debbugs:19225

* net/eww.el (eww-render): Call `eww-after-render-hook' in the
correct buffer.
2014-12-01 18:56:02 +01:00
Lars Magne Ingebrigtsen
31410dcb09 Minor eww point placement fixup
* net/eww.el (eww): Leave point in a place that doesn't cause
scrolling when displaying "Loading...".
2014-12-01 17:09:01 +01:00
Lars Magne Ingebrigtsen
d931478266 Fix typo in last checkin
* eww.el (eww-restore-history): Bind
`inhibit-modification-hooks' instead of `after-change-functions'.
2014-11-27 21:26:49 +01:00
Lars Magne Ingebrigtsen
a5fde629ff * net/eww.el (eww-restore-history): Bind `inhibit-modification-hooks'
instead of `after-change-functions'.
2014-11-27 20:28:34 +01:00
Lars Magne Ingebrigtsen
370258f761 (eww-process-text-input): Try to keep track of the size more reliably. 2014-11-27 20:26:31 +01:00
Lars Magne Ingebrigtsen
9ec7bd97fa (eww-mode): Revert mistanken removal of `buffer-disable-undo'. 2014-11-27 17:52:08 +01:00
Lars Magne Ingebrigtsen
7c449b8f0d Add more sanity checks to the last eww after-change-function patch 2014-11-27 17:50:05 +01:00
Lars Magne Ingebrigtsen
604ce9124e (eww-process-text-input): Fix deletion at the start of the field, too. 2014-11-27 17:42:28 +01:00
Lars Magne Ingebrigtsen
5519c34ef8 (eww-restore-history): Inhibit change functions while restoring the history. 2014-11-27 17:23:32 +01:00
Lars Magne Ingebrigtsen
a5b07aa6b5 eww input field fixup
Fixes: debbugs:19085

(eww-process-text-input): Don't shorten the input field if
deleting at the last character.
2014-11-27 17:19:52 +01:00
Lars Magne Ingebrigtsen
4c555e9afa Record the right URL in eww
* net/eww.el (eww): Record the new URL immediately, so that if the
HTTP fetch fails, we have the right URL in the buffer.
2014-11-27 17:06:26 +01:00
Lars Magne Ingebrigtsen
7520f8919a Further eww dom.el cleanups
* net/eww.el (eww-tag-title): Use `dom-text'.

* dom.el (dom-by-tag): Use `equal' for comparisons so that tags
can be strings.
(dom-elements): Protect against non-text nodes.
(dom-non-text-children): New function.
2014-11-26 22:08:52 +01:00
Lars Magne Ingebrigtsen
28653a727e * net/eww.el (eww-highest-readability): More dom.el fixes. 2014-11-26 20:30:59 +01:00
Lars Magne Ingebrigtsen
d9ba097fe4 Use the new dom.el accessors in shr and eww
* net/shr.el: Ditto.

* net/eww.el: Use the new dom.el accessors throughout.
2014-11-26 19:42:29 +01:00
Lars Magne Ingebrigtsen
87ac437437 eww input field fixup
(eww-process-text-input): Inhibit read only so that input fields
don't get shortened (bug#19085).
2014-11-24 18:19:05 +01:00
Lars Magne Ingebrigtsen
f9fcf84a9c * net/eww.el (eww-set-character-encoding): Use `read-coding-system'. 2014-11-24 16:59:15 +01:00
Andrey Kotlarski
79d187f4ca Allow opening eww links in a new buffer
* net/eww.el (eww-browse-url): Optionally create new eww buffer.
(eww-follow-link): Follow in new buffer in case of prefix
argument, open externally with double prefix.
2014-11-23 18:30:17 +01:00
Lars Magne Ingebrigtsen
b7278cdccf (eww-follow-link): Make going to #targets in the page work again. 2014-11-23 17:37:58 +01:00
Lars Magne Ingebrigtsen
6fd82d61a2 Switch to the *eww* buffer immediately to avoid doing it asynchronously
(eww): Pop to the *eww* buffer immediately after executing the
`M-x eww' command to avoid having buffers pop up later.
(eww-display-html): Don't pop the *eww* buffer.
(eww-display-raw): Ditto.
(eww-display-image): Ditto.
2014-11-23 17:22:41 +01:00
Lars Magne Ingebrigtsen
7f902e70b5 * net/eww.el (eww-display-html): Decode the document-defined charset. 2014-11-23 17:00:55 +01:00
Ivan Shmakov
5d9ddb9698 Make `M-x eww' default to the URL under point
* net/eww.el (eww-suggest-uris): New variable.
(eww-suggested-uris): New function.
(eww): Default to URL under point.
(eww-links-at-point): New function.
2014-11-23 16:55:03 +01:00
Mark Oteiza
0445aff691 * net/eww.el (eww-add-bookmark): Fix bookmark titles. 2014-11-23 16:40:45 +01:00
Mark Oteiza
dd01e20628 (eww-mode-map): Bind backtab to shr-previous-link
* net/eww.el (eww-mode-map): Bind backtab to shr-previous-link
2014-11-23 16:34:44 +01:00
Kenjiro Nakayama
7f223a582e Allow setting the charset in eww
Fixes: debbugs:16225

* net/eww.el (eww-set-character-encoding): New command and keystroke.
(eww-display-raw): Use it.
2014-11-23 16:30:40 +01:00
Lars Magne Ingebrigtsen
e25e7693cd * net/eww.el (eww-render): Remove a no-op :title setting. 2014-11-19 18:41:17 +01:00
Ivan Shmakov
9fd6f5963b (eww-reload): Reload the page in the right buffer. 2014-11-19 18:37:18 +01:00
Ivan Shmakov
8d5bfc4900 (eww-history-limit): New variable.
* net/eww.el (eww-history-limit): New variable.
(eww-save-history): Use it.
2014-11-19 18:28:19 +01:00
Lars Magne Ingebrigtsen
a8995cae4c * net/eww.el (eww-desktop-misc-data): Use `cl-remove-duplicates'. 2014-11-19 18:22:45 +01:00
Ivan Shmakov
7d77dc18c7 Add desktop support to eww
* net/eww.el (eww-desktop-remove-duplicates)
(eww-restore-desktop, eww-restore-reload-prompt): New variables.
(eww-mode): Set up desktop mode.
(eww-desktop-data-save, eww-desktop-data-1)
(eww-desktop-history-duplicate, eww-desktop-misc-data)
(eww-restore-desktop): New functions.
2014-11-19 18:21:58 +01:00
Lars Magne Ingebrigtsen
058f56d24f Make the eww buffers read-only
Fixes: debbugs:16476

* net/eww.el (eww-mode): Make the buffer read-only.
(eww-form-text): Inhibit read-only-ness in text input fields
(bug#16476).
2014-11-16 23:41:55 +01:00
Lars Magne Ingebrigtsen
cbd90e1d30 Move eww and shr to customization group `web'
* net/eww.el (eww): Ditto.

* net/shr.el (shr): Move to the new defgroup `web'.
2014-11-16 21:29:40 +01:00
Lars Magne Ingebrigtsen
e68a171ebd * net/eww.el (eww-search-words): Mention `eww-search-prefix'. 2014-11-15 21:19:12 +01:00
Lars Magne Ingebrigtsen
f48827adba * net/eww.el (eww-render): Don't set the title to the URL. 2014-11-14 05:08:34 +01:00
Kenjiro NAKAYAMA
3bdc6ce7e3 Bind M-s M-s' globally to eww-search-words'
Fixes: debbugs:16258

* etc/NEWS: Mention the new `M-s M-s' keystroke.

* lisp/bindings.el (search-map): Bind M-s M-s to `eww-search-words'.

* net/eww.el (eww-search-words): New command.
2014-11-14 04:46:11 +01:00
Lars Magne Ingebrigtsen
790ad0171d Add a hook to be run after eww has rendered a page
* net/eww.el (eww-after-render-hook): New variable.
(eww-render): Use it.
2014-11-13 22:41:55 +01:00
Lars Magne Ingebrigtsen
02ee710a0b * net/eww.el (eww): Add comment to clarify. 2014-11-13 17:59:42 +01:00
Lars Magne Ingebrigtsen
cbf8ea6f7f Display SVG images in external <object> files
Fixes: debbugs:16244

* net/eww.el (eww-form-file): Fix version number.

* net/shr.el (shr-parse-image-data): Remove blocked bits from
external SVG images.
(shr-tag-object): Display images in <object> forms.
(shr-tag-table): Also insert <objects> after the tables.
2014-11-13 17:16:51 +01:00
Lars Magne Ingebrigtsen
653bddcea2 * net/eww.el (eww-form-file): Fix version number. 2014-11-13 14:10:05 +01:00
Lars Magne Ingebrigtsen
5531e676d4 * net/eww.el (eww-form-file): :type isn't a valid `defface' keyword. 2014-11-12 21:13:19 -08:00
Kenjiro NAKAYAMA
fca2f70380 Allow uploading files from eww
2014-11-10  Kenjiro NAKAYAMA  <nakayamakenjiro@gmail.com>

        * net/eww.el(eww-form-file(defface)): New defface of file upload form.
        (eww-submit-file): New key map of file upload.
        (eww-form-file): New file upload button and file name context.
        (eww-select-file): Select file and display selected file name.
        (eww-tag-input): Handle input tag of file type.
        (eww-update-field): Add point offset.
        (eww-submit): Add submit with multipart/form-data.

        * gnus/mm-url.el (mm-url-encode-multipart-form-data):
        Restore to handle "multipart/form-data" by eww.
2014-11-10 22:33:55 +01:00
Lars Magne Ingebrigtsen
14fe3679c9 Allow using several eww buffers (bug#16211)
* net/eww.el (eww-render, eww-display-html, eww-setup-buffer):
Allow taking a buffer to render data in.  This allows using several
eww buffers (bug#16211).
2014-11-10 22:18:11 +01:00
Charles Rendleman
df87fc30e1 (eww-download-callback): Save only the file contents
* net/eww.el (eww-download-callback): Save only the file contents,
not the headers.
2014-11-10 21:55:55 +01:00
Lars Magne Ingebrigtsen
6019446af6 (eww-save-history): Don't let the history grow infinitely. 2014-11-10 21:44:33 +01:00
Lars Magne Ingebrigtsen
f188b66742 Restore the header line after using `eww-readable'
(eww-readable): Copy over pertinent data from the parent page.
2014-11-10 21:34:43 +01:00
Lars Magne Ingebrigtsen
41d4f8428b Make `l' and other commands work in eww after going back in history
* net/eww.el (eww-data): New plist to store all the data relevant
to a single page, used throughout the file instead of the
variables `eww-current-url', `eww-current-dom',
`eww-current-source', and `eww-current-title'.
2014-11-10 21:30:30 +01:00