]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove obsolete limitation
authorPo Lu <luangruo@yahoo.com>
Wed, 10 Nov 2021 07:47:56 +0000 (15:47 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 10 Nov 2021 07:47:56 +0000 (15:47 +0800)
* src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as
REL-POS, to be consistent with docstring.

src/xwidget.c

index 034989b339c5e554034daace73c9897ef6dfddaf..f303ed242644fed01e8190d397fa801ddde20ab9 100644 (file)
@@ -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);