[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 272693c: Make xwidget-event-handler more resilient
From: |
Lars Ingebrigtsen |
Subject: |
master 272693c: Make xwidget-event-handler more resilient |
Date: |
Mon, 8 Nov 2021 23:48:36 -0500 (EST) |
branch: master
commit 272693c6fd2d1a6546d5362c30dc8c68247f44de
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make xwidget-event-handler more resilient
* lisp/xwidget.el (xwidget-event-handler): Don't try to call the
callback if it hasn't been defined.
---
lisp/xwidget.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 91d02e8..dc1ed2d 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -348,7 +348,8 @@ If N is omitted or nil, scroll backwards by one char."
((xwidget-event-type (nth 1 last-input-event))
(xwidget (nth 2 last-input-event))
(xwidget-callback (xwidget-get xwidget 'callback)))
- (funcall xwidget-callback xwidget xwidget-event-type)))
+ (when xwidget-callback
+ (funcall xwidget-callback xwidget xwidget-event-type))))
(defun xwidget-webkit-callback (xwidget xwidget-event-type)
"Callback for xwidgets.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 272693c: Make xwidget-event-handler more resilient,
Lars Ingebrigtsen <=