Commit graph

2618 commits

Author SHA1 Message Date
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
Lars Ingebrigtsen
cb035f348e Don't insert nil faces in shr
* shr.el (shr-insert-table): Don't add nil faces, because that
will show up in *Messages* as "Invalid face reference: nil [32
times]".
2016-02-02 05:16:34 +01:00
Andreas Schwab
fc48106d0b Fix imap-starttls-open
* lisp/net/imap.el (imap-starttls-open): Log imap process
output.  Call imap-parse-greeting.  (Bug#22500)
2016-01-31 14:37:33 +01:00
Andreas Schwab
cdecbedbf0 Fix return value of imap-starttls-open
* lisp/net/imap.el (imap-starttls-open): Fix return value.
2016-01-31 13:36:22 +01:00
Glenn Morris
ae26c8a7a4 * lisp/net/browse-url.el (browse-url-default-browser):
Lower priority of non-free Chrome.
2016-01-30 11:52:42 -08:00
Lars Ingebrigtsen
05f1f0dbb8 Build fix for shr.el
* shr.el (seq): Require.
2016-01-30 08:54:31 +01:00
Michael Albinus
deae005667 Fix Bug#22452
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
Mark it as connected.

* lisp/net/tramp.el (tramp-handle-file-remote-p): Check also, if
connection property "connected" is set.  (Bug#22452)
2016-01-28 13:37:58 +01:00
Mark Oteiza
3214a8b8d7 ; * lisp/net/nsm.el: Fix typo. 2016-01-25 17:45:27 -05:00
Glenn Morris
5b0bab0349 ; * lisp/net/browse-url.el: Fix obvious typos in recent. 2016-01-25 08:49:09 -08:00
Alan Mackenzie
fbce4757a8 Expunge "allow" + infinitive without direct object from source and doc.
Do the same for "permit", "enable", and "prevent".

* doc/emacs/mule.texi:
* doc/lispref/control.texi:
* doc/lispref/display.texi:
* doc/lispref/frames.texi:
* doc/lispref/functions.texi:
* doc/lispref/nonascii.texi:
* doc/lispref/streams.texi:
* doc/lispref/windows.texi:
* doc/misc/dbus.texi:
* doc/misc/eww.texi:
* doc/misc/flymake.texi:
* doc/misc/octave-mode.texi:
* doc/misc/org.texi:
* doc/misc/reftex.texi:
* doc/misc/tramp.texi:
* doc/misc/wisent.texi:
* etc/NEWS:
* lisp/autorevert.el:
* lisp/cedet/mode-local.el:
* lisp/cedet/semantic/senator.el:
* lisp/cedet/semantic/wisent.el:
* lisp/dos-fns.el:
* lisp/frameset.el:
* lisp/gnus/gnus-agent.el:
* lisp/gnus/mm-util.el:
* lisp/international/characters.el:
* lisp/ldefs-boot.el:
* lisp/mail/mailclient.el:
* lisp/man.el:
* lisp/mh-e/mh-search.el:
* lisp/net/tramp-cmds.el:
* lisp/net/tramp-gvfs.el:
* lisp/org/org-crypt.el:
* lisp/org/org-element.el:
* lisp/org/org-feed.el:
* lisp/org/org.el:
* lisp/org/ox-ascii.el:
* lisp/org/ox-icalendar.el:
* lisp/org/ox-publish.el:
* lisp/org/ox.el:
* lisp/play/gamegrid.el:
* lisp/play/gomoku.el:
* lisp/progmodes/antlr-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/vhdl-mode.el:
* lisp/strokes.el:
* lisp/textmodes/ispell.el:
* lisp/tree-widget.el:
* lisp/vc/pcvs.el:
* lisp/window.el:
* src/lisp.h:
* src/w32.c:
* src/w32heap.c:
* src/w32term.c:
* src/window.c:
* src/xfaces.c:

Replace solecisms like "This allow to do something" with a correct
alternative, such as "This allow you to do something", "This allows
something to be done" or "This allows the doing of something".
2016-01-24 20:30:39 +00:00
Kelvin White
05a630484f browse-url.el: Add 'google-chrome' to supported browsers. 2016-01-24 14:47:28 -05:00
Lars Ingebrigtsen
7faf9193cd * eww.el (eww-render): Protect against empty content-types. 2016-01-24 17:50:27 +01:00
Lars Magne Ingebrigtsen
116caedbe0 * shr.el (shr-table-body): Allow tables to have text children. 2016-01-19 14:16:34 +01:00
Lars Magne Ingebrigtsen
2f838b7689 Fix shr table rendering of nested tables
* shr.el (shr-table-body): Don't include all tbodies in nested
tables in the levels above.
2016-01-18 20:37:44 +01:00
Glenn Morris
30d465b060 Fix some custom types.
* lisp/gnus/gnus-fun.el (gnus-x-face-omit-files, gnus-face-omit-files):
* lisp/gnus/gnus.el (gnus-valid-select-methods):
* lisp/mail/rmail.el (rmail-get-coding-function):
* lisp/net/newst-treeview.el (newsticker-groups-filename):
* lisp/progmodes/hideif.el (hide-ifdef-exclude-define-regexp):
* lisp/textmodes/tildify.el (tildify-space-predicates):
* lisp/url/url-tramp.el (url-tramp-protocols):
Fix custom types.
2016-01-12 20:32:20 -05:00
Glenn Morris
e85e0d5951 Add some missing version tags.
* lisp/electric.el (electric-quote-comment)
(electric-quote-string, electric-quote-paragraph):
* lisp/epg-config.el (epg-gpgconf-program):
* lisp/rect.el (rectangle-preview):
* lisp/emacs-lisp/check-declare.el (check-declare-ext-errors):
* lisp/emacs-lisp/package.el (package-selected-packages)
(package-hidden-regexps):
* lisp/erc/erc.el (erc-network-hide-list, erc-channel-hide-list):
* lisp/eshell/em-term.el (eshell-destroy-buffer-when-process-dies):
* lisp/gnus/mml-sec.el (mml1991-signers, mml2015-signers)
(mml-smime-signers, mml1991-encrypt-to-self, mml2015-encrypt-to-self)
(mml-smime-encrypt-to-self, mml2015-sign-with-sender)
(mml-smime-sign-with-sender, mml2015-always-trust)
(mml-secure-fail-when-key-problem, mml-secure-key-preferences):
* lisp/net/browse-url.el (browse-url-conkeror-new-window-is-buffer)
(browse-url-conkeror-arguments):
* lisp/net/newst-reader.el (newsticker-download-logos):
* lisp/progmodes/gud.el (gud-guiler-command-name):
* lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
* lisp/progmodes/project.el (project-vc):
* lisp/progmodes/python.el (python-indent-guess-indent-offset-verbose)
(python-shell-remote-exec-path, python-shell-first-prompt-hook)
(python-shell-completion-native-disabled-interpreters)
(python-shell-completion-native-enable)
(python-shell-completion-native-output-timeout)
(python-shell-completion-native-try-output-timeout):
* lisp/progmodes/xref.el (xref):
* lisp/term/screen.el (xterm-screen-extra-capabilities):
* lisp/term/xterm.el (xterm-max-cut-length):
Add missing version tags.
2016-01-12 20:06:49 -05:00
Michael Albinus
1089dc98b7 Handle too long commands in Tramp
* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
(tramp-do-file-attributes-with-ls): Send sequence of commands, in
order to not exceed shell command line limit.

* test/automated/tramp-tests.el (tramp--test-darwin-p): Remove.
(tramp--test-utf8): Include Arabic file name, again.
2016-01-10 13:07:21 +01:00
Michael Albinus
90fd798aac Fix coding system for Tramp on OS X.
* lisp/net/tramp-compat.el: Require ucs-normalize.

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Set coding system to `utf-8-hfs' for Mac OS X.

* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Flush directory properties when needed.
(tramp--test-utf8): Include Chinese file name, again.
2016-01-09 13:55:02 +01:00
Andreas Schwab
b6b47af82f Properly encode/decode base64Binary data in SOAP
* lisp/net/soap-client.el (soap-encode-xs-basic-type): Encode
	base64Binary value as utf-8.
	(soap-decode-xs-basic-type): Decode base64Binary value as utf-8.
2016-01-06 20:51:36 +01:00
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