From unknown Wed Jun 18 23:04:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24019 <24019@debbugs.gnu.org> To: bug#24019 <24019@debbugs.gnu.org> Subject: Status: 25.1.50; Allow using a custom callback with xwidget Reply-To: bug#24019 <24019@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:53 +0000 retitle 24019 25.1.50; Allow using a custom callback with xwidget reassign 24019 emacs submitter 24019 Puneeth Chaganti severity 24019 wishlist tag 24019 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 08:31:13 2016 Received: (at submit) by debbugs.gnu.org; 18 Jul 2016 12:31:13 +0000 Received: from localhost ([127.0.0.1]:55087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP7hZ-0004rV-Fw for submit@debbugs.gnu.org; Mon, 18 Jul 2016 08:31:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP7hX-0004rH-Tw for submit@debbugs.gnu.org; Mon, 18 Jul 2016 08:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP7hO-00035T-55 for submit@debbugs.gnu.org; Mon, 18 Jul 2016 08:31:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP7hO-00035J-1a for submit@debbugs.gnu.org; Mon, 18 Jul 2016 08:31:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP7hL-0007XO-MF for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 08:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP7hH-00034o-HK for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 08:30:59 -0400 Received: from muse-amuse.in ([213.239.211.233]:56732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP7hH-00034a-6L for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 08:30:55 -0400 Received: from authenticated-user (unknown [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muse-amuse.in (Postfix) with ESMTPSA id 26881B6013D for ; Mon, 18 Jul 2016 14:30:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=muse-amuse.in; s=mail; t=1468845053; bh=9cR7AiXwylrGIcPp5CKuzi3YwzsBn53ttERddeOgMls=; h=From:To:Subject:Date:From; b=XdsT3hrFzNvITxRkKMVNl3N5zam7mEOIgwFN7XA0h9y3A88ogMs0ZidvB4bZ/5b3O AZmaQxVeJ/RzzMs+8VXw1YDe8VOd+D+6TsWV5To/Fh2/QMnt8G7O6jhiCAyWDxZWlb JYetDOGkGXZ+/r3IEf7tC/FmDX783GHBWWXowXOA= Received: from authenticated-user (unknown [127.0.0.1]) Mon, 18 Jul 2016 12:30:48 -0000 From: Puneeth Chaganti To: bug-gnu-emacs@gnu.org Subject: 25.1.50; Allow using a custom callback with xwidget Date: Mon, 18 Jul 2016 18:00:48 +0530 Message-ID: <87vb03qgav.fsf@muse-amuse.in> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --=-=-= Content-Type: text/plain Hello, `xwidgets.el' seems to have some commented code that used to allow using a different callback on each xwidget. This functionality is useful to have and this is a patch that uncomments this code. I've tested the code, and it seems to work, and I'm not really sure, why this was commented in the first place. Thanks! --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Use-the-callback-set-as-widget-s-property.patch >From 63d1b53583263065edea3ee53d708693415a6057 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Mon, 18 Jul 2016 16:34:24 +0530 Subject: [PATCH 1/2] Use the callback set as widget's property Revert a commented piece of code, that allows using a different callback for each xwidget on an event, instead of a single global one. * lisp/xwidget.el (xwidget-event-handler): Use callback widget property --- lisp/xwidget.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 7a0ca8b..3434e24 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -172,12 +172,8 @@ xwidget-event-handler (let* ((xwidget-event-type (nth 1 last-input-event)) (xwidget (nth 2 last-input-event)) - ;;(xwidget-callback (xwidget-get xwidget 'callback)) - ;;TODO stopped working for some reason - ) - ;;(funcall xwidget-callback xwidget xwidget-event-type) - (message "xw callback %s" xwidget) - (funcall 'xwidget-webkit-callback xwidget xwidget-event-type))) + (xwidget-callback (xwidget-get xwidget 'callback))) + (funcall xwidget-callback xwidget xwidget-event-type))) (defun xwidget-webkit-callback (xwidget xwidget-event-type) "Callback for xwidgets. -- 2.7.4 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-Allow-specifying-the-callback-if-new-session.patch >From 095f02a5581c2c5c157ec312a64288b0c675da74 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Mon, 18 Jul 2016 17:46:19 +0530 Subject: [PATCH 2/2] Allow specifying the callback if new session This change makes it easier to create xwidgets with their callbacks that are invoked by the event handler * lisp/xwidget.el (xwidget-webkit-new-session): Optional callback arg --- lisp/xwidget.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 3434e24..0f6751e 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -416,16 +416,17 @@ xwidget-webkit-fit-width (car (window-inside-pixel-edges))) 1000)) -(defun xwidget-webkit-new-session (url) +(defun xwidget-webkit-new-session (url &optional callback) "Create a new webkit session buffer with URL." (let* ((bufname (generate-new-buffer-name "*xwidget-webkit*")) + (callback (or callback #'xwidget-webkit-callback)) xw) (setq xwidget-webkit-last-session-buffer (switch-to-buffer (get-buffer-create bufname))) (insert " 'a' adjusts the xwidget size.") (setq xw (xwidget-insert 1 'webkit bufname 1000 1000)) - (xwidget-put xw 'callback 'xwidget-webkit-callback) + (xwidget-put xw 'callback callback) (xwidget-webkit-mode) (xwidget-webkit-goto-uri (xwidget-webkit-last-session) url))) -- 2.7.4 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 28 06:28:29 2019 Received: (at control) by debbugs.gnu.org; 28 Jul 2019 10:28:29 +0000 Received: from localhost ([127.0.0.1]:45803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrgPl-0005zT-91 for submit@debbugs.gnu.org; Sun, 28 Jul 2019 06:28:29 -0400 Received: from quimby.gnus.org ([80.91.231.51]:53540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrgPi-0005zL-Fn for control@debbugs.gnu.org; Sun, 28 Jul 2019 06:28:27 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrgPf-000325-UF for control@debbugs.gnu.org; Sun, 28 Jul 2019 12:28:25 +0200 Date: Sun, 28 Jul 2019 12:28:23 +0200 Message-Id: <87h876cv20.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24019 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 24019 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24019 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 15:23:56 2020 Received: (at 24019) by debbugs.gnu.org; 20 Jan 2020 20:23:56 +0000 Received: from localhost ([127.0.0.1]:46139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itdaV-0002SH-Ny for submit@debbugs.gnu.org; Mon, 20 Jan 2020 15:23:56 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:43810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itdaS-0002Ry-Vl for 24019@debbugs.gnu.org; Mon, 20 Jan 2020 15:23:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AZE7POi1aOfZeW8UViQBM4NnC7REgsWlgRCdb7vCU2Q=; b=p82+Vt9T0SzKOopb5b+Wv3b7UF APjUvlU7rWqMw/oTBB7B8J/4lsUBzhnx8A53G0LE4OeIrAHp+2iMALxhKOSfwanU3EKHlCfHy9JeI R47UkbI22bbHnev3wlqhTvT7U+oSsXkY+C683aRqfmBUqiWom60FJ1ADJstDYqk9v0wfBWYJv6Z16 WR/lB/65CNQo8FLsuyOqROWxCvi1ZISe0Sa3glNPJ0cmAtPQZXPM8QKaQSqrVu6nB+HH9KVNFwBy8 8ne2gzXcv4reiKyy5h54RBlkXfhkktDCkA2mbeTWxQ1Ng0piRL5fFzN+cdhbfAkrcMQ9Hy+EyQ1hM 1Ne2LoJw==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:33270 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1itdaJ-000Cia-Fp; Mon, 20 Jan 2020 15:23:43 -0500 From: Stefan Kangas To: Joakim Verona Subject: Re: bug#24019: 25.1.50; Allow using a custom callback with xwidget In-Reply-To: <87vb03qgav.fsf@muse-amuse.in> (Puneeth Chaganti's message of "Mon, 18 Jul 2016 18:00:48 +0530") References: <87vb03qgav.fsf@muse-amuse.in> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Mon, 20 Jan 2020 21:23:42 +0100 Message-ID: <87a76hri5t.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24019 Cc: Puneeth Chaganti , 24019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Joakim, Puneeth Chaganti writes: > Hello, > > `xwidgets.el' seems to have some commented code that used to allow using > a different callback on each xwidget. This functionality is useful to > have and this is a patch that uncomments this code. I've tested the > code, and it seems to work, and I'm not really sure, why this was > commented in the first place. > > Thanks! Could you please help review the below patches? They were submitted to the Emacs bug list in 2016, but no one has followed up on them. Best regards, Stefan Kangas > >>>From 63d1b53583263065edea3ee53d708693415a6057 Mon Sep 17 00:00:00 2001 > From: Puneeth Chaganti > Date: Mon, 18 Jul 2016 16:34:24 +0530 > Subject: [PATCH 1/2] Use the callback set as widget's property > > Revert a commented piece of code, that allows using a different callback > for each xwidget on an event, instead of a single global one. > * lisp/xwidget.el (xwidget-event-handler): Use callback widget property > --- > lisp/xwidget.el | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/lisp/xwidget.el b/lisp/xwidget.el > index 7a0ca8b..3434e24 100644 > --- a/lisp/xwidget.el > +++ b/lisp/xwidget.el > @@ -172,12 +172,8 @@ xwidget-event-handler > (let* > ((xwidget-event-type (nth 1 last-input-event)) > (xwidget (nth 2 last-input-event)) > - ;;(xwidget-callback (xwidget-get xwidget 'callback)) > - ;;TODO stopped working for some reason > - ) > - ;;(funcall xwidget-callback xwidget xwidget-event-type) > - (message "xw callback %s" xwidget) > - (funcall 'xwidget-webkit-callback xwidget xwidget-event-type))) > + (xwidget-callback (xwidget-get xwidget 'callback))) > + (funcall xwidget-callback xwidget xwidget-event-type))) > > (defun xwidget-webkit-callback (xwidget xwidget-event-type) > "Callback for xwidgets. > -- > 2.7.4 > > >>>From 095f02a5581c2c5c157ec312a64288b0c675da74 Mon Sep 17 00:00:00 2001 > From: Puneeth Chaganti > Date: Mon, 18 Jul 2016 17:46:19 +0530 > Subject: [PATCH 2/2] Allow specifying the callback if new session > > This change makes it easier to create xwidgets with their callbacks that > are invoked by the event handler > * lisp/xwidget.el (xwidget-webkit-new-session): Optional callback arg > --- > lisp/xwidget.el | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lisp/xwidget.el b/lisp/xwidget.el > index 3434e24..0f6751e 100644 > --- a/lisp/xwidget.el > +++ b/lisp/xwidget.el > @@ -416,16 +416,17 @@ xwidget-webkit-fit-width > (car (window-inside-pixel-edges))) > 1000)) > > -(defun xwidget-webkit-new-session (url) > +(defun xwidget-webkit-new-session (url &optional callback) > "Create a new webkit session buffer with URL." > (let* > ((bufname (generate-new-buffer-name "*xwidget-webkit*")) > + (callback (or callback #'xwidget-webkit-callback)) > xw) > (setq xwidget-webkit-last-session-buffer (switch-to-buffer > (get-buffer-create bufname))) > (insert " 'a' adjusts the xwidget size.") > (setq xw (xwidget-insert 1 'webkit bufname 1000 1000)) > - (xwidget-put xw 'callback 'xwidget-webkit-callback) > + (xwidget-put xw 'callback callback) > (xwidget-webkit-mode) > (xwidget-webkit-goto-uri (xwidget-webkit-last-session) url))) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 10:22:03 2020 Received: (at 24019) by debbugs.gnu.org; 11 Aug 2020 14:22:03 +0000 Received: from localhost ([127.0.0.1]:41329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5VAA-0007Ug-SE for submit@debbugs.gnu.org; Tue, 11 Aug 2020 10:22:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5VA9-0007UD-U9 for 24019@debbugs.gnu.org; Tue, 11 Aug 2020 10:22:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=i/t2MrRP2SVk7rv5A9zeIsjpFd4nPTXyQLmRvCJFKNs=; b=sTEeOFvnPvr4CNiVUE5zym2W/C LjKnLUCC9hgzWDP9wpj58SciEb/xeKclu8JNIc4Dx9a+t/YedAwgAVjMpJZ++9l0YMyVIlomH0fnH zjOlC4K/eKG6O0DUgtenFcMGv1x9holrQXNSI1d9XmvgQj8ZX7ng0UuGsUC65x9hYFBs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5V9y-0004Bs-OU; Tue, 11 Aug 2020 16:21:53 +0200 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#24019: 25.1.50; Allow using a custom callback with xwidget References: <87vb03qgav.fsf@muse-amuse.in> <87a76hri5t.fsf@marxist.se> Date: Tue, 11 Aug 2020 16:21:49 +0200 In-Reply-To: <87a76hri5t.fsf@marxist.se> (Stefan Kangas's message of "Mon, 20 Jan 2020 21:23:42 +0100") Message-ID: <87y2mltg8y.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: >> `xwidgets.el' seems to have some commented code that used to allow using >> a different callback on each xwidget. This functionality is useful to >> have and this is a patch that uncomments this co [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24019 Cc: Puneeth Chaganti , Joakim Verona , 24019@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: >> `xwidgets.el' seems to have some commented code that used to allow using >> a different callback on each xwidget. This functionality is useful to >> have and this is a patch that uncomments this code. I've tested the >> code, and it seems to work, and I'm not really sure, why this was >> commented in the first place. >> >> Thanks! > > Could you please help review the below patches? They were submitted > to the Emacs bug list in 2016, but no one has followed up on them. I've re-spun the patch for Emacs 28. It seems "obviously correct", and by doing some cursory testing, it doesn't seem to have broken anything, so I'll just push it. If this leads to any problems, Joakim, feel free to revert it. diff --git a/lisp/xwidget.el b/lisp/xwidget.el index aed6c09122..a4c15a1e26 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -207,12 +207,8 @@ xwidget-event-handler (let* ((xwidget-event-type (nth 1 last-input-event)) (xwidget (nth 2 last-input-event)) - ;;(xwidget-callback (xwidget-get xwidget 'callback)) - ;;TODO stopped working for some reason - ) - ;;(funcall xwidget-callback xwidget xwidget-event-type) - (message "xw callback %s" xwidget) - (funcall 'xwidget-webkit-callback xwidget xwidget-event-type))) + (xwidget-callback (xwidget-get xwidget 'callback))) + (funcall xwidget-callback xwidget xwidget-event-type))) (defun xwidget-webkit-callback (xwidget xwidget-event-type) "Callback for xwidgets. @@ -481,10 +477,11 @@ xwidget-webkit-adjust-size-in-frame (add-to-list 'window-size-change-functions 'xwidget-webkit-adjust-size-in-frame)) -(defun xwidget-webkit-new-session (url) +(defun xwidget-webkit-new-session (url &optional callback) "Create a new webkit session buffer with URL." (let* ((bufname (generate-new-buffer-name "*xwidget-webkit*")) + (callback (or callback #'xwidget-webkit-callback)) xw) (setq xwidget-webkit-last-session-buffer (switch-to-buffer (get-buffer-create bufname))) @@ -494,7 +491,7 @@ xwidget-webkit-new-session (setq xw (xwidget-insert 1 'webkit bufname (window-pixel-width) (window-pixel-height))) - (xwidget-put xw 'callback 'xwidget-webkit-callback) + (xwidget-put xw 'callback callback) (xwidget-webkit-mode) (xwidget-webkit-goto-uri (xwidget-webkit-last-session) url))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 10:23:32 2020 Received: (at control) by debbugs.gnu.org; 11 Aug 2020 14:23:32 +0000 Received: from localhost ([127.0.0.1]:41333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5VBc-0007X7-8F for submit@debbugs.gnu.org; Tue, 11 Aug 2020 10:23:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5VBb-0007Ws-0Q for control@debbugs.gnu.org; Tue, 11 Aug 2020 10:23:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5WfjbUr8BAUgRn/WK1X0J6Gnm4RGGJnK/LI9W8vX/LI=; b=gC7TNFugPnl0rVmrdAMV8X2s6/ ojjI7UZdjFPMyIHeVQIjEdHMEBHy4nPvxKgseY0Fk0wElKG+TTlGl/vFxySB2OnMmatcCMsENe7/S II7TVp50eUvVrkJAMaP1i0P6y9QkTas75NmSXxrqDv3hFqOVxSyuwKfYgAW+6Lb4799s=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5VBT-0004CR-7W for control@debbugs.gnu.org; Tue, 11 Aug 2020 16:23:25 +0200 Date: Tue, 11 Aug 2020 16:23:22 +0200 Message-Id: <87wo25tg6d.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24019 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 24019 fixed close 24019 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24019 fixed close 24019 28.1 quit From unknown Wed Jun 18 23:04:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Sep 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator