1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 21:50:45 -08:00
Commit graph

265 commits

Author SHA1 Message Date
Lars Ingebrigtsen
7f81825073 Make it possible to TAB to input fields
* lisp/net/eww.el (eww-tag-input): Make it possible to TAB to
input fields (bug#22540).
2016-02-04 15:42:08 +11:00
Lars Ingebrigtsen
56ed4e1886 Allow eww text fields to grow
* lisp/net/eww.el (eww-process-text-input): Allow text fields to
grow when typing in stuff that's longer than the original width.
2016-02-04 15:28:57 +11:00
Lars Ingebrigtsen
6191003fcd Use pop-to-buffer-same-window in eww
* lisp/net/eww.el: pop-to-buffer-same-window throughout instead of
switch-to-buffer (bug#22244).
2016-02-03 13:35:32 +11:00
Lars Ingebrigtsen
5713466646 Fix editing undo changes in eww fields
* eww.el (eww-tag-form): Don't overwrite initial form data in text
fields.
(eww-process-text-input): Make `M-t' at the end of text fields work
better (bug#19085).
2016-02-02 18:00:02 +11:00
Lars Ingebrigtsen
51362d68d1 Allow the user more control of popping up the eww window
* eww.el (eww): Use pop-to-buffer-same-window (suggested by
Michael Heerdegen) (bug#22244).
2016-02-02 15:57:07 +11:00
Lars Ingebrigtsen
ee0fbd854f Make eww-browse-url with new-window parameter work again
* eww.el (eww-browse-url): Stay in the same buffer if we're
already in a eww mode buffer so that eww-browse-url with a
new-window parameter works (bug#22244).
2016-02-02 15:53:39 +11:00
Lars Ingebrigtsen
9c3142dcc0 Clean up eww code slightly
* eww.el (eww-browse-url): Clean up code slightly.
2016-02-02 15:43:35 +11:00
Paul Eggert
9304e6d3a2 - 2016-01-30 11:41:07 -08:00
Lars Ingebrigtsen
7faf9193cd * eww.el (eww-render): Protect against empty content-types. 2016-01-24 17:50:27 +01:00
John Wiegley
1dd4f26ab6 Merge from origin/emacs-25
ef33bc7 Spelling and grammar fixes
9c3dbab Fix copyright years by hand
0e96320 Update copyright year to 2016
2016-01-11 22:48:07 -08:00
John Wiegley
91917dd58e Merge branch 'emacs-25-merge' 2016-01-02 23:31:52 -08:00
Paul Eggert
0e963201d0 Update copyright year to 2016
Run admin/update-copyright.
2016-01-01 01:34:24 -08:00
Lars Magne Ingebrigtsen
36a0feb297 Restrictive URL checking tweaks
* lisp/net/eww.el (eww): Check whether the domain is
restrictive instead of the string
(http://македонија.icom.museum is restrictive even if each
part is from a different script).
2015-12-30 10:11:34 +01:00
Lars Magne Ingebrigtsen
d7f24b86e1 eww build fix (require puny) 2015-12-30 10:00:15 +01:00
Lars Magne Ingebrigtsen
40621e704d Transform non-restrictive domains to punycode for display
* lisp/net/eww.el (eww): Check whether the domain is Highly
Restrictive in the Unicode IDNA sense.
2015-12-30 09:59:30 +01:00
John Wiegley
9f2f14a072 Merge emacs-25 into master (using imerge) 2015-12-29 21:40:28 -08:00
Lars Ingebrigtsen
82b9bfc409 * eww.el (eww-mode): Remove superfluous bidi reset. 2015-12-28 21:02:43 +01:00
Lars Ingebrigtsen
b406665df1 Always reset the bidi direction
* eww.el (eww-display-html): Always reset the bidi direction
to `left-to-right' (bug#22257).
2015-12-28 18:14:05 +01:00
Lars Ingebrigtsen
03dbfb948c (eww-setup-buffer): Restore left-to-right defaults
* eww.el (eww-setup-buffer): Restore left-to-right defaults.

Backport:

(cherry picked from commit 96c874b96b)
2015-12-27 20:35:23 +01:00
Lars Ingebrigtsen
96c874b96b (eww-setup-buffer): Restore left-to-right defaults
* eww.el (eww-setup-buffer): Restore left-to-right defaults.
2015-12-27 20:35:05 +01:00
Lars Ingebrigtsen
608b15d59d * eww.el (eww-display-html): Support <button> tags (bug#20485). 2015-12-25 21:44:57 +01:00
Lars Ingebrigtsen
ba82d68819 Follow <meta> redirects in eww
Merge conflict, but I think I resolved it.

    Follow meta refresh tags in eww

    * eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).

Backport:
2015-12-25 20:52:05 +01:00
Lars Ingebrigtsen
596338b3b9 * eww.el (eww-mode-map): Fix command name of eww-toggle-colors. 2015-12-25 19:08:03 +01:00
Lars Ingebrigtsen
6d124eef1c Allow toggling colors in eww
* doc/misc/eww.texi (Basics): Mention "C".

* lisp/net/eww.el (eww-toggle-colors): New command and keystroke.

* lisp/net/shr.el (shr-use-colors): New variable.
(shr-colorize-region): Use it.
2015-12-25 18:50:43 +01:00
Lars Ingebrigtsen
bdaff9c813 Follow meta refresh tags in eww
* eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).
2015-12-25 18:18:42 +01:00
Lars Ingebrigtsen
e59b2ee8cd More eww file name coding fixes
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.

Backport:

(cherry picked from commit a8627008ab)
2015-12-25 17:05:39 +01:00
Lars Ingebrigtsen
6c12691a4b Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).

Backport:

(cherry picked from commit 2a0f18d9b6)
2015-12-25 17:05:20 +01:00
Lars Ingebrigtsen
1a99bd69ea Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).

Backport:

(cherry picked from commit 9e089ec8a3)
2015-12-25 17:05:00 +01:00
Lars Ingebrigtsen
2d33a9ca0b Make toggling checkboxes work again
* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).

Backport:

(cherry picked from commit 5e56f60695)
2015-12-25 17:04:08 +01:00
Lars Ingebrigtsen
a7143faf48 Make prettier unique file names in eww
(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.

Backport:

(cherry picked from commit edfdd0a6cb)
2015-12-25 17:02:48 +01:00
Lars Ingebrigtsen
90f82ffa5d Decode hex-encoded URLs before using them as file names
* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.

Backport:

(cherry picked from commit af22a010d8)
2015-12-25 17:02:31 +01:00
Lars Ingebrigtsen
a8627008ab More eww file name coding fixes
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.
2015-12-25 08:31:10 +01:00
Lars Ingebrigtsen
2a0f18d9b6 Always save eww history
* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).
2015-12-25 07:56:08 +01:00
Lars Ingebrigtsen
9e089ec8a3 Default web pages to right-to-left
* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).
2015-12-25 07:45:27 +01:00
Lars Ingebrigtsen
5e56f60695 Make toggling checkboxes work again
* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).
2015-12-25 06:47:28 +01:00
Lars Ingebrigtsen
edfdd0a6cb Make prettier unique file names in eww
(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.
2015-12-24 22:47:58 +01:00
Lars Ingebrigtsen
af22a010d8 Decode hex-encoded URLs before using them as file names
* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.
2015-12-24 22:21:24 +01:00
Lars Ingebrigtsen
45ebbc0301 Allow overriding shr functions from eww
* eww.el (eww-display-html): Allow overriding elements in
`shr-external-rendering-functions'.
2015-12-24 17:34:31 +01:00
Eli Zaretskii
9b0f1824d7 Fix decoding of text in URLs retrieved by EWW
* lisp/net/eww.el (eww-render): Pass 'charset' to
'eww-display-raw'.  Use the value of 'last-coding-system-used', if
non-nil, to set 'buffer-file-coding-system' of the buffer where we
show the URL.
(eww-display-html, eww-display-raw): Decode the text correctly,
using the charset found in the headers, and defaulting to UTF-8.
If the user told us to use a specific encoding, override the
charset from the headers.  (Bug#22222)
2015-12-22 18:57:51 +02:00
Paul Eggert
bb4303c536 Quote symbols in docstrings using `'
Be more systematic about quoting symbols `like-this' rather than
`like-this or 'like-this' in docstrings.  This follows up Artur
Malabarba's email in:
http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01647.html
2015-11-18 09:17:55 -08:00
Paul Eggert
ac16149ba4 Fix docstring quoting problems with ‘ '’
Problem reported by Artur Malabarba in:
http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html
Most of these fixes are to documentation; many involve fixing
longstanding quoting glitches that are independent of the
recent substitute-command-keys changes.  The changes to code are:
* lisp/cedet/mode-local.el (mode-local-augment-function-help)
(describe-mode-local-overload):
Substitute docstrings before displaying them.
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
Quote the generated docstring for later substitution.
2015-11-17 15:29:35 -08:00
Mark Oteiza
3f828dc76b * lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.
`substring' does not account for full width characters.
2015-10-26 12:15:50 -04:00
Eli Zaretskii
0f7334147d Decode the HTML source when displaying it in EWW
* lisp/net/eww.el (eww-view-source): Decode the HTML source
according to its headers.
2015-10-23 12:23:23 +03:00
Mark Oteiza
882c3f3651 Use special-mode in eww list modes
* lisp/net/eww.el (eww-bookmark-mode, eww-history-mode)
(eww-buffers-mode): Derive from special-mode and remove redundant
setting of buffer-read-only.
(eww-mode-map): Remove redundant keymap parent setting.
(eww-bookmark-mode-map, eww-history-mode-map, eww-buffers-mode-map):
Remove redundant keymap suppressions and mappings.
2015-10-13 08:12:53 -04:00
Paul Eggert
284c470ef7 Backslash cleanup in Elisp source files
This patch should not change behavior.  It typically omits backslashes
where they are redundant (e.g., in the string literal "^\$").
In a few places, insert backslashes where they make regular
expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
"^\\*", which has the same effect as a regular expression.
Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
RCS IDs, as that makes it clearer that the backslash is intended.
2015-09-17 16:09:39 -07:00
Glenn Morris
ce7ff436ff Function declaration updates prompted by 'make check-declare'
* lisp/emacs-lisp/package.el (lm-homepage):
* lisp/gnus/gnus-util.el (iswitchb-read-buffer):
* lisp/gnus/mm-decode.el (libxml-parse-html-region):
* lisp/gnus/mml.el (libxml-parse-html-region):
* lisp/gnus/nnrss.el (libxml-parse-html-region):
* lisp/net/eww.el (libxml-parse-html-region):
* lisp/net/shr.el (libxml-parse-html-region):
* lisp/vc/vc-bzr.el (vc-annotate-convert-time):
* lisp/vc/vc-cvs.el (vc-annotate-convert-time):
* lisp/vc/vc-git.el (vc-annotate-convert-time):
* lisp/vc/vc-hg.el (vc-annotate-convert-time):
* lisp/vc/vc-mtn.el (vc-annotate-convert-time):
* lisp/vc/vc-rcs.el (vc-annotate-convert-time):
Update declaration.
2015-04-30 20:06:15 -04:00
Ivan Shmakov
b08f8bb06a Render application/xhtml+xml as HTML
Fixes: debbugs:20009

* lisp/net/eww.el (eww-html-p): New function.
(eww-render): Use it.
2015-03-05 23:26:34 +01:00
Rüdiger Sonderfeld
6c0a602fb8 eww: Fix some docstrings/error message.
* net/eww.el (eww-search-prefix, eww-open-file, eww-search-words)
(eww-same-page-p,eww-set-character-encoding): Fix docstring.
(eww): Do not end error messages with a period.
2015-03-04 12:38:22 +01:00
Ivan Shmakov
8b36bfafee Add autoload cookie for the eww-suggest-uris variable.
* lisp/net/eww.el (eww-suggest-uris): Add autoload cookie, so that
add-hook works correctly even if the file is not yet loaded.
2015-02-16 19:01:50 +00:00
Ivan Shmakov
2ea5364ca8 Fix eww.el desktop support.
* lisp/net/eww.el (eww-mode): Add autoload cookie.
(eww-restore-desktop): Use inhibit-read-only.

Fixes: debbugs:19226
2015-02-16 18:55:02 +00:00