1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
Commit Graph

108958 Commits

Author SHA1 Message Date
Eli Zaretskii
ae11bda519 Fix bug #13735 with network streams on MS-Windows.
Revert changes to w32proc.c done since 2012-11-30T09:23:15Z!eliz@gnu.org.

Do NOT merge to trunk!

 src/w32proc.c (new_child): Remove the loop that attempted to salvage
 slots of dead processes.
 (new_child, delete_child, find_child_pid): Don't insist on
 procinfo.hProcess be NULL for a process slot to be considered
 inactive, or be non-NULL to be considered active.
 (reader_thread): Don't set the FILE_AT_EOF flag of a file
 descriptor if the corresponding child was deleted and its
 char_avail handle is NULL.
 (reap_subprocess): Don't reset the FILE_AT_EOF flag.
 (sys_select): Don't pass a NULL process handle to
 WaitForMultipleObjects.

Fixes: debbugs:13735 debbugs:13546
2013-02-17 20:17:34 +02:00
Eli Zaretskii
fd80c659d2 Fix bug #13723 with redrawing vertical border in GUI sessions.
src/xdisp.c (x_draw_vertical_border): For a window that is neither
 the leftmost nor the rightmost, redraw both the left and the right
 vertical borders.
2013-02-17 18:22:11 +02:00
Glenn Morris
6d4cb47e63 A few small TODO and CONTRIBUTE updates 2013-02-16 12:24:50 -08:00
Didier Verna
e5b246e9f3 * lisp/net/network-stream.el (network-stream-open-starttls):
Check that response to the starttls-command is non-nil.

Fixes: debbugs:13706
2013-02-15 18:45:24 -08:00
Eli Zaretskii
a7727d05be Fix commit 2013-02-15T09:41:31Z!eliz@gnu.org for bug #13546. 2013-02-15 15:14:26 +02:00
Glenn Morris
1d461514ab Auto-commit of generated files. 2013-02-15 07:17:45 -05:00
Eli Zaretskii
ef862e206a Allow deleted processes to be reaped by SIGCHLD handler on MS-Windows.
src/w32proc.c (new_child): Free up to 2 slots of dead processes at a
 time.  Improve diagnostics in DebPrint.
 (reader_thread): If cp->char_avail is NULL, set the FILE_AT_EOF
 flag, so that sys_select could have a chance of noticing that this
 process is dead, and call a SIGCHLD handler for it.  Improve
 diagnostics in DebPrint.
 (reap_subprocess): Reset the FILE_AT_EOF flag set by
 reader_thread.
 (sys_select): Watch a process whose procinfo.hProcess is non-NULL
 even if its char_avail is NULL.  Allows to reap subprocesses that
 were forcibly deleted by delete-process.  (Bug#13546)
2013-02-15 11:41:31 +02:00
Eli Zaretskii
bcf7fe2aef Improve error reporting as part of solving bug #13546 on MS-Windows.
src/w32.c (sys_socket, sys_bind, sys_connect, sys_gethostname)
 (sys_gethostbyname, sys_getservbyname, sys_getpeername)
 (sys_shutdown, sys_setsockopt, sys_listen, sys_getsockname)
 (sys_accept, sys_recvfrom, sys_sendto, fcntl): In case of failure,
 make sure errno is set to an appropriate value.  (Bug#13546)
 (socket_to_fd): Add assertion against indexing fd_info[] with a
 value that is out of bounds.
 (sys_accept): If fd is negative, do not set up the child_process
 structure for reading.
2013-02-15 11:01:13 +02:00
Paul Eggert
974c7646ec Backport GCPRO fix from trunk.
The bug was reported for AIX before today's changes.
I reproduced the problem on Fedora 17 x86-64 when setting
GC_MARK_STACK by hand, and I presume it occurs with default
configurations on HP-UX and Unixware.
Trunk fix on 2013-01-14 by Dmitry Antipov <dmantipov@yandex.ru>:
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
* eval.c (eval_sub): Protect `form' from being GCed before its
car and cdr becomes protected with the backtrace entry.

Fixes: debbugs:13650
2013-02-14 14:08:38 -08:00
Paul Eggert
35b3a27e67 Fix AIX port.
* configure.ac (DATA_START, DATA_SEG_BITS): Set to 0x20000000 on AIX.
(GC_MARK_STACK): Do not set to GC_USE_GCPROS_AS_BEFORE, as that
runs afoul of some other bug in Emacs, and the default value
GC_MAKE_GCPROS_NOOPS has been tested and works.
* src/lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
Fix bug introduced in 2012-07-27 change.  DATA_SEG_BITS, if set,
was #undeffed earlier, so it cannot be used as a macro here.
Use the constant and not the macro.  Tested on AIX.
* src/unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
file.  They're almost surely OK but we're just before a release so
we should avoid changes unless they're clearly needed.  Instead,
make the following minor change:
(ADDR_CORRECT): New macro.

Fixes: debbugs:13650
2013-02-14 12:05:10 -08:00
Glenn Morris
9e16c3b44b * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf. 2013-02-14 09:16:47 -08:00
Stefan Monnier
213ac1686c * lisp/net/goto-addr.el (goto-address-fontify): Add start and end args.
(goto-address-fontify-region): Use them instead of narrowing, so
syntax-ppss has access to the whole buffer.
2013-02-14 10:53:46 -05:00
Glenn Morris
df1af142da * lispref/modes.texi (Basic Major Modes): 'z' no longer bound in special-mode. 2013-02-13 20:24:03 -05:00
Fabián Ezequiel Gallina
ea5f4192b9 * progmodes/python.el: Explain how to restore "cc-mode"-like
forward-sexp movement in header documentation.
(python-nav--forward-sexp): Behave like emacs-lisp-mode in
comments and strings (GH bug 114).

Fixes: debbugs:13642
2013-02-13 21:42:11 -03:00
Fabián Ezequiel Gallina
5cd3d1e56e Push ChangeLog entry for previous commit. 2013-02-13 20:09:12 -03:00
Fabián Ezequiel Gallina
dcbec5e2e6 * progmodes/python.el (python-info-current-defun): Fix current
defun detection.

Fixes: debbugs:13618
2013-02-13 20:07:59 -03:00
Eli Zaretskii
0e4e7b741b More robust creation of a subprocess, attempt to solve bug #13546.
src/w32proc.c (new_child): If no vacant slots are found in
 child_procs[], make another pass looking for slots whose process
 has exited or died.
2013-02-13 19:04:30 +02:00
Eli Zaretskii
6e432f0cda Cleanup related to bug #13546 with subprocesses on MS-Windows.
src/w32.c (sys_pipe): When failing due to file descriptors above
 MAXDESC, set errno to EMFILE.
 (_sys_read_ahead): Update cp->status when failing to read serial
 communications input, so that the status doesn't stay at
 STATUS_READ_IN_PROGRESS.
2013-02-13 19:00:26 +02:00
Chong Yidong
a1d23eb505 * xml.el (xml-parse-string): Fix typo in handling of bad character references. 2013-02-13 15:24:11 +08:00
Glenn Morris
1a359750bb * src/keyboard.c (input-decode-map, key-translation-map): Doc fixes. 2013-02-12 20:26:43 -08:00
Glenn Morris
b6c3e4b120 * doc/lispref/objects.texi (Char-Table Type): Add footnote about #^^. 2013-02-12 21:25:02 -05:00
Glenn Morris
b5ca9d5349 * doc/lispref/modes.texi (Minor Mode Conventions): Fix typo. 2013-02-12 21:20:52 -05:00
Paul Eggert
f53f992ad5 Improve AIX port some more.
With this, it should be as good as it was in 23.3, though it's
still pretty bad: the dumped emacs does not run.  See Mark Fleishman in
http://lists.gnu.org/archive/html/help-gnu-emacs/2011-04/msg00287.html
* unexaix.c (start_of_text): Remove.
(_data, _text): Declare as char[], not int, as AIX manual suggests.
(bias, lnnoptr, text_scnptr, data_scnptr, load_scnptr)
(orig_load_scnptr, orig_data_scnptr):
Now off_t, not long, since they are file offsets.
(make_hdr): Use _data, not start_of_data ().
This is the key part of the fix.
(make_hdr, unrelocate_symbols): Use off_t for file offsets.
(unrelocate_symbols): Cast pointers to intptr_t, not to ulong.

Fixes: debbugs:13650
2013-02-12 10:43:11 -08:00
Paul Eggert
4458c2551b * pre-crt0.c (data_start): Initialize to 1.
This ports to compilers that optimize the external declaration
'int x = 0;' as if it were 'int x;' to shrink the executable.
2013-02-12 10:33:42 -08:00
Paul Eggert
65e7ca35a6 In doc, use standard American English style for e.g., etc., i.e. 2013-02-12 09:36:54 -08:00
Glenn Morris
85adc63f81 keymaps.texi small fix for bug#13684
* doc/lispref/keymaps.texi (Scanning Keymaps):
Remove obsolete sentence about meta characters; this changed in 22.1.
2013-02-11 19:33:18 -05:00
Paul Eggert
227be86d10 Improve AIX port.
This doesn't fix the bug, but it makes progress: Emacs builds now.
* unexaix.c: Include inttypes.h, stdarg.h.
(report_error, report_error_1): Mark as _Noreturn.
(report_error): Don't report the wrong errno.
(report_error_1): Now varargs.  All callers changed.
(make_hdr): Use uintptr_t, not unsigned, when converting pointers
to unsigned.  Don't use ADDR_CORRECT, as it no longer exists.
(write_ptr): Use %p to print address rather than %lx and a cast
to unsigned long.  Grow buffer a bit, to be safer.

Fixes: debbugs:13650
2013-02-11 12:32:54 -08:00
Eli Zaretskii
713bfeaab3 Fix rare aborts in bidi.c.
src/bidi.c (bidi_resolve_neutral): After finding the next
 non-neutral character, accept NEUTRAL_ON type as well, because
 directional control characters, such as LRE and RLE, have their
 type converted to that by bidi_resolve_weak.  This avoids aborts
 when LRE/RLE follows a run of neutrals.
 (bidi_move_to_visually_next): Assert that return value of
 bidi_peek_at_next_level is non-negative.  Negative values will
 cause an infloop.
2013-02-11 19:27:48 +02:00
Glenn Morris
93e0bed683 NEWS copyedit (consistent capitalization for top-level headings) 2013-02-10 17:46:52 -08:00
Glenn Morris
662abcc175 * doc/lispref/objects.texi (Char-Table Type): Add cindex. 2013-02-10 17:21:21 -08:00
Glenn Morris
9d6c9dd13c * doc/lispref/keymaps.texi (Key Binding Commands): Trivial rephrasing. 2013-02-10 17:16:30 -08:00
Michael Albinus
e08e7d9154 * net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
if DIR exists and PARENTS is non-nil.
2013-02-10 11:07:09 +01:00
Glenn Morris
c4af1efc91 * doc/emacs/trouble.texi (Checklist): Update bug keybinding. 2013-02-09 17:54:16 -08:00
Glenn Morris
7171926321 ChangeLog typo fix 2013-02-09 17:32:14 -08:00
Katsumi Yamaoka
ac0215a325 lisp/gnus/nnir.el ("nnir"): Add 'virtual ability to nnir backend 2013-02-10 00:51:34 +00:00
Chong Yidong
e78e7e486d Correct non-standard binding of report-emacs-bug-insert-to-mailer.
* lisp/mail/emacsbug.el (report-emacs-bug): Change binding of
report-emacs-bug-insert-to-mailer to C-c M-i.

Fixes: debbugs:13510
2013-02-09 12:43:42 +08:00
Glenn Morris
dc55466e67 * doc/lispref/keymaps.texi (Creating Keymaps): Update make-keymap result. 2013-02-08 21:36:39 -05:00
Glenn Morris
6511485f2c More small TODO updates 2013-02-08 20:57:36 -05:00
Glenn Morris
9079056058 Remove old TODO item - user-error was added 2013-02-08 09:14:58 -08:00
Glenn Morris
61c3528043 Remove longlines entry (bug#13652) 2013-02-08 09:13:46 -08:00
Glenn Morris
7bd007246e keymaps.texi tweak
* doc/lispref/keymaps.texi (Active Keymaps, Searching Keymaps):
Remove confusing mention of "symbolic prefix".

Fixes: debbugs:13643
2013-02-08 09:13:06 -08:00
Aidan Gauland
dacbc44ca3 * doc/misc/eshell.texi: Fill most of the missing sections. 2013-02-08 09:59:24 -05:00
Aidan Gauland
c7205e5387 * doc/misc/eshell.texi: Fill most of the missing sections. 2013-02-08 09:44:17 -05:00
Eli Zaretskii
c220ea73ff src/xdisp.c: Fix commentary of display_count_lines. 2013-02-08 16:27:04 +02:00
Glenn Morris
4d34e0a7bf Regenerate AUTHORS and ldefs-boot.el 2013-02-07 00:03:47 -08:00
Glenn Morris
a8e4d516cc ChangeLog author fix 2013-02-06 23:40:58 -08:00
Bastien Guerry
d351707783 Merge Org 7.9.3e (commit b07a9bb). 2013-02-07 08:11:59 +01:00
Glenn Morris
e364bc673c Auto-commit of generated files. 2013-02-07 01:16:17 -05:00
Glenn Morris
4e0b84797f Bump version number to 24.2.93 2013-02-06 22:15:20 -08:00
Gabor Vida
17d14f7e29 * auth-source.el (auth-source-format-prompt): Don't get confused by any "\"
in replacement text.

Fixes: debbugs:13637
2013-02-06 20:53:26 -05:00