Commit graph

169 commits

Author SHA1 Message Date
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
Lars Magne Ingebrigtsen
02b99d2304 Refactor the eww history saving to prepare for storing even more
* 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:22:59 +01:00
Tassilo Horn
cde44c6ff5 Require subst-x only at compile-time
* lisp/net/eww.el (subr-x): Require subr-x at compile-time because eww
uses string-trim.
2014-11-05 20:29:28 +01:00
Tassilo Horn
eecd19cf09 Fix void-function string-trim error
* lisp/net/eww.el (subr-x): Require subr-x because eww uses
string-trim.
2014-11-05 12:10:20 +01:00
Ted Zlatanov
f3e25d69b0 * net/eww.el (eww): Trim URL with `string-trim'.
Suggested by Vibhav Pant <vibhavp@gmail.com>.
2014-11-04 11:31:33 -05:00
Lars Magne Ingebrigtsen
15eb2ec114 eww readability tweak
* net/eww.el (eww-score-readability): Don't count comments positively.
2014-11-04 00:46:20 +01:00
Lars Magne Ingebrigtsen
b0481eb966 eww point positioning tweak
(eww-display-html): Don't leave point inside forms.
2014-11-03 23:58:02 +01:00
Lars Magne Ingebrigtsen
1ca31e8cbd Minor readability parsing issues with SVC images
* net/eww.el (eww-score-readability): Parse SVC images correctly.

* net/shr.el: Ditto.
2014-11-03 23:54:16 +01:00
Lars Magne Ingebrigtsen
303fd9411f Remove `eww-colorize-region'
(eww-colorize-region): Remove duplicate function.
(eww-tag-body): Use `shr-colorize-region'.
2014-11-03 22:27:24 +01:00
Lars Magne Ingebrigtsen
a3e8e5089f eww compilation warning fix
(url-queue): Require `url-queue' to avoid compilation warning.
2014-11-03 21:33:32 +01:00
Lars Magne Ingebrigtsen
39804c1adb Make eww display PDFs inline
* net/eww.el (eww-display-html): Clear `url-queue'.
(eww-display-pdf): New function.
(eww-render): Display PDFs with `doc-view'.
2014-11-03 20:39:08 +01:00
Yoni Rabkin
d9079cf1b8 * net/eww.el (eww-list-bookmarks): Autoload. 2014-11-03 08:22:43 -05:00
Lars Magne Ingebrigtsen
ab657babf0 Make titles in eww prettier
(eww-tag-title): Remove newlines and extra whitespace from the
displayed title.
2014-11-03 01:35:44 +01:00
Lars Magne Ingebrigtsen
029788dbb0 Fix `eww-display-html' bug when passed an explicit DOM
(eww-display-html): Don't try to decode the text if we've been
passed in a pre-parsed DOM.
2014-11-03 01:30:41 +01:00
Lars Magne Ingebrigtsen
13375c1345 Have `R' in eww save the history
(eww-readable): Save the history before displaying so that we can
go back to the non-readable version.
2014-11-03 01:24:33 +01:00
Lars Magne Ingebrigtsen
54b3c985d6 Fix charset problems with the `R' command in eww
* net/eww.el (eww-display-html): The charset is called `utf-8',
not `utf8'.
(eww-readable): Decode the saved text correctly.
2014-11-03 01:16:21 +01:00
Lars Magne Ingebrigtsen
2e8259b044 Add a new, somewhat experimental "readability" command to eww
* net/eww.el (eww-readable): New command and keystroke.

* net/shr.el (shr-retransform-dom): New function.
2014-11-03 01:01:20 +01:00
Lars Magne Ingebrigtsen
816cad6e24 Fix `eww-current-source' buffer confustion
* net/eww.el (eww-display-html): Set `eww-current-source' in the
correct buffer.
(eww-view-source): Use it.
2014-11-03 00:02:01 +01:00
Ivan Shmakov
7e35a478d0 * net/eww.el (eww): Recognize colon-delimited IPv6 addresses.. 2014-11-02 16:40:30 -05:00
Brian McKenna
cc6340495d * net/eww.el (eww-submit): Encode empty form values as "". 2014-11-02 16:34:40 -05:00
Ivan Shmakov
7188af323b * net/eww.el (eww): Allow "file:/file/name" URLs. 2014-11-02 16:06:52 -05:00
Ivan Shmakov
49bb335ea9 * net/eww.el (eww-mode-map): Remove mentions of `eww-quit'. 2014-11-02 16:02:10 -05:00
Stefan Monnier
cbdc06f3be Rename 24.5 to 25.1
Except where we expect to backport the corresponding change.
2014-09-29 14:14:08 -04:00
Ivan Kanis
212b4d631b Allow users to specify `shr-width'
* net/shr.el, net/eww.el: Don't override `shr-width', but
introduce a new variable `shr-internal-width'.  This allows users
to specify a width themselves.
2014-09-18 21:18:34 +02:00
Eric Brown
06e7319ce3 lisp/net/eww.el (eww-bookmarks-directory): New variable.
* lisp/net/eww.el (eww-bookmarks-directory): New variable.
(eww-write-bookmarks): Use it.
(eww-read-bookmarks): Ditto.
2014-08-05 20:15:52 +02:00
Glenn Morris
340d54a195 * lisp/net/eww.el (eww-mode) <eww-current-title>: Make local.
Fixes: debbugs:17860
2014-06-26 20:48:34 -04:00
Lars Ingebrigtsen
6952100dc3 (eww-textarea-map): [tab] doesn't work on tty.
Reported by Mario Lang.

* net/shr.el (shr-map): Ditto.
2014-03-05 19:44:58 +01:00
Lars Ingebrigtsen
90f04e4c85 * net/eww.el (eww-mode-map): [tab] doesn't work on tty.
* net/eww.el (eww-mode-map): [tab] doesn't work on tty.
(eww-setup-buffer): Clear next/prev/etc more reliably.
2014-03-05 13:39:13 +01:00
Rüdiger Sonderfeld
ed85dee69d Link to info manual in `defgroup'.
* lisp/progmodes/ada-mode.el (ada):
* lisp/woman.el (woman): Link to info manual and Commentary section.

* lisp/url/url-vars.el (url):
* lisp/erc/erc.el (erc):
* lisp/progmodes/flymake.el (flymake):
* lisp/nxml/nxml-mode.el (nxml):
* lisp/net/eww.el (eww):
* lisp/speedbar.el (speedbar, speedbar-faces, speedbar-vc):
* lisp/htmlfontify.el (htmlfontify):
* lisp/ses.el (ses):
* lisp/epa.el (epa):
* lisp/ido.el (ido): Link to info manual.
2014-01-25 20:15:42 +01:00
Juanma Barranquero
f77c7a99c1 * net/eww.el (eww-download-callback): Fix reference to eww-download-directory. 2014-01-24 05:15:13 +01:00