summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/ring.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-03 23:15:31 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-03 23:15:31 -0700
commit24a212eb232e081c12f6b52429757657f0528e66 (patch)
tree47ad3a7628ff477f5d7e957b82f0a05ecb5ef7ab /lisp/emacs-lisp/ring.el
parentdea7f1e5a400cfa9a42eef08be86cdc0992660b5 (diff)
downloademacs-24a212eb232e081c12f6b52429757657f0528e66.tar.gz
emacs-24a212eb232e081c12f6b52429757657f0528e66.tar.bz2
emacs-24a212eb232e081c12f6b52429757657f0528e66.zip
Avoid weird behavior with large horizontal scrolls.
Without this change, for example, large hscroll values would mess up Emacs's display on Fedora 15 x86, presumably due to overflows in int calculations in the display code. Also, if buffers had long lines, Emacs would freeze. * window.c (HSCROLL_MAX): Reduce to 100000, and make it visible to GDB. (set_window_hscroll): New function, containing the old guts of Fset_window_hscroll. Return the clipped value. (Fset_window_hscroll, Fscroll_left, Fscroll_right): Use it. This avoids the need to check against PTRDIFF_MAX.
Diffstat (limited to 'lisp/emacs-lisp/ring.el')
0 files changed, 0 insertions, 0 deletions