# HG changeset patch # User Eli Zaretskii # Date 1149843874 0 # Node ID 1d2d52a045200d02cd41fa0907c8511190562987 # Parent 6cfe63e5da1452d5568a25489c54fec8eb0b27fb (window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down at the beginning of an empty buffer. diff -r 6cfe63e5da14 -r 1d2d52a04520 src/window.c --- a/src/window.c Fri Jun 09 04:09:30 2006 +0000 +++ b/src/window.c Fri Jun 09 09:04:34 2006 +0000 @@ -4895,6 +4895,8 @@ } else if (noerror) return; + else if (n < 0) /* could happen with empty buffers */ + Fsignal (Qbeginning_of_buffer, Qnil); else Fsignal (Qend_of_buffer, Qnil); }