(window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down
at the beginning of an empty buffer.
This commit is contained in:
parent
7aa5b22f29
commit
cf402f3fd4
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
|
||||
|
|
|
@ -4895,6 +4895,8 @@ window_scroll_pixel_based (window, n, whole, noerror)
|
|||
}
|
||||
else if (noerror)
|
||||
return;
|
||||
else if (n < 0) /* could happen with empty buffers */
|
||||
Fsignal (Qbeginning_of_buffer, Qnil);
|
||||
else
|
||||
Fsignal (Qend_of_buffer, Qnil);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue