Menu

Problem with roster: only one contact appears

Help
2007-08-03
2013-05-28
  • Christophe Garion

    Hello,

    I have a problem wih emacs-jabber. When I connect to my server, I have only one contact appearing. I have used the XML debug log, and it shows that all my contacts have been received (list of item describing them). I do not know if it is a bug, or if it is due to my config. If it's a bug, I will fill a bug report.

    I am using the last CVS version of emacs-jabber, Carbon Emacs based on Emacs 22.1.1 and my server is jabber.org.

    Thanks in advance,

    Christophe

     
    • Magnus Henoch

      Magnus Henoch - 2007-08-07

      That's a bug, for sure.  I seem to vaguely remember something like this happening before with jabber.org, but I can't remember any details…

      Could you open jabber-presence.el, and instrument the function jabber-process-roster with edebug?  (i.e. put point inside it and type C-u C-M-x)  That way you can singlestep through the function when the roster stanza arrives.

       
      • Christophe Garion

        OK, I have used edebug on jabber-process-roster (no problem, the entire roster seems to be correctly set in the different variables), then jabber-display-roster (idem, jabber-connections contains all the connections), and I think I may have found something with jabber-roster-sort.

        I will describe the first call to jabber-display-roster:

        - jabber-connections contains all the contacts
        - the keybindings are displayed
        - "online" is displayed
        - the roster is sorted, (plist-get state-data :roster) gets all the contacts, but then the execution flow goes at the end of the dolist in jabber-display-roster, and edebug displays "Result: t". As we are at the end of the dolist, nothing more is displayed. The value of jabber-connections is such that there is only one contact now in the roster.
        - the execution flow goes now to the beginning of jabber-display-roster, and the function behave correctly, but with only one contact. Notice that after the call to jabber-sort-roster, this time the (let ...) part of dolist is executed.

        Do you have any idea? I hope my "debug trace" is sufficiently explicit...

        Thanks,

        Christophe

         
    • Christophe Garion

      OK, sorry, but now everything is fine. I do not know why I had the problem before, because I have not modified emacs-jabber and I think I did not change something important in my emacs configuration.

      Sorry again,

      Christophe

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.