Alan Mackenzie [Sun, 1 Feb 2015 21:20:35 +0000 (21:20 +0000)]
CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.
cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
nil.
Fabián Ezequiel Gallina [Mon, 6 Apr 2015 22:18:46 +0000 (19:18 -0300)]
python.el: Do not break IPython magic completions.
Fixes: debbugs:19736
* lisp/progmodes/python.el (python-shell-completion-setup-code):
Cleaner setup; import rlcompleter as last resource.
Artur Malabarba [Mon, 6 Apr 2015 16:05:53 +0000 (17:05 +0100)]
* emacs-lisp/package.el: Make the execute prompt less verbose.
(package-menu--list-to-prompt): New function.
(package-menu--prompt-transaction-p): Use "Upgrade" to make the
package-menu-execute prompt less verbose.
Artur Malabarba [Mon, 6 Apr 2015 15:22:07 +0000 (16:22 +0100)]
* emacs-lisp/package.el: Fix lack of "new" packages.
(package-menu--new-package-list)
(package-menu--old-archive-contents): No longer local.
Eli Zaretskii [Mon, 6 Apr 2015 11:52:57 +0000 (14:52 +0300)]
src/w32proc.c: Fix typos in description of subprocess support.
Eli Zaretskii [Mon, 6 Apr 2015 10:28:33 +0000 (13:28 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Koichi Arakawa [Mon, 6 Apr 2015 10:26:54 +0000 (13:26 +0300)]
Avoid segfaults on MS-Windows when invoking subprocesses (Bug#20264)
src/w32proc.c (w32_executable_type): Look for the DLL name in the
correct section. This avoids segfaults with some executables.
Artur Malabarba [Mon, 6 Apr 2015 10:25:01 +0000 (11:25 +0100)]
* NEWS: Document async package-menu.
Artur Malabarba [Sun, 5 Apr 2015 22:39:43 +0000 (23:39 +0100)]
emacs-lisp/package.el (package-menu-execute): Add async support
Most install/delete logic is now in
`package-menu--perform-transaction', and this function is called
asynchronously if `package-menu-async' is non-nil.
Artur Malabarba [Sun, 5 Apr 2015 22:21:26 +0000 (23:21 +0100)]
emacs-lisp/package.el (package-install): Add ASYNC and CALLBACK
Artur Malabarba [Sun, 5 Apr 2015 21:44:17 +0000 (22:44 +0100)]
emacs-lisp/package.el: Refactor pre-execute prompt
Artur Malabarba [Sun, 5 Apr 2015 14:43:59 +0000 (15:43 +0100)]
emacs-lisp/package.el: Async support in download-transaction
Paul Eggert [Mon, 6 Apr 2015 06:40:54 +0000 (23:40 -0700)]
Spelling fix for 'hfy-optimizations'
* htmlfontify.el (hfy-optimizations): Rename from hfy-optimisations,
with an obsolete alias. All uses changed.
Paul Eggert [Mon, 6 Apr 2015 06:32:40 +0000 (23:32 -0700)]
Fix typo in previous rtree change
Paul Eggert [Mon, 6 Apr 2015 04:57:10 +0000 (21:57 -0700)]
Use American spelling for 'normalize'
* rtree.el (rtree-normalize-range): Rename from rtree-normalise-range.
All uses changed. Add an alias for obsolete usages.
Fabián Ezequiel Gallina [Mon, 6 Apr 2015 04:22:19 +0000 (01:22 -0300)]
Fix previous commit to prevent infloop
Fabián Ezequiel Gallina [Mon, 6 Apr 2015 02:58:13 +0000 (23:58 -0300)]
python.el: Enhance docstring detection following PEP-257.
* lisp/progmodes/python.el (python-docstring-at-p): Remove function.
(python-info-assignment-statement-p): New function.
(python-info-assignment-continuation-line-p): Use it.
(python-info-docstring-p): New function.
(python-font-lock-syntactic-face-function)
(python-fill-string): Use it.
* test/automated/python-tests.el (python-info-assignment-statement-p-1)
(python-info-assignment-statement-p-2)
(python-info-assignment-statement-p-3, python-info-docstring-p-1)
(python-info-docstring-p-2, python-info-docstring-p-3)
(python-info-docstring-p-4, python-info-docstring-p-5)
(python-info-docstring-p-6): New tests.
Paul Eggert [Sun, 5 Apr 2015 19:47:20 +0000 (12:47 -0700)]
; Minor ChangeLog fix
Eli Zaretskii [Sun, 5 Apr 2015 17:18:19 +0000 (20:18 +0300)]
Fix byte-compilation warning in lisp/ses.el
lisp/ses.el (ses-sym-rowcol): Move up, before the first use, to avoid
byte-compiler warnings.
Alan Mackenzie [Sun, 5 Apr 2015 14:40:57 +0000 (14:40 +0000)]
Tidy up fix to debbugs#20240.
* jit-lock.el (jit-lock-after-change): Widen the buffer only
whilst putting the 'fontified text properties.
Eli Zaretskii [Sun, 5 Apr 2015 13:05:31 +0000 (16:05 +0300)]
Fix lisp/ChangeLog formatting.
Alan Mackenzie [Sun, 5 Apr 2015 12:41:45 +0000 (12:41 +0000)]
Rationalize use of c[ad]+r, expunging cl-c[ad]\{3,4\}r.
Also expunge eudc-c[ad]+r.
* subr.el (internal--compiler-macro-cXXr): "New" function, copied
from cl--compiler-macro-cXXr.
(caar, cadr, cdar, cddr): Change from defsubsts to defuns with
the above compiler-macro.
* net/eudc.el (eudc-cadr, eudc-cdar, eudc-caar, eudc-cdaar): Remove.
* emacs-lisp/cl.el (Top level dolist doing defaliases): Remove
caaar, etc., from list of new alias functions.
* emacs-lisp/cl-lib.el (cl-caaar, etc): Rename to caaar, etc.
(gen-cXXr--rawname, gen-cXXr-all-cl-aliases): New function/macro
which generate obsolete cl- aliases for caaar, etc. Invoke them.
* desktop.el:
* edmacro.el:
* emacs-lisp/cl-macs.el:
* frameset.el:
* ibuffer.el:
* mail/footnote.el:
* net/dbus.el:
* net/eudc-export.el:
* net/eudc.el:
* net/eudcb-ph.el:
* net/rcirc.el:
* net/secrets.el:
* play/5x5.el:
* play/decipher.el:
* play/hanoi.el:
* progmodes/hideif.el:
* ses.el: Replace cl-caaar, eudc-cadr, etc. with caaar and cadr, etc.
Richard Stallman [Sun, 5 Apr 2015 12:44:01 +0000 (08:44 -0400)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Conflicts:
lisp/ChangeLog
Richard Stallman [Sun, 5 Apr 2015 12:36:56 +0000 (08:36 -0400)]
* mail/rmail.el (rmail-show-message-1): When displaying a mime message,
indicate start and finish in the echo area.
* mail/rmail.el (rmail-epa-decrypt): Disregard <pre> before armor.
Ignore more kinds of whitespace in mime headers.
Modify the decrypted mime part's mime type so it will be displayed
by default when visiting this message again.
* net/browse-url.el (browse-url-firefox-program): Prefer IceCat, doc.
(browse-url-firefox-arguments)
(browse-url-firefox-startup-arguments): Doc fix.
Artur Malabarba [Sun, 5 Apr 2015 10:01:09 +0000 (11:01 +0100)]
emacs-lisp/package.el: Add package-initialize to user-init-file.
Artur Malabarba [Sat, 4 Apr 2015 20:00:38 +0000 (21:00 +0100)]
emacs-lisp/package.el: Prevent outdated downloads-in-progress.
Michael Albinus [Sun, 5 Apr 2015 07:30:03 +0000 (09:30 +0200)]
Remove entry from last sync with emacs-24, it wasn't applicable
Pete Williamson [Sun, 5 Apr 2015 03:18:45 +0000 (20:18 -0700)]
Fix .emacs and .emacs.d/init file recursion problem for NaCl
* files.el (file-truename): Add NaCl to the exception list ms-dos uses.
Paul Eggert [Sat, 4 Apr 2015 22:02:09 +0000 (15:02 -0700)]
Merge from origin/emacs-24
21d4bf6 * admin/make-tarball.txt: Copyedits.
f3b70a7 ; ChangeLog fix
07432a8 Revert "CC Mode: Stop Font Lock forcing fontification from BOL."
Conflicts:
lisp/ChangeLog
Paul Eggert [Sat, 4 Apr 2015 21:59:06 +0000 (14:59 -0700)]
Merge from origin/emacs-24
The following commit was skipped:
0ad5fe0 * etc/AUTHORS: Update the AUTHORS file
Paul Eggert [Sat, 4 Apr 2015 21:58:35 +0000 (14:58 -0700)]
Merge from origin/emacs-24
dd3f567 Fix tramp-tests.el
Conflicts:
test/ChangeLog
Paul Eggert [Sat, 4 Apr 2015 21:58:01 +0000 (14:58 -0700)]
Merge from origin/emacs-24
The following commit was skipped:
1b70aa6 Fix bug#20233, do not merge with master
Artur Malabarba [Sat, 4 Apr 2015 19:44:59 +0000 (20:44 +0100)]
(package--with-work-buffer-async): Protect macro arguments.
Artur Malabarba [Sat, 4 Apr 2015 19:20:21 +0000 (20:20 +0100)]
emacs-lisp/package.el: Don't overwrite downloads-in-progress.
Michael Albinus [Sat, 4 Apr 2015 18:34:47 +0000 (20:34 +0200)]
Quote directory name in tramp-flush-directory-property
* net/tramp-cache.el (tramp-flush-directory-property): Quote directory
name when used in regexp.
Jan D [Sat, 4 Apr 2015 14:10:06 +0000 (16:10 +0200)]
Close a timing hole in selections.
Fixes: debbugs:16737
* src/xselect.c (x_reply_selection_request)
(receive_incremental_selection): Call set_property_change_object
inside block_input.
(wait_for_property_change): Move set property_change_reply(_object)
outside of this function.
(set_property_change_object): New function.
Alan Mackenzie [Sat, 4 Apr 2015 10:26:31 +0000 (10:26 +0000)]
Fix debbugs#20240 part two (jit-lock error during `comment-dwim').
jit-lock.el (jit-lock-after-change): Widen the buffer before
putting 'fontified text properties.
Ulrich Müller [Sat, 4 Apr 2015 08:10:11 +0000 (10:10 +0200)]
configure.ac: Update comment.
Paul Eggert [Fri, 3 Apr 2015 20:05:23 +0000 (13:05 -0700)]
Port 'configure' to clang 3.5
* configure.ac: Add -Wno-unknown-attributes if clang; otherwise
clang 3.5.0 (Fedora 21 x86-64) complains
"/usr/include/glib-2.0/glib/gmem.h: ... warning: unknown attribute
'__alloc_size__' ignored". Use -Werror when checking for -nopie;
otherwise clang warns about -nopie instead of failing, and then
later it warns everytime the build uses -nopie.
Michael Albinus [Fri, 3 Apr 2015 16:52:27 +0000 (18:52 +0200)]
Fix Bug#20249
Fixes: debbugs:20249
* net/tramp-cache.el (tramp-flush-file-property)
(tramp-flush-directory-property): Use `directory-file-name' of the
truename.
Glenn Morris [Fri, 3 Apr 2015 15:16:23 +0000 (11:16 -0400)]
* admin/make-tarball.txt: Copyedits.
Glenn Morris [Fri, 3 Apr 2015 15:11:15 +0000 (11:11 -0400)]
; ChangeLog fix
Alan Mackenzie [Fri, 3 Apr 2015 12:22:45 +0000 (12:22 +0000)]
Revert "CC Mode: Stop Font Lock forcing fontification from BOL. Bug#19669."
This reverts commit
d69e9f1c24f37f36af33b0468c5a4e100dbb09b6.
Jan D [Fri, 3 Apr 2015 11:59:05 +0000 (13:59 +0200)]
Don't optimized away tool tip redraw, may lead to corrupted text.
* src/xterm.c (handle_one_xevent): Always redraw tool tips on
MapNotify. Update tool tip frame sizes on ConfigureNotify.
Nicolas Richard [Fri, 3 Apr 2015 10:28:40 +0000 (12:28 +0200)]
pcmpl-ssh-known-hosts: Use `char-before' instead of `looking-back'.
Fixes: debbugs:17284
* lisp/pcmpl-unix.el (pcmpl-ssh-known-hosts): Use `char-before' instead
of `looking-back'.
Ulrich Müller [Mon, 16 Mar 2015 16:09:54 +0000 (17:09 +0100)]
configure.ac: Add -nopie to LD_SWITCH_SYSTEM_TEMACS.
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): Add -nopie option if it
is supported, in order to avoid segfaults in temacs. (Bug#18784)
Dmitry Gutov [Fri, 3 Apr 2015 04:13:14 +0000 (07:13 +0300)]
; Tweak the previous change
Dmitry Gutov [Fri, 3 Apr 2015 03:37:12 +0000 (06:37 +0300)]
js-mode: Don't indent inside a multiline string literal
* lisp/progmodes/js.el (js-indent-line): Do nothing when bol is inside
a string (https://github.com/mooz/js2-mode/issues/227).
Katsumi Yamaoka [Fri, 3 Apr 2015 03:18:52 +0000 (03:18 +0000)]
lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Make external links absolute and cid file names relative
Stefan Monnier [Thu, 2 Apr 2015 14:00:48 +0000 (10:00 -0400)]
* lisp/abbrev.el (define-abbrev-table): Treat a non-string "docstring" as
part of the "props" arguments rather than silently ignoring it.
Stefan Monnier [Thu, 2 Apr 2015 13:59:47 +0000 (09:59 -0400)]
* lisp/emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer.
Nicolas Petton [Wed, 1 Apr 2015 20:27:47 +0000 (22:27 +0200)]
* etc/AUTHORS: Update the AUTHORS file
Alan Mackenzie [Wed, 1 Apr 2015 19:12:07 +0000 (19:12 +0000)]
Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240.
* progmodes/cc-mode.el (c-extend-after-change-region): Widen before
applying text properties.
* progmodes/cc-langs.el (c-before-font-lock-functions): Update an entry
to a new function name.
Paul Eggert [Wed, 1 Apr 2015 17:21:47 +0000 (10:21 -0700)]
* emacs-lisp/package.el: Spelling fixes and use active voice.
Artur Malabarba [Wed, 1 Apr 2015 16:55:52 +0000 (17:55 +0100)]
automated/package-test.el (package-test-update-archives): Fix test
Michael Albinus [Wed, 1 Apr 2015 15:04:07 +0000 (17:04 +0200)]
Fix tramp-tests.el
* automated/tramp-tests.el (tramp-test06-directory-file-name):
Fix docstring and last test.
Artur Malabarba [Wed, 1 Apr 2015 15:00:09 +0000 (16:00 +0100)]
* automated/package-test.el: Avoid async while testing.
Glenn Morris [Wed, 1 Apr 2015 10:21:35 +0000 (06:21 -0400)]
; Auto-commit of loaddefs files.
Artur Malabarba [Wed, 1 Apr 2015 10:09:00 +0000 (11:09 +0100)]
* 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.
Artur Malabarba [Wed, 1 Apr 2015 10:03:43 +0000 (11:03 +0100)]
* 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.
Michael Albinus [Wed, 1 Apr 2015 07:31:20 +0000 (09:31 +0200)]
Fix bug#20233, do not merge with master
* lisp/net/tramp.el (tramp-handle-unhandled-file-name-directory):
Return nil when required by the spec. (Bug#20233)
Eric Abrahamsen [Wed, 1 Apr 2015 04:55:34 +0000 (04:55 +0000)]
lisp/gnus/registry.el (registry-prune): Fix registry pruning routine
Glenn Morris [Tue, 31 Mar 2015 21:47:14 +0000 (17:47 -0400)]
* admin/update_autogen (commit): Switch prefix from "# " to "; ".
Simen Heggestøyl [Tue, 31 Mar 2015 18:26:48 +0000 (11:26 -0700)]
Pete Williamson <petewil@chromium.org> (tiny change)
Add NaCl target
* configure.ac: Add a target for Chromium Native Client (NaCl).
Simen Heggestøyl [Tue, 31 Mar 2015 17:55:52 +0000 (19:55 +0200)]
Derive `css-mode' from `prog-mode'
* textmodes/css-mode.el (css-mode): Derive from `prog-mode'.
Eli Zaretskii [Tue, 31 Mar 2015 14:18:17 +0000 (17:18 +0300)]
Avoid crashing with key-chord (Bug#20223)
src/keyboard.c (read_key_sequence): Don't let
this_single_command_key_start become negative.
Stefan Monnier [Tue, 31 Mar 2015 13:35:42 +0000 (09:35 -0400)]
* lisp/jit-lock.el (jit-lock--run-functions): Fix min/max copy&paste error.
Stefan Monnier [Tue, 31 Mar 2015 04:04:39 +0000 (00:04 -0400)]
* jit-lock.el (jit-lock--run-functions): Do the `or' where it can be nil.
Stefan Monnier [Tue, 31 Mar 2015 01:33:20 +0000 (21:33 -0400)]
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.
Daiki Ueno [Tue, 31 Mar 2015 01:14:13 +0000 (10:14 +0900)]
plstore.el: Don't cache wrong passphrase
* plstore.el (plstore--decrypt): Clear entry in
`plstore-passphrase-alist' if decryption failed (bug#20030).
Artur Malabarba [Mon, 30 Mar 2015 23:56:56 +0000 (00:56 +0100)]
Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs
Artur Malabarba [Sat, 28 Mar 2015 20:36:14 +0000 (20:36 +0000)]
emacs-lisp/package.el: Reorganize package.el
Reorganize package.el and divide it with page-breaks and comments
Stefan Monnier [Mon, 30 Mar 2015 21:51:50 +0000 (17:51 -0400)]
* eieio-base.el (make-instance) <eieio-named>: New instance.
Alan Mackenzie [Mon, 30 Mar 2015 16:37:04 +0000 (16:37 +0000)]
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).
Richard Ryniker [Mon, 30 Mar 2015 15:38:25 +0000 (17:38 +0200)]
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)
Paul Eggert [Sun, 29 Mar 2015 21:24:19 +0000 (14:24 -0700)]
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
Paul Eggert [Sun, 29 Mar 2015 21:14:37 +0000 (14:14 -0700)]
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
Paul Eggert [Sun, 29 Mar 2015 21:14:15 +0000 (14:14 -0700)]
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
Paul Eggert [Sun, 29 Mar 2015 20:59:50 +0000 (13:59 -0700)]
Spelling fix
Paul Eggert [Sun, 29 Mar 2015 20:03:55 +0000 (13:03 -0700)]
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'.
Jan D [Sun, 29 Mar 2015 19:16:23 +0000 (21:16 +0200)]
Fixes: debbugs:19175
* gtkutil.c (xg_display_open):
* xterm.c (x_display_ok, x_term_init): Block SIGIO when opening
a display.
Eli Zaretskii [Sun, 29 Mar 2015 16:41:04 +0000 (19:41 +0300)]
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.
Adam Sjøgren [Sun, 29 Mar 2015 13:30:36 +0000 (13:30 +0000)]
lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Add "Display HTML images" to "Display" menu
Dani Moncayo [Sun, 29 Mar 2015 11:47:21 +0000 (13:47 +0200)]
* doc/emacs/files.texi (Diff Mode): Doc fix.
Jan D [Sat, 28 Mar 2015 22:05:30 +0000 (23:05 +0100)]
* lisp/emacs-lisp/package.el (package-refresh-contents): Fix spelling error
Eli Zaretskii [Sat, 28 Mar 2015 17:37:47 +0000 (20:37 +0300)]
src/w32proc.c: Describe in a comment w32 subprocess implementation.
Glenn Morris [Sat, 28 Mar 2015 17:33:43 +0000 (10:33 -0700)]
ChangeLog fix
Add tiny change marker to author without assignment.
NB there are several previous commits from the same author...
Tom Willemse [Sat, 28 Mar 2015 14:43:33 +0000 (14:43 +0000)]
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.
Jan D [Sat, 28 Mar 2015 11:33:25 +0000 (12:33 +0100)]
Don't send bad SM messages.
* xsmfns.c (smc_save_yourself_CB): Return if Vinvocation_name or
user_login_name are not strings.
Jan D [Sat, 28 Mar 2015 11:15:18 +0000 (12:15 +0100)]
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.
Eli Zaretskii [Sat, 28 Mar 2015 07:36:01 +0000 (10:36 +0300)]
Fix blocking connections on MS-Windows (Bug#20159)
src/w32.c (sys_connect): Fix a mistake in previous commit that broke
blocking connections.
Paul Eggert [Fri, 27 Mar 2015 19:10:44 +0000 (12:10 -0700)]
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.
Paul Eggert [Fri, 27 Mar 2015 18:57:44 +0000 (11:57 -0700)]
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.
Paul Eggert [Fri, 27 Mar 2015 18:14:14 +0000 (11:14 -0700)]
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 *.
Paul Eggert [Fri, 27 Mar 2015 17:36:15 +0000 (10:36 -0700)]
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.
Eli Zaretskii [Fri, 27 Mar 2015 13:16:36 +0000 (16:16 +0300)]
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.
Eli Zaretskii [Fri, 27 Mar 2015 09:47:04 +0000 (12:47 +0300)]
Fix the bug number of previous commit: should be bug #20159.
Eli Zaretskii [Fri, 27 Mar 2015 09:44:31 +0000 (12:44 +0300)]
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.
Nicolas Petton [Fri, 27 Mar 2015 08:52:01 +0000 (09:52 +0100)]
Bump version to 24.5 for the release-candidate
Wolfgang Jenkner [Fri, 27 Mar 2015 01:54:39 +0000 (02:54 +0100)]
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.