1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 15:52:00 -08:00
Commit graph

33855 commits

Author SHA1 Message Date
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
Glenn Morris
1a359750bb * src/keyboard.c (input-decode-map, key-translation-map): Doc fixes. 2013-02-12 20:26:43 -08: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
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
Eli Zaretskii
c220ea73ff src/xdisp.c: Fix commentary of display_count_lines. 2013-02-08 16:27:04 +02:00
Glenn Morris
efad91eca2 ChangeLog date fix (do not merge to trunk) 2013-02-05 20:37:28 -08:00
Daniel Colascione
b8f7436616 Backport fix for execvp issue from trunk 2013-02-05 15:52:03 -08:00
Eli Zaretskii
e7c3fb0624 Make sure program names are encoded before using them to invoke subprocesses.
src/callproc.c (Fcall_process): Make sure program name in PATH and
 new_argv[0] is encoded, if needed.  Otherwise, un-encoded string
 is passed to exec/spawnve, which fails unless the file-name
 encoding is UTF-8.
2013-02-01 12:15:36 +02:00
Eli Zaretskii
18a80473ed w32proc.c (sys_spawnve): Initialize escape_char.
src/w32proc.c (sys_spawnve): Make sure escape_char is initialized,
 even if w32-quote-process-args is nil.
2013-02-01 11:23:23 +02:00
Eli Zaretskii
224f4ec129 Tentative fix for bug #13546 with failure to save files on Windows.
src/w32.c (sys_open): Zero out the flags for the new file descriptor.
 (sys_close): Zero out the flags for the file descriptor before
 closing it.
2013-01-27 10:04:16 +02:00
Eli Zaretskii
806fed21f1 Fix bug #13553 with usage of IS_DIRECTORY_SEP on MS-Windows under DBCS.
src/w32.c (parse_root, get_volume_info, readdir, read_unc_volume)
 (logon_network_drive, stat_worker, symlink, chase_symlinks): Use
 CharNextExA and CharPrevExA to iterate over file names encoded in
 DBCS.
2013-01-26 14:49:34 +02:00
Eli Zaretskii
26854e9c9e Use file-name-coding-system when decoding symlinks on MS-Windows.
src/w32.c (readlink): Use the current file-name-coding-system, not the ANSI
 codepage, to decode and handle targets of symlinks.
2013-01-25 16:47:37 +02:00
Eli Zaretskii
6ee4509abf Support MS-Windows file names encoded in multibyte encodings.
src/w32.c (w32_get_long_filename, init_environment, readlink):
 Support file names encoded in DBCS codepages.
2013-01-25 16:34:26 +02:00
Eli Zaretskii
6d2851de77 Fix bug #13515 with processing DBCS file names on MS-Windows.
src/w32.c (max_filename_mbslen): New function.
 (normalize_filename, readdir): Use it to detect locales where ANSI
 encoding of file names uses a double-byte character set (DBCS).
 If a DBCS encoding is used, advance by characters using
 CharNextExA, instead of incrementing a 'char *' pointer.  Use
 _mbslwr instead of _strlwr.
2013-01-23 18:11:04 +02:00
Eli Zaretskii
81abbb9544 Fix bug #13065 with file selector dialog on Windows 7.
src/w32heap.c (allocate_heap) [!_WIN64]: Decrease the initial
 request of memory reservation to 1.7GB.
2013-01-22 15:30:17 +02:00
Andreas Schwab
ba14c607ba Fixes: debbugs:13505
* src/coding.c (detect_coding_iso_2022): Move back mis-reordered code
at check_extra_latin label.
2013-01-20 23:59:47 +01:00
Glenn Morris
085d34c46a * src/fns.c (Frandom): Doc fix. 2013-01-16 21:05:16 -05:00
Jan Djärv
2e7a189249 Fix spelling error. 2013-01-13 20:36:05 +01:00
Jan Djärv
b826986f36 * nsfont.m (LCD_SMOOTHING_MARGIN): New define.
(nsfont_draw): Remove disabling of LCD smoothing.
(ns_glyph_metrics): Add LCD_SMOOTHING_MARGIN to bearings to fix
Bug#11484 with LCD smooting on.
2013-01-13 15:29:22 +01:00
Glenn Morris
f5e9cbd447 ChangeLog fix (no need to merge to trunk) 2013-01-12 11:31:25 -08:00
Jan Djärv
38693137f6 * gtkutil.c (xg_initialize): Backport from trunk.
Add ifdef HAVE_FREETYPE around x_last_font_name.

Fixes: debbugs:13403
2013-01-11 02:22:49 +01:00
Paul Eggert
45b7bfdd54 Backport typo fix from trunk, for AIX.
* eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.
This follows up on the 2012-09-29 patch that removed indirection
for the 'function' field.  Reported by Sergey Vinokurov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>.

Fixes: debbugs:13408
2013-01-10 23:51:25 -08:00
Paul Eggert
b6f960a0ea Fix SIGDANGER handlers, for AIX.
* sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]:
Move handlers here from emacs.c; they were out of place.

Fixes: debbugs:13408
2013-01-10 23:47:57 -08:00
Eli Zaretskii
b630991b73 Improve display of glyph matrix by dump-glyph-matrix.
src/xdisp.c (dump_glyph): Align glyph data better.  Use "pD" instead
 of a non-portable "t" to print ptrdiff_t values.  Allow up to 9
 digits for buffer positions, before misalignment starts.  Display
 "0" for integer "object" field.
 (dump_glyph_row): Adapt the header line to changes in dump_glyph.
 Display the newline glyph more unambiguously.
2013-01-05 15:37:36 +02:00
YAMAMOTO Mitsuharu
4240dd3cef Don't use previous underline thickness or position if previous underline type is underwave. 2013-01-04 11:05:33 +09:00
YAMAMOTO Mitsuharu
f032a31830 Make underwave look more triangular and also degrade gracefully for small fonts. (Bug#13000) 2013-01-04 10:58:07 +09:00
Glenn Morris
f0ddbf7b7f Add 2013 to more copyright years 2013-01-02 17:35:49 -08:00
Paul Eggert
ab422c4d68 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Glenn Morris
08f592198a * src/keymap.c (Fkey_description): Doc fix.
Fixes: debbugs:13323
2012-12-31 12:55:08 -08:00
Paul Eggert
fee0bd5f32 Use URLs, not Boston addresses, in copyright notices. 2012-12-31 07:34:32 -08:00
Andreas Schwab
2550c6e404 Properly configure GNUstep libraries
* configure.ac (TEMACS_LDFLAGS2): Don't define.
(LIBS_GNUSTEP): Set for GNUstep and substitute.
(LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep.

* src/Makefile.in (TEMACS_LDFLAGS2): Remove.
(LIBS_GNUSTEP): Define.
(LIBES): Add $(LIBS_GNUSTEP).
(temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
2012-12-29 20:37:32 +01:00
Eli Zaretskii
d6cae7321e More improvements in 'struct glyph' comments. 2012-12-29 11:24:13 +02:00
Eli Zaretskii
7a3a74936f Fix bug #13277 with TTY cursor positioning in a line with overlay arrow.
src/xdisp.c (set_cursor_from_row): Don't confuse a truncation or
 continuation glyph on a TTY with an indication of an empty line.
 src/dispextern.h: Improve commentary to glyph->charpos and
 glyph->object.
2012-12-27 19:29:14 +02:00
Glenn Morris
1ab0c851fc Document cygwin-convert-file-name-{to|from}-windows
* doc/lispref/files.texi (File Names): Mention Cygwin conversion functions.

* src/cygw32.c (Fcygwin_convert_file_name_to_windows)
(Fcygwin_convert_file_name_from_windows): Doc fixes.

* etc/NEWS: Related markup.
2012-12-26 23:55:14 -08:00
Eli Zaretskii
f5c81c80c1 Fix bug #13262 with crashes in completion on MS-Windows with non-ASCII filenames.
src/fileio.c (file_name_as_directory, directory_file_name): Accept
 an additional argument MULTIBYTE to indicate whether the input C
 came from a multibyte or a unibyte Lisp string; all callers
 adjusted.  Don't assume the input string is always multibyte.
 (Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly:
 don't ENCODE_FILE them, and return a unibyte string if the input
 was unibyte.
 (Fexpand_file_name): Don't mix unibyte with multibyte strings, and
 don't assume the input strings will always be multibyte.  If the
 input strings are multibyte, decode strings obtained from C
 library functions.
2012-12-24 18:15:13 +02:00
Martin Rudalics
94900bfe14 Reword doc and doc-string of select-window (Bug#13248).
* window.c (Fselect_window): Reword doc-string.
* windows.texi (Selecting Windows): Reword description of
select-window.
2012-12-22 11:12:52 +01:00
Eli Zaretskii
bb085aed95 src/fileio.c (Finsert_file_contents): Doc fix. 2012-12-21 13:52:18 +02:00
Eli Zaretskii
7efa3fb357 Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.
src/w32proc.c (new_child, delete_child, find_child_pid): For a
 subprocess, consider its slot being in use as long as its process
 handle (procinfo.hProcess) is not NULL.  This avoids reusing the
 slot when a new process is started immediately after killing
 another one, without waiting enough time for the first process to
 be reaped and resources allocated for it be orderly freed.
 Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
2012-12-21 13:21:35 +02:00
Chong Yidong
c1f02afadf * buffer.c (Fset_buffer_major_mode): Doc fix.
Fixes: debbugs:13231
2012-12-21 16:04:27 +08:00
Chong Yidong
5bec25eb1e * fns.c (Fcompare_strings): Doc fix.
* strings.texi (Text Comparison): Doc fix for compare-strings.

Fixes: debbugs:13081
2012-12-15 21:44:41 +08:00
Kenichi Handa
68abf86780 search.c (search_buffer): Improve a comment. 2012-12-15 22:04:50 +09:00
Kenichi Handa
e79d60fede search.c (search_buffer): Improve a comment. 2012-12-15 21:32:23 +09:00
Eli Zaretskii
92340ec753 Fix bug #12621 with crashes on MS-Windows in LookupAccountSid.
src/w32.c (get_name_and_id): Always pass NULL as the first argument
 of lookup_account_sid.  Avoids crashes with UNC file names that
 refer to DFS domains, not to specific machine names.  (Bug#12621)
 Remove now unused argument FNAME; all callers changed.
 (get_file_owner_and_group): Remove now unused argument FNAME; all
 callers changed.
2012-12-14 11:09:36 +02:00
Eli Zaretskii
e8c6e965f3 Fix bug #13084 with crashes during search.
src/search.c (search_buffer): Check the inverse translations of each
 character in pattern when the buffer being searched is unibyte.
2012-12-11 17:30:45 +02:00
Paul Eggert
645c6a30a7 * fileio.c (Fverify_visited_file_modtime): Don't read uninitialized st.st_size. 2012-12-10 15:16:28 -08:00
Paul Eggert
184246dffc * fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
files, fixing a regression from 24.2.
2012-12-10 13:58:01 -08:00