1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00

* xselect.c (Fx_get_cut_buffer): Correct check for buf_num in

range.

	* xselect.c (Fx_get_cut_buffer, Fx_set_cut_buffer): Fix error
	message format; use NUM_CUT_BUFFERS instead of literal 7.
This commit is contained in:
Jim Blandy 1992-11-16 01:04:24 +00:00
parent b4f5687cd4
commit 8e6bef18a1

View File

@ -808,8 +808,8 @@ and use selections for the serious work.")
buf_num = XINT (n);
}
if (buf_num < 0 && buf_num > NUM_CUT_BUFFERS)
error ("cut buffer numbers must be from zero to seven.");
if (buf_num < 0 || buf_num >= NUM_CUT_BUFFERS)
error ("cut buffer numbers must be from zero to seven");
{
Lisp_Object value;
@ -859,8 +859,8 @@ and use selections for the serious work.")
buf_num = XINT (n);
if (buf_num < 0 || buf_num > 7)
error ("cut buffer numbers must be from zero to seven.");
if (buf_num < 0 || buf_num >= NUM_CUT_BUFFERS)
error ("cut buffer numbers must be from zero to seven");
BLOCK_INPUT;