bugWeeChat - Bugs: bug #38278, Xor function missing in guile...

 
 

bug #38278: Xor function missing in guile plugin

Submitter:  None
Submitted:  Wed 06 Feb 2013 10:34:14 PM UTC
   
 
Category:  script API plugins Severity:  3 - Normal
Item Group:  command Status:  Invalid
Privacy:  Public Assigned to:  flashcode
Originator Name:  bananagram Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.4.0
IRC nick:  bananagram
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Feb 2013 01:48:34 PM UTC, comment #2: 

Oops, found it in my .guile. Sorry.

Anonymous
Thu 07 Feb 2013 06:56:50 AM UTC, comment #1: 

Is "xor" supposed to be supported in guile? I think no.
By the way, you can try "guile" on command line and test, you'll see that this function does not exist:


scheme@(guile-user)> (xor 2)
;;; <stdin>:1:0: warning: possibly unbound variable `xor'
<unnamed port>:1:0: In procedure #<procedure 1eae7a0 at <current input>:1:0 ()>:
<unnamed port>:1:0: In procedure module-lookup: Unbound variable: xor


I think the right function is logxor, see manual here:
http://www.gnu.org/software/guile/manual/html_node/Bitwise-Operations.html#Bitwise-Operations


scheme@(guile-user) [1]> (logxor 2 3)
$2 = 1


So for me it's not a WeeChat problem.

Sebastien Helleu <flashcode>
Group administrator
Wed 06 Feb 2013 10:34:14 PM UTC, original submission:  

Xor function is missing in the guile plugin. I'm going to have to go to all the trouble of defining it myself, dammit.

16:25:46        weechat guile: loading script "/home/username/.weechat/guile/test.scm"
16:25:46        weechat guile: registered script "no", version 3.14 (test script)
16:25:46        weechat guile: stdout/stderr: ERROR: Unbound variable: xor
16:25:46        weechat =!= guile: function "register" not found (or failed) in file
                            "/home/username/.weechat/guile/test.scm"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-20 flashcode Open/ClosedOpen Closed
    2013-02-07 flashcode StatusNeed Info Invalid
    2013-02-07 flashcode StatusNone Need Info
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code