Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr). | Paul Eggert | 2011-06-18 | 2 | -1/+8 |
| | | | | | | This didn't break anything, but it didn't help either. It's confusing to put a bogus integer in a place where the actual value does not matter. | ||||
* | * lisp.h (XSET) [USE_LISP_UNION_TYPE]: Use uintptr_t and intptr_t, | Paul Eggert | 2011-06-18 | 2 | -3/+6 |
| | | | | | not EMACS_UINT and EMACS_INT, when converting pointer to integer. This avoids a GCC warning when WIDE_EMACS_INT. | ||||
* | * lisp.h (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT. | Paul Eggert | 2011-06-18 | 2 | -1/+4 |
| | | | | | We prefer signed types, and the value cannot exceed the EMACS_INT range anyway (because otherwise the length would not be representable). | ||||
* | * lisp.h (union Lisp_Object.i): EMACS_INT, not EMACS_UINT. | Paul Eggert | 2011-06-18 | 2 | -2/+6 |
| | | | | | This is for consistency with the ordinary, non-USE_LISP_UNION_TYPE, implementation. | ||||
* | * indent.c (Fcompute_motion): Don't assume hscroll and tab offset fit in int. | Paul Eggert | 2011-06-18 | 2 | -1/+2 |
| | |||||
* | * insdel.c: Omit unnecessary forward decls, to simplify future changes. | Paul Eggert | 2011-06-18 | 2 | -7/+2 |
| | |||||
* | * indent.c (sane_tab_width): New function. | Paul Eggert | 2011-06-18 | 2 | -19/+19 |
| | | | | | (current_column, scan_for_column, Findent_to, position_indentation) (compute_motion): Use it. This is just for clarity. | ||||
* | * image.c (xbm_image_p): Don't assume stated width and height fit in int. | Paul Eggert | 2011-06-18 | 2 | -2/+4 |
| | |||||
* | * lisp.h (lint_assume): New macro. | Paul Eggert | 2011-06-18 | 4 | -1/+17 |
| | | | | | * composite.c (composition_gstring_put_cache): * ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0. | ||||
* | * fns.c (Ffillarray): Don't shadow a local. | Paul Eggert | 2011-06-18 | 1 | -2/+3 |
| | |||||
* | * editfns.c: Omit unnecessary forward decls, to simplify future changes. | Paul Eggert | 2011-06-18 | 2 | -14/+2 |
| | |||||
* | * ftfont.c (ftfont_shape_by_flt): Use signed integers for lengths. | Paul Eggert | 2011-06-18 | 2 | -2/+4 |
| | |||||
* | * font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'. | Paul Eggert | 2011-06-18 | 2 | -1/+3 |
| | |||||
* | * fns.c (mapcar1): Declare byte as byte, for clarity. | Paul Eggert | 2011-06-18 | 2 | -1/+2 |
| | |||||
* | * fns.c (Ffillarray): Use same idx as rest of code here. | Paul Eggert | 2011-06-18 | 1 | -3/+2 |
| | |||||
* | * fns.c: Check that character arg fits in 'int'. | Paul Eggert | 2011-06-18 | 2 | -3/+4 |
| | |||||
* | * fns.c: Don't assume string byte-length fits in 'int'. | Paul Eggert | 2011-06-18 | 2 | -1/+2 |
| | |||||
* | * fns.c: Use much-faster test for byte-length change. | Paul Eggert | 2011-06-18 | 2 | -9/+6 |
| | |||||
* | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. | Paul Eggert | 2011-06-18 | 2 | -10/+10 |
| | |||||
* | * alloc.c (Fmake_bool_vector): Avoid unnecessary multiplication. | Paul Eggert | 2011-06-18 | 2 | -5/+9 |
| | |||||
* | * fns.c (concat): Catch string overflow earlier. | Paul Eggert | 2011-06-18 | 2 | -2/+5 |
| | | | | Do not rely on integer wraparound. | ||||
* | * dispextern.h (struct it.overlay_strings_charpos): EMACS_INT, not int. | Paul Eggert | 2011-06-17 | 2 | -1/+5 |
| | |||||
* | * dispextern.h (struct it.selective): Now EMACS_INT, not int. | Paul Eggert | 2011-06-17 | 3 | -5/+12 |
| | | | | | | | * xdisp.c (forward_to_next_line_start) (back_to_previous_visible_line_start) (reseat_at_next_visible_line_start, next_element_from_buffer): Don't arbitrarily truncate the value of 'selective' to int. | ||||
* | * xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0. | Paul Eggert | 2011-06-17 | 2 | -1/+3 |
| | |||||
* | * composite.c (get_composition_id, composition_gstring_put_cache): Use ↵ | Paul Eggert | 2011-06-17 | 2 | -3/+5 |
| | | | | | | EMACS_INT, not EMACS_UINT, for indexes. | ||||
* | * composite.c: Don't truncate sizes to 'int'. | Paul Eggert | 2011-06-17 | 2 | -4/+7 |
| | | | | | (composition_gstring_p, composition_reseat_it) (composition_adjust_point): Use EMACS_INT, not int. | ||||
* | * category.h (CATEGORY_SET_P): Remove unnecessary cast to EMACS_INT. | Paul Eggert | 2011-06-17 | 2 | -1/+3 |
| | |||||
* | * buffer.c: Include <verify.h>. | Paul Eggert | 2011-06-17 | 2 | -2/+6 |
| | | | | (init_buffer_once): Check at compile-time, not run-time. | ||||
* | * buffer.c (record_overlay_string): Check for size-calculation overflow. | Paul Eggert | 2011-06-17 | 2 | -4/+10 |
| | | | | (struct sortstrlist.size, struct sortlist.used): Don't truncate size to int. | ||||
* | * buffer.c (struct sortstr.size, record_overlay_string): Don't truncate size ↵ | Paul Eggert | 2011-06-17 | 2 | -2/+4 |
| | | | | to int. | ||||
* | * buffer.c (compare_overlays, cmp_for_strings): Avoid subtraction overflow. | Paul Eggert | 2011-06-17 | 2 | -5/+6 |
| | |||||
* | * buffer.c (struct sortstr.priority): Now EMACS_INT, not int. | Paul Eggert | 2011-06-17 | 2 | -2/+3 |
| | |||||
* | * buffer.c (struct sortvec.priority): Now EMACS_INT, not int. | Paul Eggert | 2011-06-17 | 2 | -2/+6 |
| | |||||
* | Fix two typos in same-window-p. | Martin Rudalics | 2011-06-17 | 2 | -2/+7 |
| | | | | | * window.el (same-window-p): Fix two typos introduced when adding with-no-warnings. | ||||
* | * m4/lstat.m4: Merge from gnulib (Bug#8878). | Paul Eggert | 2011-06-16 | 2 | -2/+6 |
| | |||||
* | * lisp.h: Include <limits.h>, for INT_MAX, LONG_MAX, LLONG_MAX. | Paul Eggert | 2011-06-16 | 2 | -0/+5 |
| | | | | | Without this, prin1 mishandles Lisp_Misc_Save_Value printing on hosts with pre-C99 libraries, because pD is wrongly defined to "t". | ||||
* | Improve buffer-overflow checking (Bug#8873). | Paul Eggert | 2011-06-16 | 6 | -57/+60 |
|\ | |||||
| * | Merge from trunk. | Paul Eggert | 2011-06-16 | 8 | -303/+454 |
| |\ | |/ |/| | |||||
* | | configure.in: Try to determine CRT_DIR automatically when using gcc | Miles Bader | 2011-06-17 | 2 | -0/+20 |
| | | |||||
* | | Have enlarge-/shrink-window not report errors in most cases (bug#8862). | Martin Rudalics | 2011-06-16 | 2 | -3/+27 |
| | | | | | | | | | | * window.el (enlarge-window, shrink-window): Don't report an error when the window can't be resized as requested (Bug#8862). | ||||
* | | Auto-commit of generated files. | Glenn Morris | 2011-06-16 | 2 | -259/+217 |
| | | |||||
* | | Never ever pop up a new frame in noninteractive mode (bug#8857). | Martin Rudalics | 2011-06-16 | 2 | -3/+8 |
| | | | | | | | | | | | | | | (display-buffer): Don't check noninteractive when calling display-buffer-pop-up-frame. (display-buffer-pop-up-frame): Never pop up a frame in noninteractive mode (Bug#8857). | ||||
* | | Fix doc-strings of switch-to-buffer family functions (bug#8875). | Martin Rudalics | 2011-06-16 | 2 | -8/+12 |
| | | | | | | | | | | | | | | (switch-to-buffer-same-frame, switch-to-buffer-other-window) (switch-to-buffer-other-window-same-frame) (switch-to-buffer-other-frame): Fix doc-strings. Reported by Drew Adams (Bug#8875). | ||||
* | | Improve cohabitation of pop-up-frames and second argument of display-buffer ↵ | Martin Rudalics | 2011-06-16 | 2 | -18/+22 |
| | | | | | | | | | | | | | | | | (bug#8865). * window.el (display-buffer-normalize-specifiers-1): Respect current value of pop-up-frames for most reasonable values of second argument of display-buffer (Bug#8865). | ||||
* | | Merge changes made in Gnus trunk. | Teodor Zlatanov | 2011-06-16 | 2 | -13/+149 |
| | | | | | | | | | | | | | | | | | | auth-source.el (auth-source-save-secrets): New variable to control if secret tokens should be saved encrypted. (auth-source-netrc-parse, auth-source-netrc-search): Pass the file name to `auth-source-netrc-normalize'. (with-auth-source-epa-overrides): Add convenience macro. Don't depend on the EPA variables being defined. (auth-source-epa-make-gpg-token): Convert text to a "gpg:" token. (auth-source-netrc-normalize): Convert "gpg:" tokens back to text in the lexical-let closure. (auth-source-netrc-create): Create "gpg:" tokens according to `auth-source-save-secrets'. | ||||
| * | Improve buffer-overflow checking. | Paul Eggert | 2011-06-16 | 3 | -36/+19 |
| | | | | | | | | | | | | | | | | | | | | | | * fileio.c (Finsert_file_contents): * insdel.c (insert_from_buffer_1, replace_range, replace_range_2): Remove the old (too-loose) buffer overflow checks. They weren't needed, since make_gap checks for buffer overflow. * insdel.c (make_gap_larger): Catch buffer overflows that were missed. The old code merely checked for Emacs fixnum overflow, and relied on undefined (wraparound) behavior. The new code avoids undefined behavior, and also checks for ptrdiff_t and/or size_t overflow. | ||||
| * | * editfns.c: Tune. Don't use wider integers than needed. Don't use alloca. | Paul Eggert | 2011-06-16 | 2 | -13/+10 |
| | | | | | | | | Use a bigger 'string' buffer. Rewrite to avoid 'n > 0' test. | ||||
| * | * editfns.c (Finsert_char): Don't dump core with very negative counts. | Paul Eggert | 2011-06-16 | 2 | -2/+4 |
| | | |||||
| * | * insdel.c (replace_range): Fix buf overflow when insbytes < outgoing. | Paul Eggert | 2011-06-15 | 2 | -4/+6 |
| | | |||||
| * | * insdel.c, lisp.h (buffer_overflow): New function. | Paul Eggert | 2011-06-15 | 5 | -7/+20 |
| | | | | | | | | | | | | | | (insert_from_buffer_1, replace_range, replace_range_2): * insdel.c (make_gap_larger): * editfns.c (Finsert_char): * fileio.c (Finsert_file_contents): Use it, to normalize wording. |