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: [email protected]
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 mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev