From: Po Lu Date: Wed, 10 Nov 2021 07:47:56 +0000 (+0800) Subject: Remove obsolete limitation X-Git-Tag: emacs-29.0.90~3671^2~13 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32d1a735ce6f57fc6052998adf56cf51c12e6aae;p=emacs.git Remove obsolete limitation * src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as REL-POS, to be consistent with docstring. --- diff --git a/src/xwidget.c b/src/xwidget.c index 034989b339c..f303ed24264 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -1740,9 +1740,7 @@ REL-POSth element around the current spot in the load history. */) (Lisp_Object xwidget, Lisp_Object rel_pos) { WEBKIT_FN_INIT (); - /* Should be one of -1, 0, 1 */ - if (XFIXNUM (rel_pos) < -1 || XFIXNUM (rel_pos) > 1) - args_out_of_range_3 (rel_pos, make_fixnum (-1), make_fixnum (1)); + CHECK_FIXNUM (rel_pos); #ifdef USE_GTK WebKitWebView *wkwv = WEBKIT_WEB_VIEW (xw->widget_osr);