[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [bug #38343] Guile plugin with a weechat:hook_modifier cal
From: |
anonymous |
Subject: |
[Weechat-dev] [bug #38343] Guile plugin with a weechat:hook_modifier callback for "weechat_print" fails/crashes with improper callback definition. |
Date: |
Sat, 16 Feb 2013 19:19:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 |
URL:
<http://savannah.nongnu.org/bugs/?38343>
Summary: Guile plugin with a weechat:hook_modifier callback
for "weechat_print" fails/crashes with improper callback definition.
Project: WeeChat
Submitted by: None
Submitted on: Sat 16 Feb 2013 07:19:02 PM UTC
Category: script API plugins
Severity: 3 - Normal
Item Group: crash
Status: None
Privacy: Public
Assigned to: None
Originator Name: Justin C
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 0.4.0
IRC nick: boxofrox
_______________________________________________________
Details:
See attachments for example scripts.
=== Script "bug-modifier-weechat-print-1.scm" ===
This script demonstrates a weechat error when trying to invoke the desired
callback with individual parameters.
=== Script "bug-modifier-weechat-print-2.scm" ===
This script demonstrates a crash when trying to invoke weechat:print after
setting the modifier callback.
=== Script "bug-modifier-weechat-print-3.scm" ===
This script demonstrates a proper implementation of the weechat_print
modifier callback using a single parameter that receives a list of arguments.
Suggested fix: add note to documentation to indicate that, unlike python or
c, guile callbacks use a single parameter to receive a list of four
arguments.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 16 Feb 2013 07:19:02 PM UTC Name: bug-modifier-weechat-print-1.scm
Size: 720B By: None
<http://savannah.nongnu.org/bugs/download.php?file_id=27470>
-------------------------------------------------------
Date: Sat 16 Feb 2013 07:19:02 PM UTC Name: bug-modifier-weechat-print-2.scm
Size: 327B By: None
<http://savannah.nongnu.org/bugs/download.php?file_id=27471>
-------------------------------------------------------
Date: Sat 16 Feb 2013 07:19:02 PM UTC Name: bug-modifier-weechat-print-3.scm
Size: 248B By: None
<http://savannah.nongnu.org/bugs/download.php?file_id=27472>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?38343>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Weechat-dev] [bug #38343] Guile plugin with a weechat:hook_modifier callback for "weechat_print" fails/crashes with improper callback definition.,
anonymous <=