Lars Ingebrigtsen
de5c44fe88
Make tls.el use trustfiles by default
...
* lisp/net/tls.el (tls-program): Add a certfile by default (bug#21227).
(open-tls-stream): Insert the trustfile by looking at
`gnutls-trustfiles'.
2015-12-29 14:46:20 +01:00
Lars Ingebrigtsen
1ba1e35fbe
Refactor out gnutls-trustfiles
...
* lisp/net/gnutls.el (gnutls-trustfiles): Refactor out for reuse by tls.el.
2015-12-29 14:39:53 +01:00
Lars Ingebrigtsen
ad9aaa460e
Remove --insecure from gnutls-cli invocation
...
* tls.el (tls-program): Default to using secure TLS
connections (bug#19284).
2015-12-29 14:30:53 +01:00
Lars Ingebrigtsen
d181366dc3
Add a new function to say whether a string is restrictive
...
* puny.el (puny-highly-restrictive-p): New function.
2015-12-29 12:40:55 +01:00
Lars Ingebrigtsen
fc3965ed9b
IDNA-encode all domain names in `open-network-stream'
...
* network-stream.el (open-network-stream)
(network-stream-open-plain, network-stream-open-starttls):
IDNA-encode all domain names, if needed.
2015-12-29 00:09:10 +01:00
Lars Ingebrigtsen
341feb3a26
Fix puny-encoding all-non-ASCII domains
...
* puny.el (puny-encode-string): Fix the all-non-ASCII encoding case.
2015-12-29 00:07:50 +01:00
Lars Ingebrigtsen
9982c01d1a
shr link traversal fixup
...
* shr.el (shr-next-link): Don't bug out on adjacent links.
Backport:
(cherry picked from commit 1efc5f8b09
)
2015-12-28 21:58:46 +01:00
Lars Ingebrigtsen
1efc5f8b09
shr link traversal fixup
...
* shr.el (shr-next-link): Don't bug out on adjacent links.
2015-12-28 21:55:18 +01:00
Lars Ingebrigtsen
82b9bfc409
* eww.el (eww-mode): Remove superfluous bidi reset.
2015-12-28 21:02:43 +01:00
Lars Ingebrigtsen
0e99ccb321
Fix punycode short circuit logic
...
* puny.el (puny-encode-domain): Fix short-circuit logic.
2015-12-28 19:13:51 +01:00
Lars Ingebrigtsen
91ef47353d
IDNA speed up
...
* puny.el (puny-encode-domain): Make the common non-IDNA case faster
2015-12-28 18:47:51 +01:00
Lars Ingebrigtsen
1f11b33a78
Add IDNA domain encode/decode functions
...
* puny.el (puny-decode-domain): New function.
(puny-encode-domain): Ditto.
(puny-decode-digit): Fix digit decoding error.
2015-12-28 18:41:13 +01:00
Lars Ingebrigtsen
ad1f24f96b
Rename idna.el to puny.el
...
* puny.el: Renamed from idna.el to avoid name collisions with
the external idna.el library.
2015-12-28 18:21:20 +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
b9097188f7
* idna.el (idna-decode-string-internal): Implement decoding.
2015-12-28 04:15:16 +01:00
Lars Ingebrigtsen
1f591ca64f
Further IDNA tweaks
...
(idna-encode-string): Make idna-encode-string safe for
non-ASCII use.
2015-12-28 02:57:40 +01:00
Lars Ingebrigtsen
bd892f0332
Clean up the code slightly
2015-12-28 02:55:52 +01:00
Lars Ingebrigtsen
6a15c60d34
Added basic idna encoding support
...
* lisp/net/idna.el: New file.
2015-12-28 02:46:50 +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
531b28b4d9
* shr.el (shr-descend): Allow using lambdas in external functions.
2015-12-27 07:18:29 +01:00
Lars Ingebrigtsen
b329958df6
* imap.el (imap-ssl-open): Remove
2015-12-26 21:47:39 +01:00
Lars Ingebrigtsen
a2158f6c9a
Use built-in encryption in imap.el
...
* lisp/net/imap.el (imap-ssl-program): Remove (bug#21134).
(imap-starttls-open): Use open-network-stream instead of starttls.el.
(imap-tls-open): Use open-network-stream instead of tls.el.
2015-12-26 21:47:39 +01:00
Eli Zaretskii
0191077d6a
Fix documentation of browse-url browser-related functions
...
* lisp/net/browse-url.el (browse-url)
(browse-url-default-browser, browse-url-default-windows-browser)
(browse-url-default-macosx-browser, browse-url-chromium)
(browse-url-kde, browse-url-text-xterm): Clarify the usage of ARGS
and NEW-WINDOW arguments in these functions. (Bug#19421)
2015-12-26 20:47:42 +02:00
Andreas Schwab
490dcf2ae3
Don't treat /foo/bar:mumble as ange-ftp address
...
* lisp/net/browse-url.el (browse-url-filename-alist): Match colons
only in the first component. (bug#5362)
2015-12-25 23:36:45 +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
5b2401d38f
Stop rendering HTML before specdlr exhaustion
...
Fixes: 22117
* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).
Backport:
(cherry picked from commit 248da292fe
)
2015-12-25 17:03:34 +01:00
Lars Ingebrigtsen
ec2a509cfb
Use cl-reduce, not reduce.
...
Backport:
(cherry picked from commit fe4606f93b
)
2015-12-25 17:03:18 +01:00
Lars Ingebrigtsen
96ac31425d
Allow several <tbody> tags in shr
...
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).
Backport:
(cherry picked from commit cdaf33029d
)
2015-12-25 17:03:06 +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
Ashish SHUKLA
5bd3a0c9e0
Add FreeBSD cert bundle
...
* doc/misc/emacs-gnutls.texi (Help For Users): Document
FreeBSD bundle.
* lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.
Backport:
(cherry picked from commit 60c0f1a18a
)
2015-12-25 17:02:03 +01:00
Lars Ingebrigtsen
6ef896cc78
Ignore invalid SVG images
...
* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.
Backport:
(cherry picked from commit 821107d53c
)
2015-12-25 17:01:27 +01:00
Lars Ingebrigtsen
cc3de97ad3
shr table rendering fix
...
* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.
Backport:
(cherry picked from commit b05471e42c
)
2015-12-25 16:59:49 +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
248da292fe
Stop rendering HTML before specdlr exhaustion
...
Fixes: 22117
* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).
2015-12-25 06:19:34 +01:00
Lars Ingebrigtsen
fe4606f93b
Use cl-reduce, not reduce.
2015-12-25 06:04:01 +01:00
Lars Ingebrigtsen
cdaf33029d
Allow several <tbody> tags in shr
...
* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).
2015-12-25 06:01:19 +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