Commit cf402f3f authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down

at the beginning of an empty buffer.
parent 7aa5b22f
2006-06-09 Eli Zaretskii <eliz@gnu.org>
* window.c (window_scroll_pixel_based): Signal "Beginning of
buffer" when scroll-down at the beginning of an empty buffer.
2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
   
* macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
......
...@@ -4895,6 +4895,8 @@ window_scroll_pixel_based (window, n, whole, noerror) ...@@ -4895,6 +4895,8 @@ window_scroll_pixel_based (window, n, whole, noerror)
} }
else if (noerror) else if (noerror)
return; return;
else if (n < 0) /* could happen with empty buffers */
Fsignal (Qbeginning_of_buffer, Qnil);
else else
Fsignal (Qend_of_buffer, Qnil); Fsignal (Qend_of_buffer, Qnil);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment