mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-19 01:10:57 -08:00
(window_scroll_pixel_based, window_scroll_line_based):
Use xsignal0.
This commit is contained in:
parent
dbfcf224ac
commit
ba96a5cfd4
1 changed files with 5 additions and 5 deletions
10
src/window.c
10
src/window.c
|
|
@ -4959,9 +4959,9 @@ 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);
|
||||
xsignal0 (Qbeginning_of_buffer);
|
||||
else
|
||||
Fsignal (Qend_of_buffer, Qnil);
|
||||
xsignal0 (Qend_of_buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -4972,7 +4972,7 @@ window_scroll_pixel_based (window, n, whole, noerror)
|
|||
else if (noerror)
|
||||
return;
|
||||
else
|
||||
Fsignal (Qbeginning_of_buffer, Qnil);
|
||||
xsignal0 (Qbeginning_of_buffer);
|
||||
}
|
||||
|
||||
/* If control gets here, then we vscrolled. */
|
||||
|
|
@ -5173,7 +5173,7 @@ window_scroll_line_based (window, n, whole, noerror)
|
|||
if (noerror)
|
||||
return;
|
||||
else
|
||||
Fsignal (Qbeginning_of_buffer, Qnil);
|
||||
xsignal0 (Qbeginning_of_buffer);
|
||||
}
|
||||
|
||||
if (pos < ZV)
|
||||
|
|
@ -5259,7 +5259,7 @@ window_scroll_line_based (window, n, whole, noerror)
|
|||
if (noerror)
|
||||
return;
|
||||
else
|
||||
Fsignal (Qend_of_buffer, Qnil);
|
||||
xsignal0 (Qend_of_buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue