[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 32d1a73: Remove obsolete limitation
From: |
Po Lu |
Subject: |
master 32d1a73: Remove obsolete limitation |
Date: |
Wed, 10 Nov 2021 02:48:43 -0500 (EST) |
branch: master
commit 32d1a735ce6f57fc6052998adf56cf51c12e6aae
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Remove obsolete limitation
* src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as
REL-POS, to be consistent with docstring.
---
src/xwidget.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/xwidget.c b/src/xwidget.c
index 034989b..f303ed2 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 32d1a73: Remove obsolete limitation,
Po Lu <=