• Paul Eggert's avatar
    Remove fixnum restriction on some display vars · dfed333b
    Paul Eggert authored
    This is a minor patch to remove some fixnum restrictions.
    Many more such patches are needed, but one thing at a time.
    * doc/emacs/custom.texi (Examining): Update fill-column example.
    * src/buffer.c (fill-column, left-margin, tab-width)
    (buffer-saved-size, left-margin-width, right-margin-width)
    (left-fringe-width, right-fringe-width, scroll-bar-width)
    (scroll-bar-height, buffer-display-count):
    Allow any integer; do not restrict to fixnums.
    * src/character.h (SANE_TAB_WIDTH): Do not assume tab_width
    is a nonnegative fixnum.
    (sanitize_tab_width): Take a Lisp_Object integer, not an
    EMACS_INT.  Only use changed.
    * src/data.c (store_symval_forwarding): Remove unnecessary
    SYMBOLP since the predicate (e.g., Qintegerp) is always a
    symbol (leave the test in as an eassert).  Avoid assignments
    inside if-conditions.
    * src/fileio.c (Fdo_auto_save): Do not assume
    buffer-saved-size is a fixnum.  Avoid undefined behavior
    on EMACS_INT overflow by multiplying a fixnum by at most 4,
    not by at most 13.
    * src/window.c (set_window_buffer): When buffer-display-count
    is too large for a fixnum, make it a bignum.
    * src/xdisp.c (FILL_COLUMN_INDICATOR_NEEDED): Remove macro, ...
    (fill_column_indicator_column): ... replacing with this new function.
    All uses changed.  The function is a bit pickier, to prevent
    problems with non-character fixnums and columns out of range
    for int, and to remove the assumption that integers are in
    fixnum range.
    (append_space_for_newline, extend_face_to_end_of_line):
    Avoid undefined behavior with signed integer overflow.
    Simplify.
    dfed333b
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...