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

120916 Commits

Author SHA1 Message Date
Artur Malabarba
aa33f4a100 * emacs-lisp/package.el: Make package-menu asynchronous.
(package-menu-async): New variable.  Controls whether
`list-packages' is asynchronous.
(list-packages): Now asynchronous by default.
(package-menu--new-package-list): Always buffer-local.
(package-menu--post-refresh)
(package-menu--find-and-notify-upgrades)
(package-menu--populate-new-package-list): New functions.
2015-04-01 11:09:00 +01:00
Artur Malabarba
ba7a1a7a4e * emacs-lisp/package.el: Implement asynchronous refreshing.
(package--with-work-buffer-async)
(package--check-signature-content)
(package--update-downloads-in-progress): New functions.
(package--check-signature, package--download-one-archive)
(package--download-and-read-archives, package-refresh-contents):
Optional arguments for async usage.
(package--post-download-archives-hook): New variable. Hook run
after every refresh.
2015-04-01 11:08:03 +01:00
Eric Abrahamsen
5ba4fbd9e3 lisp/gnus/registry.el (registry-prune): Fix registry pruning routine 2015-04-01 04:55:34 +00:00
Glenn Morris
8d1d8fc474 * admin/update_autogen (commit): Switch prefix from "# " to "; ". 2015-03-31 17:47:14 -04:00
Simen Heggestøyl
ee050a3b19 Pete Williamson <petewil@chromium.org> (tiny change)
Add NaCl target
* configure.ac: Add a target for Chromium Native Client (NaCl).
2015-03-31 11:28:35 -07:00
Simen Heggestøyl
f21d9b6e44 Derive css-mode' from prog-mode'
* textmodes/css-mode.el (css-mode): Derive from `prog-mode'.
2015-03-31 19:55:52 +02:00
Eli Zaretskii
f20a2cd9dc Avoid crashing with key-chord (Bug#20223)
src/keyboard.c (read_key_sequence): Don't let
 this_single_command_key_start become negative.
2015-03-31 17:18:17 +03:00
Stefan Monnier
5a7380aa27 * lisp/jit-lock.el (jit-lock--run-functions): Fix min/max copy&paste error. 2015-03-31 09:35:42 -04:00
Stefan Monnier
81b0eade25 * jit-lock.el (jit-lock--run-functions): Do the `or' where it can be nil. 2015-03-31 00:04:39 -04:00
Stefan Monnier
bc9a6fcd29 Let jit-lock know the result of font-lock-extend-region-functions.
* lisp/jit-lock.el (jit-lock--run-functions): New function.
(jit-lock-fontify-now): Use it.  Handle fontification bounds more
precisely in case the backend functions fontify more than requested.
Don't round up to whole lines since that shouldn't be needed
any more.
* lisp/font-lock.el (font-lock-fontify-region-function): Adjust docstring.
(font-lock-inhibit-thing-lock): Make obsolete.
(font-lock-default-fontify-region): Return the bounds actually used.

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
Fix compilation error.
2015-03-30 21:33:20 -04:00
Daiki Ueno
2e4b0c98a7 plstore.el: Don't cache wrong passphrase
* plstore.el (plstore--decrypt): Clear entry in
`plstore-passphrase-alist' if decryption failed (bug#20030).
2015-03-31 10:14:13 +09:00
Artur Malabarba
ce88920edb Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs 2015-03-31 00:56:56 +01:00
Artur Malabarba
a7270fb20f emacs-lisp/package.el: Reorganize package.el
Reorganize package.el and divide it with page-breaks and comments
2015-03-31 00:47:31 +01:00
Stefan Monnier
ef37e79aae * eieio-base.el (make-instance) <eieio-named>: New instance. 2015-03-30 17:51:50 -04:00
Alan Mackenzie
05a5a94000 Correct calculation of CC Mode's font-lock region.
* cc-mode.el (c-fl-decl-start): Renamed from c-set-fl-decl-start.
* Change
signature such that nil is returned when no declaration is found.
(c-change-expand-fl-region): Renamed from c-change-set-fl-decl-start.
This now also handles expanding the font lock region to whole lines.
(c-context-expand-fl-region): Renamed from c-context-set-fl-decl-start.
This now also handles expanding the font lock region to whole lines.
(c-font-lock-fontify-region): When a change font lock region is
spuriously enlarged to the beginning-of-line by jit-lock, fontify the
extra bit separately from the region calculated by CC Mode.
(c-extend-after-change-region): Explicitly apply 'fontified properties
to
the extended bits of the font lock region.

* cc-langs.el (c-before-font-lock-functions)
(c-before-context-fontification-functions): Use new names for existing
functions (see above).
2015-03-30 16:37:04 +00:00
Richard Ryniker
d9eff02736 In sendmail-send-it don't switch to non-existent buffer. (Bug#20211)
* mail/sendmail.el (sendmail-send-it): Do not attempt to switch
to non-existent buffer (errbuf is not created when customization
variable mail-interactive is nil).  (Bug#20211)
2015-03-30 17:38:25 +02:00
Paul Eggert
d16fb74091 Merge from origin/emacs-24
4d2e7e1 Fixes: debbugs:19175
2e0cfcc Fix the preamble text of the DIR file we install  (Bug#20213)
22ece83 src/w32proc.c: Describe in a comment w32 subprocess implementation.

Conflicts:
	ChangeLog
	src/ChangeLog
	src/xterm.c
2015-03-29 14:24:19 -07:00
Paul Eggert
97d44922da Merge from origin/emacs-24
The following commits were skipped:

8478885 Bump version to 24.5 for the release-candidate
118b6a9 (url-insert-file-contents): Set buffer-file-coding-system
2015-03-29 14:14:37 -07:00
Paul Eggert
0479a1b62c Merge from origin/emacs-24
5e0314f * smie.el (smie*ward-sexp-command): Don't pretend the arg is optional
13cf575 Don't round up scroll bar width with GTK3 (Bug#20182).
921dd0d * doc/lispref/objects.texi (Equality Predicates): Fix typo in example.

Conflicts:
	doc/lispref/ChangeLog
	lisp/ChangeLog
	src/ChangeLog
2015-03-29 14:14:15 -07:00
Paul Eggert
4a70043698 Spelling fix 2015-03-29 14:00:09 -07:00
Paul Eggert
6b7dd51e12 Fix 'commit-msg' to cite 'CONTRIBUTE'
As suggested in:
http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00947.html
Also, have the two files match better.
* CONTRIBUTE: Match what's in build-aux/git-hooks/commit-msg.
* build-aux/git-hooks/commit-msg: Mention 'CONTRIBUTE'.
2015-03-29 13:07:21 -07:00
Jan D
4d2e7e1754 Fixes: debbugs:19175
* gtkutil.c (xg_display_open):
* xterm.c (x_display_ok, x_term_init): Block SIGIO when opening
a display.
2015-03-29 21:16:23 +02:00
Eli Zaretskii
2e0cfccde6 Fix the preamble text of the DIR file we install (Bug#20213)
build-aux/dir_top (File): Fix the description of selecting a
 menu item by its number.
2015-03-29 19:41:04 +03:00
Adam Sjøgren
d193f52f78 lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Add "Display HTML images" to "Display" menu 2015-03-29 13:30:36 +00:00
Dani Moncayo
66415fdf62 * doc/emacs/files.texi (Diff Mode): Doc fix. 2015-03-29 13:47:21 +02:00
Jan D
e6127d9474 * lisp/emacs-lisp/package.el (package-refresh-contents): Fix spelling error 2015-03-28 23:05:30 +01:00
Eli Zaretskii
22ece83a65 src/w32proc.c: Describe in a comment w32 subprocess implementation. 2015-03-28 20:37:47 +03:00
Glenn Morris
36a2efe258 ChangeLog fix
Add tiny change marker to author without assignment.
NB there are several previous commits from the same author...
2015-03-28 10:33:43 -07:00
Tom Willemse
40b3dcd2c0 New `electric-pair-local-mode'
Fixes: big#19528

* lisp/elec-pair.el (electric-pair-local-mode): New command.
(electric-pair-mode): Mention `electric-pair-local-mode' in the
docstring.
2015-03-28 15:16:13 +00:00
Jan D
be5e9348dc Don't send bad SM messages.
* xsmfns.c (smc_save_yourself_CB): Return if Vinvocation_name or
user_login_name are not strings.
2015-03-28 12:33:25 +01:00
Jan D
733a9f114c Fixes: debbugs:17879
* lisp/emacs-lisp/package.el (package-refresh-contents): Add a message at
the end so it does not appear to have hanged.
2015-03-28 12:15:18 +01:00
Eli Zaretskii
7dc565a2cf Fix blocking connections on MS-Windows (Bug#20159)
src/w32.c (sys_connect): Fix a mistake in previous commit that broke
 blocking connections.
2015-03-28 10:36:01 +03:00
Paul Eggert
01d1024bec Avoid some core dumps in X session management
Derived from a bug report by Nicolas Richard in:
http://bugs.gnu.org/20191#20
* xsmfns.c (smc_save_yourself_CB): Don't dump core if
invocation-name is not a string.  Initialize user-login-name if it
is not already initialized, and don't dump core if it is not a
string.
(create_client_leader_window): Don't dump core if x-resource-name
and x-resource-class are not both strings.
(x_session_initialize): Don't dump core if x-session-previous-id,
invocation-directory, and invocation-name are not strings.
2015-03-27 12:11:08 -07:00
Paul Eggert
589a4034b7 Port user-login-name initialization to Qnil == 0
* editfns.c (Fuser_login_name, Fuser_real_login_name)
(syms_of_editfns): Don't rely on all-bits-zero being an Elisp integer,
as this is no longer true now that Qnil == 0.
2015-03-27 12:01:56 -07:00
Paul Eggert
84c7c6fd2b Port etags to -DDEBUG
* etags.c (xnew, xrnew) [DEBUG]: Don't include chkmalloc.h, which
is not part of Emacs and is typically not installed.
Instead, just invoke xmalloc and xrealloc as usual.
Problem reported by Nicolas Richard in:
http://bugs.gnu.org/20191#20
(xrnew): Avoid no-longer-needed cast to 'char *'.
(xrealloc): First arg is now void *, not char *.
2015-03-27 11:14:33 -07:00
Paul Eggert
087fdee723 Assume !BROKEN_NON_BLOCKING_CONNECT
From a suggestion by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00824.html
* process.c (NON_BLOCKING_CONNECT): Simplify by assuming that
BROKEN_NON_BLOCKING_CONNECT is not defined.
(SELECT_CAN_DO_WRITE_MASK): Remove, and assume it's now true.
2015-03-27 10:37:14 -07:00
Eli Zaretskii
9552a65f31 Fix crashes when restoring sub-char-tables from desktop file
src/lread.c (substitute_object_recurse): For sub-char-tables, start
 the recursive SUBSTITUTE loop from index of 2, to skip the
 non-Lisp members of the sub-char-table.  See the discussion at
 http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00520.html
 for the details.
2015-03-27 16:16:36 +03:00
Eli Zaretskii
5ba79b03f3 Fix the bug number of previous commit: should be bug #20159. 2015-03-27 12:47:04 +03:00
Eli Zaretskii
d133cf8394 Support non-blocking connect on MS-Windows (Bug#20207)
Based on ideas from Kim F. Storm <storm@cua.dk>, see
 http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00873.html.

 src/w32proc.c (reader_thread): If the FILE_CONNECT flag is set, call
 '_sys_wait_connect'.  If it returns STATUS_CONNECT_FAILED, exit
 the thread with code 2.
 (sys_select): Support 'wfds' in addition to 'rfds'.  If a
 descriptor in 'wfds' has its bit set, but the corresponding
 fd_info member doesn't have its FILE_CONNECT flag set, ignore the
 descriptor.  Otherwise, acknowledge a successful non-blocking
 connect by resetting the FILE_CONNECT flag and setting cp->status
 to STATUS_READ_ACKNOWLEDGED.
 src/w32.h (STATUS_CONNECT_FAILED): New enumeration value.
 (struct _child_process): New member 'errcode'.
 (FILE_CONNECT): New flag.
 (_sys_wait_connect): Add prototype.
 src/w32.c (pfn_WSAEnumNetworkEvents): New function pointer.
 (init_winsock): Load WSAEnumNetworkEvents from winsock DLL.
 (set_errno): Map WSAEWOULDBLOCK and WSAENOTCONN.
 (sys_connect): Support non-blocking 'connect' calls by setting the
 FILE_CONNECT flag in the fd_info member and returning EINPROGRESS.
 (_sys_read_ahead): Add debug message if this function is called
 for a descriptor that waits for a non-blocking connect to complete.
 (_sys_wait_connect): New function.
 (sys_read): Support STATUS_CONNECT_FAILED.  Return the error code
 recorded by _sys_wait_connect when the non-blocking connect
 failed.  Don't call WSAGetLastError before a call to set_errno had
 a chance to use its value, since WSAGetLastError clears the last
 error.

 nt/inc/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Don't define.
2015-03-27 12:44:31 +03:00
Nicolas Petton
8478885dfa Bump version to 24.5 for the release-candidate 2015-03-27 09:52:01 +01:00
Wolfgang Jenkner
792d44b3c3 Preserve face text properties in comint prompt.
Fixes: debbugs:20084

* lisp/font-lock.el (font-lock--remove-face-from-text-property): New
function.  Adapted from the previously commented out
remove-single-text-property.
Remove previously unused and commented out auxiliary function
remove-text-property and obsolete comment.
* lisp/comint.el (comint-output-filter): Use it to remove
comint-highlight-prompt.
(comint-snapshot-last-prompt, comint-output-filter): Use
font-lock-prepend-text-property for comint-highlight-prompt.
* test/automated/textprop-tests.el: New file.
(textprop-tests-font-lock--remove-face-from-text-property): New test.

Thus, the original face text property of a prompt "candidate" (the
last line of an output chunk not ending with a newline) is
preserved.  This amends the fix for bug#14744.
2015-03-27 03:47:08 +01:00
Daniel Colascione
1d02107dab Shut up python-mode's indentation guesser
* lisp/progmodes/python.el
(python-indent-guess-indent-offset-verbose): New defcustom.
(python-indent-guess-indent-offset): Use it.
2015-03-26 13:46:06 -07:00
Stefan Monnier
118b6a92f5 (url-insert-file-contents): Set buffer-file-coding-system
Fixes: debbugs:20010

* lisp/url/url-handlers.el (url-insert-file-contents): Call
after-insert-file-set-coding like insert-file-contents, to set
buffer-file-coding-system.  [Backport]
2015-03-26 15:17:51 -04:00
Stefan Monnier
8fd527eb00 * lisp/emacs-lisp/cl|eieio: Minor tweaks
* lisp/emacs-lisp/cl-macs.el (cl-dolist, cl-dotimes): Silence byte-compiler.

* lisp/emacs-lisp/eieio.el (defclass): Change internal name so as to make
sure only EIEIO files should have "eieio--" prefixes in their .elc.
2015-03-26 13:32:45 -04:00
Stefan Monnier
5e0314f6fa * smie.el (smie*ward-sexp-command): Don't pretend the arg is optional
Fixes: debbugs:20205

* lisp/emacs-lisp/smie.el (smie-backward-sexp-command)
(smie-forward-sexp-command): Don't pretend the arg is optional.
2015-03-26 09:36:24 -04:00
Boruch Baum
3e0fc97bef * lisp/bookmark.el (bookmark-show-all-annotations): Sort them
Fixes: debbugs:20177
2015-03-25 21:43:51 -04:00
Paul Eggert
124ea7763a Spelling fixes 2015-03-25 18:19:52 -07:00
Dmitry Gutov
58c86059c6 Only escape quotation mark, backslash and cntrl U+0000 to U+001F
* lisp/json.el (json-special-chars): Don't treat `/' specially, there's
no need to.
(json-encode-string): Only escape quotation mark, backslash and
the control characters U+0000 to U+001F.
2015-03-25 21:54:29 +02:00
Stefan Monnier
2b828866c2 * etc/TODO: Remove obsolete entries. 2015-03-25 14:28:25 -04:00
Artur Malabarba
eeb515715d emacs-lisp/checkdoc.el: Don't complain about args starting with _. 2015-03-25 17:48:38 +00:00