1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

123867 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
ff5f37e56a Don't bug out in erc after waking from sleep
* erc-backend.el (erc-server-send-ping): If the server has
closed connection, this may already have been detected and
`erc-server-last-received-time' has been set to nil (bug#13608).
2015-12-27 22:18:32 +01:00
David Edmondson
af25edebbc Proxy error in erc with multiple clients
* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).

Backport:

(cherry picked from commit 507e98a54d)
2015-12-27 21:34:19 +01:00
Dima Kogan
2cd894dc34 Ensure that we don't have several timers in erc
* lisp/erc/erc-backend.el (erc-server-setup-periodical-ping): Checks
for existing timers in the alist before adding new ones.  If a
timer already exists, it is cancelled and
overwritten. (bug#19292).
2015-12-27 21:19:13 +01:00
Jens Lechtenboerger
85c1843f65 Fix mml-sec build warnings
* lisp/gnus/mml-sec.el: Fix warnings by adding autoloads
(bug#18718).

Backport:

(cherry picked from commit 3603097f62)
2015-12-27 21:13:59 +01:00
Lars Ingebrigtsen
5caa4dea5a Don't insert erc logs at the end
* erc-log.el (erc-log-setup-logging): Insert the previous log
at the start of the buffer, not at the end (bug#20496).
2015-12-27 21:08:01 +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
504982765c Don't join erc channels doubly
* erc-join.el (erc-autojoin-channels): Don't join channels
more than once (if you have several nicks) (bug#20695).
2015-12-27 20:26:22 +01:00
Eli Zaretskii
3ad99c4674 Avoid leaving "ghost" of mouse pointer on MS-Windows
* src/w32term.c (frame_set_mouse_pixel_position):
* src/w32fns.c (Fw32_mouse_absolute_pixel_position): Momentarily
disable "mouse trails" when moving the mouse pointer.  (Bug#22247)
* src/w32term.c (frame_set_mouse_pixel_position): Include
w32common.h.
2015-12-27 20:52:21 +02:00
Krzysztof Jurewicz
f9d87dd879 Fix auth source lookups from erc with port numbers
* lisp/erc/erc.el (erc-open): `auth-source' wants strings, not port
numbers (bug#20541).

Copyright-paperwork-exempt: yes
2015-12-27 09:04:02 +01:00
Fran Litterio
6ae0aa6a50 Run erc-kill-channel-hook always on exit
* lisp/erc/erc.el (erc-kill-buffer-function): Run erc-kill-channel-hook
when erc-kill-queries-on-quit is set (bug#21187).
2015-12-27 08:56:45 +01:00
Paul Eggert
c9dfe5121c Spelling fix
* test/automated/url-parse-tests.el:
(url-generic-parse-url/same-document-reference):
Rename from url-generic-parse-url/same-decument-reference.
2015-12-26 15:40:00 -08:00
Paul Eggert
767240ec46 Reword initial *scratch* for brevity, appearance
* lisp/startup.el (initial-scratch-message):
Reword to avoid apostrophes, and to make it shorter.
See the thread starting in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg01241.html
2015-12-26 15:23:04 -08:00
Leo Liu
ba66b357f1 Add ert-deftest to lisp-mode.el
* lisp-mode.el (lisp-imenu-generic-expression,
  lisp-el-font-lock-keywords-1): Add ert-deftest.
2015-12-27 04:48:45 +08:00
Lars Ingebrigtsen
d2b5e74b93 Mark imap changes as not needing doc changes 2015-12-26 21:48:10 +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
4c361a95cc Don't try using /bin/sh in artist.el on MS-Windows
* lisp/textmodes/artist.el (artist-figlet-get-font-list-windows):
New function.
(artist-figlet-choose-font): Use it on MS-Windows and MS-DOS.
(Bug#20167)
2015-12-26 22:35:48 +02:00
Wolfgang Jenkner
4b1436b702 Always define gmalloc etc. in src/gmalloc.c
This is a work-around to prevent the compiler from using semantic
knowledge about malloc for optimization purposes.  E.g., gcc 5.2
with -O2 replaces most of calloc's definition by a call to calloc;
see Bug#22085.
* src/gmalloc.c [!HYBRID_MALLOC] (malloc, realloc, calloc)
(aligned_alloc, free): Do not undef.  Instead, define these as
functions (perhaps renamed to gmalloc etc.) in terms of gmalloc etc.
2015-12-26 12:12:43 -08: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
Paul Eggert
b45828ee13 Propagate Bug#14412 fix to backtrace_eval_unrewind
* src/eval.c (unbind_to): Redo so that the FALLTHROUGH!! comment
becomes accurate again. This shouldn’t affect behavior.
(backtrace_eval_unrewind): Apply the recent unbind_to fix here, too.
2015-12-26 09:32:03 -08:00
Eli Zaretskii
9e9f6fb2a2 ; * etc/NEWS: Update entries for VHDL and Calculator. 2015-12-26 19:08:15 +02:00
Eli Zaretskii
1490096652 Don't produce non-ASCII characters in *scratch*
* lisp/startup.el (initial-scratch-message): Quote apostrophes to
avoid producing non-ASCII characters in the *scratch* buffer's
commentary.
2015-12-26 18:58:04 +02:00
Eli Zaretskii
dd86e5a227 Document changes in 'compare-windows'
* lisp/vc/compare-w.el (compare-windows-removed)
(compare-windows-added): Doc fix.

* doc/emacs/files.texi (Comparing Files): Document the changes in
window selection by 'compare-windows'.
2015-12-26 18:30:07 +02:00
Eli Zaretskii
42ae568b3d Document 'vc-annotate-background-mode'
* doc/emacs/maintaining.texi (Old Revisions): Document
'vc-annotate-background-mode'.
2015-12-26 18:04:03 +02:00
Eli Zaretskii
ca13f61dea Document 'vc-region-history'
* doc/emacs/maintaining.texi (VC Change Log): Document
'vc-region-history'.
2015-12-26 17:52:53 +02:00
Eli Zaretskii
78744677ce Improve documentation of 'vc-push'
* doc/emacs/maintaining.texi (Pulling / Pushing): Expand and
improve the documentation of 'vc-push'.

* lisp/vc/vc.el (vc-pull, vc-push): Doc fix.
2015-12-26 17:09:25 +02:00
Eli Zaretskii
388f193be7 ; * etc/NEWS: Document new features of SQL Mode. 2015-12-26 16:30:22 +02:00
Alain Schneble
4b5b3985ad Include the tests for the URL parsing fixes 2015-12-26 14:53:08 +01:00
Alain Schneble
8dea6fe5b5 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
* test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
* test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
* lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
information in URL-struct.
* lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
path and query into nil path and query, respectively.
* lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
empty path into an absolute ("/") path.
* lisp/url/url-expand.el (url-expand-file-name): Properly resolve
fragment-only URIs. Do not just return them unchanged.
* lisp/url/url-expand.el (url-default-expander): An empty path in the relative
reference URI should not drop the last segment.

Backport:

(cherry picked from commit b792ecea17)
2015-12-26 14:53:08 +01:00
Eli Zaretskii
4021027db7 ; * etc/NEWS: Mark some URL entries as not requiring documentation changes 2015-12-26 15:49:42 +02:00
Eli Zaretskii
bda3c4600b Document 'url-user-agent'.
* lisp/url/url-http.el (url-user-agent): Move from here...
* lisp/url/url-vars.el (url-user-agent): ...to here.  This is to
keep all the URL defcustoms in one place, and also have it defined
whenever the URL library is loaded.

* doc/misc/url.texi (Customization): Document 'url-user-agent'.
2015-12-26 15:31:32 +02:00
Eli Zaretskii
3a9664d092 Document protocols supported by URL library via Tramp
* doc/misc/url.texi (Tramp): New node, describes the URL schemes
supported via Tramp.
(Supported URL Types, file/ftp, rlogin/telnet/tn3270): Mention
Tramp.
2015-12-26 14:59:50 +02:00
Eli Zaretskii
293bd4f632 Document changes in Shell-script mode
* lisp/progmodes/sh-script.el (sh-mode, sh-set-shell): Document
the 'sh-shell' file-local variable.
(top level): Add an auto-load form to avoid byte-compiler warning
about 'comint-send-string'.
2015-12-26 13:48:00 +02:00
Eli Zaretskii
297e558c56 Fix documentation of 'ses-define-local-printer'
* doc/misc/ses.texi (Printer functions): Fix whitespace between
sentences and punctuation.  Add an index entry for
'ses-define-local-printer'.
2015-12-26 13:16:15 +02:00
Shakthi Kannan
406d132244 Document 'ert-summarize-tests-batch-and-exit'
* doc/misc/ert.texi (Running Tests in Batch Mode): Document
'ert-summarize-tests-batch-and-exit'.
2015-12-26 13:05:06 +02:00
Eli Zaretskii
23c3caf602 Avoid assertion violation in unbind_to
* src/eval.c (unbind_to) <SPECPDL_LET>: Avoid assertion violation
if we get here with an object that is not a symbol.  (Bug#14412)
2015-12-26 12:43:08 +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
24228d28dc Allow http://user:pass@foo/ URLs again
* lisp/url/url-auth.el (url-basic-auth): Allow explicit
user/passwords in URLs (bug#19046).

Backport:

(cherry picked from commit b563715a2d)
2015-12-25 20:22:02 +01:00
Samer Masterson
f41c54b763 Autoload url-insert-buffer-contents
* lisp/url/url-handlers.el: Add autoload cookie so that
`package-list-packages' doesn't bug out (bug#21927) (tiny change)

Backport:

(cherry picked from commit 7a7b5b492f)
2015-12-25 19:05:21 +01:00
Eli Zaretskii
b6ad4608be Make sure *scratch* etc. use forward slashes in its default-directory
* lisp/startup.el (normal-top-level): On MS-Windows, convert
backslashes to forward slashes while decoding default-directory
of the initially-created buffers.
2015-12-25 18:37:31 +02: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
eeff251924 Don't store cookies with empty names
* lisp/url/url-cookie.el (url-cookie-store): Refuse to store
cookies with empty names (bug#21936).

Backport:

(cherry picked from commit 9f0fd7cb1a)
2015-12-25 17:03:53 +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