Commit graph

2597 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
9fb185aff7 shr-tag-video bug fix
* shr.el (shr-tag-video): Protect against the `poster' being
empty.
2016-01-04 23:03:30 +01:00
Lars Magne Ingebrigtsen
d20a9488dd * nsm.el (nsm-check-protocol): Fix typo in the message. 2016-01-03 12:19:13 +01:00
Lars Magne Ingebrigtsen
1da116f8ec Add SHA1 warnings for high network security settings
* nsm.el (nsm-check-protocol): When using high security, warn
about SHA1 certificates, which are now believed to be open to
spoofing.
2016-01-03 10:41:51 +01:00
Paul Eggert
9c3dbabee3 Fix copyright years by hand
These are dates that admin/update-copyright did not update, or
updated incorrectly.
2016-01-01 01:38:07 -08:00
Paul Eggert
0e963201d0 Update copyright year to 2016
Run admin/update-copyright.
2016-01-01 01:34:24 -08:00
Eli Zaretskii
bb83bb11f9 Fix EWW rendering of long RTL lines
* lisp/net/shr.el (shr-insert-document): Undo any previous hscroll
of the selected window before filling its lines.  (Bug#22250)
2015-12-31 17:18:25 +02:00
Eli Zaretskii
88e2de2381 Fix filling text with bidirectional characters in shr.el
* lisp/net/shr.el (shr-insert-document): Bind
bidi-display-reordering to nil while filling lines.  This is
required for when a line includes characters whose bidi
directionality is opposite to the base paragraph direction,
because columns are counted in the logical order.  (Bug#22250)
2015-12-29 18:49:57 +02:00
Michael Albinus
8ca864ba8d Sync with Tramp 2.2.13
* doc/misc/trampver.texi: Change version to "2.2.13.25.1".

* lisp/net/tramp-compat.el (tramp-compat-delete-dups):
Use `tramp-compat-funcall'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
Make `split-string' call compatible with older Emacsen.

* lisp/net/trampver.el: Change version to "2.2.13.25.1".
2015-12-29 15:35:44 +01:00
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
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
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
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
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
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
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
Michael Albinus
6a8a41c510 * tramp-sh.el (tramp-get-ls-command-with-w-option): Improve check. 2015-12-19 20:36:07 +01:00
Michael Albinus
81e523fc4d Minor fixes in Tramp
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Reorder ls arguments.

* lisp/net/tramp.el (tramp-dissect-file-name): Fix docstring.
2015-12-18 17:45:24 +01:00
Michael Albinus
dfc850ba4c Make tramp a built-in package
* lisp/finder.el (finder-compile-keywords): Update
`package--builtins' also when Version: keyword is available.

* lisp/net/trampver.el: Add Version: keyword.
(tramp-version): Change it to "2.2.13.25.1", in order to be
compatible with `version-to-list'.
2015-12-18 17:32:52 +01:00
Michael Albinus
80346f1ae4 Set utf8 encoding with stty in Tramp
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move up uname check.  Handle Mac OS X eol encoding.  Set utf8
encoding with stty.
2015-12-15 23:54:11 +01:00
Michael Albinus
0ad27a5aab Complete last commit
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move uname check up.  Handle Mac OS X eol encoding.
2015-12-15 12:18:16 +01:00
Michael Albinus
3be0698466 Handle Mac OS X eol encoding in Tramp
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Handle Mac OS X eol encoding.
2015-12-15 12:05:37 +01:00
Michael Albinus
b227422c66 Fix error in Tramp perl script for cygwin
* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not raise an
error if file doesn't exist.
2015-12-09 12:17:15 +01:00
Michael Albinus
eb85d55cea Fix an utf8 problem for Tramp on BSD
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Make lax check for utf8.
(tramp-get-remote-locale): Add "en_US.UTF-8" as candidate.
2015-12-07 08:15:27 +00:00
Thomas Fitzsimmons
0a45afa30f Make eudcb-ph.el obsolete
* doc/misc/eudc.texi: Bump version to 1.40.0.
Remove PH/QI sections and mentions.
* lisp/obsolete/eudcb-ph.el: Make obsolete.
* lisp/net/eudc-vars.el (eudc-known-protocols): Remove ph.
(eudc-ph-bbdb-conversion-alist): Make obsolete.
* etc/NEWS: Mention this.  (Bug#21191)
2015-12-06 19:37:40 -05:00
Michael Albinus
0e574ea35e Fix minor Tramp problems found on BSD
* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not append
trailing slash.  Quote apostrophes.
(tramp-sh-handle-file-truename): Do not append trailing slash in
the "ls" case.
(tramp-get-ls-command-with-w-option): New defun.
(tramp-do-file-attributes-with-ls)
(tramp-do-directory-files-and-attributes-with-stat): Use it.

* test/automated/tramp-tests.el
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-perl, tramp-test32-utf8-with-ls):
Suppress also readlink.
2015-12-06 18:55:50 +01:00
Glenn Morris
f18e93442b ; * lisp/net/net-utils.el: Fix comment typo in previous. 2015-12-04 19:56:32 -05:00
Glenn Morris
156ad50b91 * lisp/net/net-utils.el: Small improvements.
(net-utils--executable-find-sbin): New function.
(ifconfig-program): Check sbin directories.
Fallback to "ip".  (Bug#22091)
(ifconfig-program-options): Check the actual program in use.
(arp-program): Check sbin directories.
2015-12-04 19:49:07 -05:00
Michael Albinus
a1c26b19fc Some error message improvements in tramp-sh.el
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Suppress error messages for "mesg" and "biff" calls.
(tramp-get-remote-path): Ignore errors when expanding
`tramp-own-remote-path'.  Raise a warning instead.
2015-12-03 20:31:49 +01:00
Artur Malabarba
1e1aabbc09 Fix some file headers for the purpose of `package--builtins'
* lisp/emacs-lisp/cl-preloaded.el
* lisp/emacs-lisp/eieio-compat.el
* lisp/net/sasl-scram-rfc.el: Add a "Package:" header

* lisp/ielm.el: Fix summary line.
2015-12-03 16:13:57 +00:00
Ulf Jasper
de203a67d4 Fix scrambling of html-rendered item buffers
* net/newst-treeview.el (newsticker--treeview-render-text): Fix
  scrambling of contents by wrapping call to html-renderer in
  save-selected-window.
2015-11-30 18:02:36 +01:00
Thomas Fitzsimmons
124f1807c4 Improve EUDC to BBDB 3 export
* eudc-vars.el (eudc-ldap-bbdb-conversion-alist): Change phone
entry to single item.  Add company conversion.
* eudc-export.el (eudc-bbdbify-company): New function.
(bbdb-parse-phone): Declare function.
(eudc-bbdbify-phone): Add BBDB 3 support.
(Bug#21971)
2015-11-22 20:56:22 -05:00
Thomas Fitzsimmons
43d2e55fc1 Add BBDB 3 support for EUDC export
* eudc.el: Add bbdb-version defvar.
(eudc--using-bbdb-3-or-newer-p): New function.
* eudc-export.el (eudc-create-bbdb-record): Add support for
bbdb-create-internal argument list changes introduced in BBDB 3.
* eudcb-bbdb.el: Remove bbdb-version defvar.
(eudc-bbdb-field): Call eudc--using-bbdb-3-or-newer-p.
(Bug#21971)
2015-11-22 20:56:22 -05:00