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
Xue Fuqiao
e6344e177a
Rename eww-download-path to eww-download-directory.
...
* lisp/net/eww.el (eww-download-directory): Rename from
`eww-download-path' (Bug#16419).
* doc/misc/eww.texi (Basics): Use "directory" instead of "path" (Bug#16419).
2014-01-12 22:25:10 +08:00
Kenjiro NAKAYAMA
189340f5dc
Make the eww history browsing work again
...
* net/eww.el (eww-list-histories,eww-history-browse): Fixup.
(eww-history-quit): Delete and use quit-window.
(eww-history-kill): Delete, because it doesn't work well and
not necessary.
(eww-history-mode-map): Delete some keys and add easy-menu.
2014-01-05 10:27:26 +01:00
Kenjiro NAKAYAMA
f4018140ec
* net/eww.el (eww): Support single/double quote for search.
2014-01-05 10:25:05 +01:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00:00
Kenjiro NAKAYAMA
fec0e8283f
eww textarea fixups
...
* net/eww.el (eww-form-textarea): Use a different face for
textareas than text input since they have different keymaps.
Fixes: debbugs:16142
2013-12-25 16:33:16 +01:00
Lars Ingebrigtsen
eeef121a18
eww bookmark window restoration
...
* net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
the window configuration.
2013-12-24 19:07:55 +01:00
Eli Zaretskii
121ea65f3f
Fix eww-open-file for MS-Windows and MS-DOS.
...
lisp/net/eww.el (eww-open-file): Ensure 3 slashes after "file:" when
we run on MS-Windows or MS-DOS.
2013-12-24 19:23:56 +02:00
Lars Ingebrigtsen
58f2b9a558
Fix eww bookmark window configuration
...
* net/eww.el (eww-bookmark-quit): Remove.
(eww-bookmark-browse): Restore the window configuration when you
choose a bookmark.
Fixes: debbugs:16144
2013-12-24 08:25:27 +01:00
Kenjiro NAKAYAMA
56890ecdb8
eww: jump to next select field easier and better ftp error
...
* net/eww.el (eww-tag-select): Add text-property to jump to next
select field.
(eww) : Add non-supported ftp error.
2013-12-22 17:40:35 -05:00
Kenjiro NAKAYAMA
dde4de31e0
eww: fix wrong key binding
...
* net/eww.el (eww-checkbox-map): Fix wrong key bind to `eww-toggle-checkbox'.
2013-12-21 15:50:02 -05:00
Kenjiro NAKAYAMA
5edcc2dc14
eww: support disabled and readonly text
...
* net/eww.el (eww-form-text): Support text form with disabled and readonly attributes.
2013-12-21 15:42:23 -05:00
Ted Zlatanov
d49fbfd670
eww: machinery to list browser history
...
* net/eww.el (eww-list-histories, eww-list-histories)
(eww-history-browse, eww-history-quit, eww-history-kill)
(eww-history-mode-map, eww-history-mode): New command and
functions to list browser histories.
2013-12-21 15:33:44 -05:00
Rüdiger Sonderfeld
5e1901c179
eww: minor code fixes and toolbar support
...
* net/eww.el (eww-back-url, eww-forward-url, eww-next-url)
(eww-previous-url, eww-up-url, eww-top-url, eww-add-bookmark)
(eww-bookmark-prepare, eww-bookmark-kill, eww-bookmark-yank)
(eww-bookmark-browse, eww-next-bookmark, eww-previous-bookmark):
Use `user-error'.
(eww-bookmark-mode-map): Add menu.
(eww-render, eww-mode): Use `setq-local'.
(eww-tool-bar-map): New variable.
(eww-mode): Set `tool-bar-map'.
(eww-view-source): Check for `html-mode' with `fboundp'.
2013-12-21 15:13:09 -05:00
Ted Zlatanov
8f2be364dc
eww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close)
...
* net/eww.el (eww-exit, eww-close, eww-mode-map): Revert change of
2013-12-11T19:01:44Z!tzz@lifelogs.com.
2013-12-19 11:25:25 -05:00
Juri Linkov
7a409b3005
* 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)
2013-12-17 23:17:05 +02:00
Lars Magne Ingebrigtsen
1c4b1e6107
* net/shr.el (shr-tag-a): Support zero-length <a name="foo"> elements.
2013-12-17 00:40:17 +01:00
Lars Magne Ingebrigtsen
11bade0ad8
eww anchor pointer movement fixup
...
* net/eww.el (eww-display-html): If we can't find the anchor we're
looking for, then go to point-min.
2013-12-17 00:29:47 +01:00
Ted Zlatanov
f4fe8fdd37
eww: exit and close actions
...
* net/eww.el (eww-exit, eww-close): Add UI convenience wrappers.
(eww-mode-map): Use them.
2013-12-11 14:01:44 -05:00
Kenjiro NAKAYAMA
b68cf43cfb
eww easy-menu fixes
...
* net/eww.el (eww-mode-map): Instead of "Quit" show "Exit" and
"Close browser" menu items. Fix wrong function of "List
bookmarks".
2013-12-10 19:27:27 -05:00
Ted Zlatanov
ff69c18f0c
eww: add command to view page source
...
* net/eww.el (eww-current-source): New variable to store page
source.
(eww-display-html, eww-mode, eww-save-history)
(eww-restore-history): Use it.
(eww-view-source): New command to view page source.
Opportunistically uses `html-mode' to highlight the buffer.
(eww-mode-map): Install it.
2013-12-05 11:04:53 -05:00
Katsumi Yamaoka
39fa32d635
lisp/net/eww.el (eww-render): Don't pass arg to eww-display-image
2013-12-03 04:54:17 +00:00
Paul Eggert
f224e50022
Spelling and punctuation fixes.
2013-12-01 14:33:13 -08:00
Lars Magne Ingebrigtsen
1f6e1bb000
eww: Have q' do a normal
quit-window' instead of killing the buffer.
2013-12-01 18:00:04 +01:00
Rüdiger Sonderfeld
4570dd1614
Allow customizing the checkboxes in eww
...
* net/shr.el (shr-tag-table): Fix comment typo.
* net/eww.el (eww-text-input-types): : New const.
(eww-process-text-input): Treat input types in
`eww-text-input-types' as text.
* net/shr.el (shr-tag-video): Display content for video if no
poster is available.
(shr-tag-audio): Add support for <audio> tag.
* net/eww.el (eww-use-external-browser-for-content-type): New
variable.
(eww-render): Handle `eww-use-external-browser-for-content-type'.
Use \\` to match beginning of string instead of ^.
(eww-browse-with-external-browser): Provide optional URL parameter.
(eww-render): Set `eww-current-title' back to "".
* net/shr.el (shr-prefer-media-type-alist): : New customizable
variable.
(shr--get-media-pref): New function.
(shr--extract-best-source): New function.
(shr-tag-video, shr-tag-audio): Use `shr--extract-best-source' when
no :src tag was specified.
* net/eww.el (eww-form-checkbox-selected-symbol): New
customizable variable.
(eww-form-checkbox-symbol): New customizable variable.
(eww-form-checkbox): Use `eww-form-checkbox-selected-symbol' and
`eww-form-checkbox-symbol'.
(eww-toggle-checkbox): Use `eww-form-checkbox-selected-symbol' and
`eww-form-checkbox-symbol'.
2013-12-01 16:52:04 +01:00
Rüdiger Sonderfeld
450c7b358c
(eww-render): Set `eww-current-title' back to "".
2013-12-01 16:47:37 +01:00
Lars Magne Ingebrigtsen
eff0a2bda9
Fix typo after manual merge in last checkin.
2013-12-01 16:45:49 +01:00
Rüdiger Sonderfeld
b2afb3ea3e
Option to always use external-browser for certain content.
...
* net/eww.el (eww-use-external-browser-for-content-type): New
variable.
(eww-render): Handle `eww-use-external-browser-for-content-type'.
Use \\` to match beginning of string instead of ^.
(eww-browse-with-external-browser): Provide optional URL parameter.
2013-12-01 16:44:25 +01:00
Rüdiger Sonderfeld
10240949ca
Treat HTML5 input types as text
...
* net/eww.el (eww-text-input-types): : New const.
(eww-process-text-input): Treat input types in
`eww-text-input-types' as text.
2013-12-01 16:38:43 +01:00
Lars Magne Ingebrigtsen
1af6643718
Compilation warning fix
...
Move eww-link-keymap definition to before usage
Fixes: debbugs:15243
2013-12-01 15:45:02 +01:00
Lars Magne Ingebrigtsen
de8a5633bd
Special mode buffers shouldn't query before exiting.
...
(eww-quit): Special mode buffers shouldn't query before exiting.
2013-12-01 15:22:03 +01:00
Lars Magne Ingebrigtsen
513562a1df
Don't reload eww pages when browsing to different #targets
...
* net/eww.el (eww-follow-link): New command to avoid reloading
pages when we follow #target links.
Fixes: debbugs:15243
2013-12-01 15:12:44 +01:00
Kenjiro NAKAYAMA
9dd99753de
Support <optgroup> tags in <select> forms.
...
* net/eww.el (eww-tag-select): Support <optgroup> tags in <select>
forms.
Test case:
<html>
<head><title>SELECT TEST</title></head>
<body>
<form method="POST" action="./dummy.php">
<input type="text" name="text1">
<input type="submit" name="btn1" value="val1">
<select>
<optgroup label="group 1">
<option value="a">Value A</option>
<option value="b">Value B</option>
</optgroup>
<optgroup label="group 2">
<option value="c">Value C</option>
<option value="d">Value D</option>
</optgroup>
</select>
</form>
</body>
</html>
Fixes: debbugs:15860
2013-12-01 14:21:53 +01:00
Lars Magne Ingebrigtsen
ab6dea82bf
(eww-current-dom): New variable used to save the current DOM.
...
Rewritten from a short patch by T.V. Raman.
2013-12-01 14:11:36 +01:00
Lars Magne Ingebrigtsen
3e9876dedc
Update the window title after moving in the history
...
* net/eww.el (eww-restore-history): Update the window title after
moving in the history.
2013-12-01 14:05:26 +01:00
Ted Zlatanov
e47112ee5d
eww usability improvements
...
* net/eww.el (eww-bookmark-browse): Use 'eww-browse-url'.
(eww-add-bookmark): ask confirmation when add to bookmarks
(eww-quit): ask confirmation before quitting eww
2013-11-26 15:05:48 -05:00
Ted Zlatanov
604ede6c07
net/eww.el: Detect localhost and similar patterns.
2013-11-21 11:41:35 -05:00
Glenn Morris
62ad85e6af
* net/eww.el (eww-render): Always set eww-current-url, and update header line.
...
(eww-display-html): ... Rather than just doing it here.
Fixes: debbugs:15622
2013-10-15 18:30:55 -07:00
Glenn Morris
5148da153e
* net/eww.el (libxml-parse-html-region): Declare.
...
(eww-display-html): Explicit error if no libxml2 support.
2013-09-17 21:48:55 -07:00
Daniel Hackney
6c42fc3efb
* lisp/dired-x.el:
...
* lisp/net/ange-ftp.el:
* lisp/net/browse-url.el:
* lisp/net/dbus.el:
* lisp/net/eudc.el:
* lisp/net/eudcb-ldap.el:
* lisp/net/eww.el:
* lisp/net/imap.el:
* lisp/printing.el:
* lisp/vc/ediff-diff.el:
* lisp/vc/ediff-init.el:
* lisp/vc/ediff-merg.el:
* lisp/vc/ediff-mult.el:
* lisp/vc/ediff-util.el:
* lisp/vc/ediff-wind.el:
* lisp/vc/ediff.el:
* lisp/vc/emerge.el:
* lisp/vc/pcvs.el:
* vc/vc-annotate.el: Prefix unused arguments with `_' to silence
byte compiler. Remove some unused let-bound variables.
2013-09-04 23:30:07 -04:00
Stefan Monnier
fde38d4978
* lisp/finder.el (finder-compile-keywords): Don't mess with windows.
...
* lisp/net/eww.el (eww-display-raw): Remove unused argument `charset'.
Update call to it.
(eww-change-select): Remove unused var `properties'.
(eww-make-unique-file-name): Remove unused var `base'.
2013-09-03 15:49:54 -04:00
Glenn Morris
6ee877c795
* lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
...
(If "eww" is supposed to be an acronym then maybe capitalize the whole thing.)
2013-08-28 21:17:10 -04:00
Lars Magne Ingebrigtsen
21c58ae2a8
Make shr feed Content-Type to the image-creating libraries
...
This finally makes it possible to display icons.
* net/eww.el (eww-display-image): Ditto.
* net/shr.el (shr-parse-image-data): New function to grab both the
data itself and the Content-Type.
(shr-put-image): Use it.
2013-08-13 20:09:50 +02:00
Lars Magne Ingebrigtsen
3e41a054bf
* net/eww.el (eww-display-html): Ignore coding system errors.
...
One web site uses "utf-8lias" as the coding system.
2013-08-11 23:51:10 +02:00
Lars Magne Ingebrigtsen
997798bf65
(eww-setup-buffer): Switching to the buffer seems more natural than popping.
2013-07-30 16:31:51 +02:00
Lars Magne Ingebrigtsen
dfbc66e3e4
eww textarea input fixup
...
* net/eww.el (eww-process-text-input): Allow inputting when the
point is at the start of the line, as the properties aren't
front-sticky.
2013-07-19 16:44:16 +02:00
Ivan Kanis
75dbaf9d8b
* net/eww.el: Autoload `eww-browse-url'.
2013-06-28 09:54:42 +02:00