1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-16 16:20:40 -08:00
Commit graph

32099 commits

Author SHA1 Message Date
Paul Eggert
38532ce6ec * alloc.c: Do not assume sizeof (size_t) is a multiple of 8
when debugging.
(alignof, XMALLOC_BASE_ALIGNMENT, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): New macros.
(XMALLOC_OVERRUN_CHECK_OVERHEAD, xmalloc_put_size, xmalloc_get_size)
(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
Replace uses of sizeof (size_t) with XMALLOC_OVERRUN_SIZE_SIZE.
2011-09-29 00:44:58 -07:00
Paul Eggert
b13f71e2dd Merge from trunk. 2011-09-28 13:07:17 -07:00
Eli Zaretskii
fbcaa2f388 Fix bug #9624 with crashes in Muse mode.
src/xdisp.c (compute_display_string_end): If there's no display
 string at CHARPOS, return -1.
 src/bidi.c (bidi_fetch_char): When compute_display_string_end
 returns a negative value, treat the character as a normal
 character not covered by a display string.
2011-09-28 17:37:27 +03:00
Juanma Barranquero
a239d4e9c0 Fix typos. 2011-09-28 02:59:28 +02:00
Eli Zaretskii
88652fd58c Fix bug #9610 with slow cursor motion in buffers with invisible text.
src/xdisp.c (handle_invisible_prop): If invisible text ends on a
 newline, reseat the iterator instead of bidi-iterating there one
 character at a time.  (Bug#9610)
 (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past
 TO_CHARPOS if the bidi iterator is at base embedding level.
2011-09-27 20:18:31 +03:00
Paul Eggert
7b09a37a89 * coding.c (Ffind_operation_coding_system): Avoid subscript error. 2011-09-27 09:31:12 -07:00
Paul Eggert
eee1346555 Merge from trunk. 2011-09-27 09:04:56 -07:00
Paul Eggert
43ad2e9af4 * xdisp.c (handle_display_spec, display_prop_string_p): Use ptrdiff_t, not int. 2011-09-27 09:03:48 -07:00
Paul Eggert
3460fdb799 * print.c (print_object) [0]: Fix printf format int width. 2011-09-27 09:02:48 -07:00
Paul Eggert
17fdb2228b * nsselect.m (clean_local_selection_data): Use ptrdiff_t, not int. 2011-09-27 09:02:05 -07:00
Paul Eggert
88cc3dabc9 * keymap.c.c (Fdefine_key): Use ptrdiff_t, not int. 2011-09-27 09:00:55 -07:00
Paul Eggert
54e1617f5c * dispnew.c (Fframe_of_buffer_changed_p): Use ptrdiff_t, not int. 2011-09-27 09:00:12 -07:00
Paul Eggert
90d8445b57 * data.c (Faref): Use ptrdiff_t, not int. 2011-09-27 08:59:06 -07:00
Paul Eggert
2c6a9faaae * coding.c: Integer and buffer overflow fixes.
(Funencodable_char_position, Fcheck_coding_systems_region)
(get_translation, handle_composition_annotation, consume_chars):
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
(consume_chars): Rewrite to avoid calculating an address outside buffer.
2011-09-27 08:58:20 -07:00
Paul Eggert
c801946a92 * ccl.c (ccl_driver, Fregister_code_conversion_map): Check that Vcode_version_map_vector is a vector. 2011-09-27 08:56:04 -07:00
Andreas Schwab
ed497dd4ec * lread.c (readevalloop): Use correct code for NBSP.
(read1): Likewise.  (Bug#9608)
2011-09-27 10:37:07 +02:00
Paul Eggert
a63df9262e * eval.c (Fprog2): Simplify and allow C tail recursion. 2011-09-26 08:51:04 -07:00
Paul Eggert
125b3835e5 * floatfns.c (Fexpt): Avoid undefined signed * signed overflow. 2011-09-26 08:27:22 -07:00
Paul Eggert
c96e5d6aa7 * cmds.c (internal_self_insert): Fix EMACS_INT type typo. 2011-09-26 08:25:04 -07:00
Paul Eggert
8de9005d3c Merge from trunk. 2011-09-25 22:52:31 -07:00
Paul Eggert
856bbc8152 * eval.c (Fprog1, Fprog2): Don't assume list length fits in int. Simplify. 2011-09-25 22:50:37 -07:00
Chong Yidong
f7d75b4bba Bump version to 24.0.90.
Regenerate AUTHORS and ldefs-boot.el.
2011-09-25 23:20:03 -04:00
Paul Eggert
60b5d3ca2b Merge from trunk. 2011-09-25 14:06:35 -07:00
Paul Eggert
1a2f43d0db * lisp.h (XSETSUBR): Revert, as the old version is needed if debugging is enabled. 2011-09-25 14:04:04 -07:00
Paul Eggert
b62b53e8e9 * puresize.h (PURESIZE_RATIO): Shrink this to 8/6 on 32-bit hosts
configured --with-wide-int.
2011-09-25 14:03:13 -07:00
Michael Albinus
b2bf61aa89 * dbusbind.c (Fdbus_register_signal): When service is not
registered, use nil in Vdbus_registered_objects_table.  (Bug#9581)
2011-09-25 18:00:02 +02:00
Paul Eggert
5895d7b924 Merge from trunk. 2011-09-24 20:43:22 -07:00
Glenn Morris
32bbb17c0e * src/buffer.c (truncate-lines): Doc fix. 2011-09-24 19:30:31 -07:00
Paul Eggert
47664caabe * coding.c (ENCODE_ISO_CHARACTER): Use unsigned, not int,
to store the unsigned result of ENCODE_CHAR.
2011-09-24 18:28:59 -07:00
Paul Eggert
60ad3eab6f * charset.h (DECODE_CHAR): Return int, not unsigned;
this is what was intended anyway, and it avoids undefined behavior.
(CHARSET_OFFSET): Remove unused macro, instead of fixing its
integer-overflow issues.
(ENCODE_CHAR): Return unsigned on all hosts, not just on 32-bit hosts.
Formerly, it returned EMACS_INT on 64-bit hosts in the common case
where the argument is EMACS_INT, and this behavior is not intended.
2011-09-24 18:27:19 -07:00
Paul Eggert
3c7649c185 * charset.c: Integer overflow fixes.
Don't rely on undefined behavior with signed left shift overflow.
Don't assume unsigned int fits into fixnum, or that fixnum fits
into unsigned int.  Don't require max_code to be a valid fixnum;
that's not true for gb10830 4-byte on a 32-bit host.  Allow
invalid_code to be a cons, for the same reason.  Require code_offset
to be a character.  Avoid int overflow if max_char is close
to INT_MAX.
(CODE_POINT_TO_INDEX): On 32-bit hosts, return int, not unsigned;
this is intended anyway and avoids some undefined behavior.
(load_charset_map): Pass unsigned, not int, as 2nd arg of
INDEX_TO_CODE_POINT, as that's what it expects.
(Funify_charset, encode_char): Don't stuff unsigned vals into int vars.
2011-09-24 18:22:30 -07:00
Chong Yidong
94e0933e1f Minor doc fixes for some window functions.
Minor doc fixes for switch-to-buffer, window-prev-buffers,
set-window-prev-buffers, set-window-next-buffers.
2011-09-24 18:51:36 -04:00
Glenn Morris
cddde9219f * src/minibuf.c (read_minibuf): Disable line truncation. (Bug#5715) 2011-09-24 11:29:35 -07:00
Paul Eggert
25b4bfa0d1 Fix minor problems found by static checking.
* xdisp.c (string_from_display_spec): Don't assume vecsize fits in int.
* indent.c (Fvertical_motion): Fix == vs = typo.
2011-09-24 09:31:55 -07:00
Paul Eggert
9f985e85e1 * xdisp.c (string_from_display_spec): Don't use int for vector length. 2011-09-24 09:28:25 -07:00
Paul Eggert
1260aef1ae * indent.c (Fvertical_motion): Fix == vs = typo. 2011-09-24 09:15:32 -07:00
Eli Zaretskii
6bf7006fa2 Change the default value of redisplay-dont-pause to t.
src/dispnew.c (syms_of_display) <redisplay-dont-pause>: Default
 value is now t.  Doc fix.
 doc/lispref/display.texi (Forcing Redisplay): Update the description of
 redisplay-dont-pause due to change in the default value.
 etc/NEWS: Mention the change of the default value.
2011-09-24 17:38:16 +03:00
Eli Zaretskii
e3cbd34b87 Fix vertical cursor motion when the newline is covered by a display string.
src/indent.c (Fvertical_motion): Compute and apply the overshoot
 logic when moving up, not only when moving down.  Fix the
 confusing name and values of the it_overshoot_expected variable;
 logic changes accordingly.  (Bug#9254) (Bug#9549)
 src/xdisp.c (pos_visible_p): Produce correct pixel coordinates when
 CHARPOS is covered by a display string which includes newlines.
 (move_it_vertically_backward): Avoid inflooping when START_CHARPOS
 is covered by a display string with embedded newlines.
2011-09-24 16:23:58 +03:00
Michael Albinus
a3de0cbd6d * dbusbind.c (Fdbus_register_signal): Add match rule to
Vdbus_registered_objects_table.  (Bug#9581)
(Fdbus_register_method, Vdbus_registered_objects_table): Fix
docstring.
2011-09-24 13:36:53 +02:00
Richard M. Stallman
512a289dc6 bidi.c: Whitespace changes and a few added parentheses,
to follow usual Emacs and GNU style.
2011-09-24 06:31:37 -04:00
Jim Meyering
b260039d42 do not ignore write error for any output size
The previous change was incomplete.
While it makes emacs --batch detect the vast majority of stdout
write failures, errors were still ignored whenever the output size is
k * (BUFSIZ+1) - 4.  E.g., on a system with BUFSIZ of 4096,
  $ emacs --batch --eval '(print (format "%4093d" 0))' > /dev/full \
      && echo FAIL: ignored write error
  FAIL: ignored write error
  $ emacs --batch --eval '(print (format "%20481d" 0))' > /dev/full \
      && echo FAIL: ignored write error
  FAIL: ignored write error
* emacs.c (Fkill_emacs): Also test ferror.  (Bug#9574)
2011-09-24 11:22:06 +02:00
Andreas Schwab
8eca8a7c48 * src/emacs.c (Fkill_emacs): In noninteractive mode exit
non-successfully if a write error occurred on stdout.  (Bug#9574)
2011-09-23 11:56:55 +02:00
Paul Eggert
7c85f529fd Fix ptrdiff_t/EMACS_INT confusion. 2011-09-21 16:22:29 -07:00
Paul Eggert
2972b14b55 * fontset.c (reorder_font_vector): Fix min/MIN typo. 2011-09-21 13:26:36 -07:00
Paul Eggert
17f85215fe * syntax.c (scan_words): Revamp to pacify GCC 4.6.1. 2011-09-21 13:22:36 -07:00
Paul Eggert
0b1fccc479 * search.c (wordify, Fset_match_data): Revamp to pacify GCC 4.6.1. 2011-09-21 13:22:09 -07:00
Paul Eggert
c5c18a5757 * process.c (Faccept_process_output): Fix typo in duration. 2011-09-21 13:21:07 -07:00
Paul Eggert
1ab7b8ac17 * lread.c (read_filtered_event): Use duration_to_sec_usec. 2011-09-21 13:20:36 -07:00
Paul Eggert
3b11691a6e * keymap.c (Fkey_description): Recode slightly to pacify GCC 4.6.1 x86. 2011-09-21 13:19:18 -07:00
Paul Eggert
537775e84d * ftfont.c (ftfont_shape_by_flt): Add lint_assume to pacify GCC 4.6.1 x86-64. 2011-09-21 13:17:56 -07:00