Chong Yidong | 8 Jul 2009 05:52
Favicon

bug#3767: 23.0.94; Functions in password-cache should be autoloaded

> I was wondering why jabber.el didn't cache my password, even though I
> set password-cache and password-cache-expiry correctly, and found the
> reason: jabber.el checks whether the running Emacs is new enough to have
> password-cache.el by (fboundp 'password-read), but this function is not
> autoloaded.  The problem is masked if you use Gnus.
>
> Thus I propose that at least `password-read' be autoloaded, possibly
> others as well.

I think jabber.el should use the NOERROR argument to `require':

  (if (require 'password-cache nil t)
      use-password-cache
    do-alternative)

Rakesh Pandit | 10 Jul 2009 17:25
Picon
Gravatar

regarding using for gmail account

I am using this configuration in my .emacs file:

(setq jabber-account-list '(
                            ("rakesh.pandit <at> gmail.com"
                             (:password . nil)
                              (:network-server . "talk.google.com")
                              (:port . 443)
                              (:connection-type . ssl))
                            ))

But I always get after entring my JID as: rakesh.pandit <at> gmail.com
Opening TLS connection with `openssl s_client -connect %h:%p -no_ssl2'...
and
rakesh.pandit <at> gmail.com/nil: connection lost: `nil'

Am I doing something wrong ? May somebody share his configuration
which works for gmail ?

Thanks,

--
Regards,
Rakesh Pandit

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
(Continue reading)

Valery V. Vorotyntsev | 10 Jul 2009 17:51
Picon

Re: regarding using for gmail account

On Fri, Jul 10, 2009 at 6:25 PM, Rakesh Pandit<rakesh.pandit <at> gmail.com> wrote:
> I am using this configuration in my .emacs file:
>
> (setq jabber-account-list '(
>                            ("rakesh.pandit <at> gmail.com"
>                             (:password . nil)
>                              (:network-server . "talk.google.com")
>                              (:port . 443)
>                              (:connection-type . ssl))
>                            ))
>
> But I always get after entring my JID as: rakesh.pandit <at> gmail.com
> Opening TLS connection with `openssl s_client -connect %h:%p -no_ssl2'...
> and
> rakesh.pandit <at> gmail.com/nil: connection lost: `nil'
>
> Am I doing something wrong ? May somebody share his configuration
> which works for gmail ?

Hi, Rakesh.

I suppose adding `-no_ticket' option to your openssl command will
make it work:

  (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -no_ticket"))

My configuration is this:

  (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -no_ticket"))
  (setq jabber-account-list
(Continue reading)

Rakesh Pandit | 10 Jul 2009 18:17
Picon
Gravatar

Re: regarding using for gmail account

2009/7/10 Valery V. Vorotyntsev wrote:
> On Fri, Jul 10, 2009 at 6:25 PM, Rakesh Pandit wrote:
[..]
>
> I suppose adding `-no_ticket' option to your openssl command will
> make it work:
>
>  (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -no_ticket"))
>
> My configuration is this:
>
>  (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -no_ticket"))
>  (setq jabber-account-list
>        '(("user.name <at> gmail.com"
>         (:connection-type . ssl)
>         (:network-server . "talk.google.com"))))
>

Thanks .. works now. Between I packaged it for fedora and posted a
review .. will soon me available:
https://bugzilla.redhat.com/show_bug.cgi?id=508316

>
> PS: You may want to set up Gmail notifications; see
>    `emacs-jabber/jabber-gmail.el'.
>

Wonderful, thanks!

> --
(Continue reading)

Stefan Monnier | 23 Jul 2009 20:08
Picon

bug#3767: 23.0.94; Functions in password-cache should be autoloaded

>> I was wondering why jabber.el didn't cache my password, even though I
>> set password-cache and password-cache-expiry correctly, and found the
>> reason: jabber.el checks whether the running Emacs is new enough to have
>> password-cache.el by (fboundp 'password-read), but this function is not
>> autoloaded.  The problem is masked if you use Gnus.
>> 
>> Thus I propose that at least `password-read' be autoloaded, possibly
>> others as well.

> I think jabber.el should use the NOERROR argument to `require':

>   (if (require 'password-cache nil t)
>       use-password-cache
>     do-alternative)

To provide yet another opinion, I'd personally favor

   (ignore-errors (require 'password-cache))
   or
   (require 'password-cache nil t)

followed later on by

   (if (fboundp 'password-read)
       ...
     ...)

-- Stefan

(Continue reading)

mad | 27 Jul 2009 14:33
Picon

jabber-autoloads

Hi,

I download latest version jabber-el from git, configure and make, then run
emacs -Q, eval:

    (add-to-list 'load-path "~/.emacs.d/elisp/jabber")
    (require 'jabber-autoloads)

and have a error:

Debugger entered--Lisp error: (void-function jabber-propertize)
  (jabber-propertize "Online" (quote face) (quote jabber-roster-user-online))
  (cons "" (jabber-propertize "Online" (quote face) (quote jabber-roster-user-online)))
  (list (cons "" (jabber-propertize "Online" ... ...)) (cons "away" (jabber-propertize "Away" ... ...))
(cons "xa" (jabber-propertize "Extended Away" ... ...)) (cons "dnd" (jabber-propertize "Do not
Disturb" ... ...)) (cons "chat" (jabber-propertize "Chatty" ... ...)) (cons "error"
(jabber-propertize "Error" ... ...)) (cons nil (jabber-propertize "Offline" ... ...)))
  (\` (("" \, ...) ("away" \, ...) ("xa" \, ...) ("dnd" \, ...) ("chat" \, ...) ("error" \, ...) (nil \, ...)))
  (defconst jabber-presence-strings (\` (... ... ... ... ... ... ...)) "Mapping from presence types to
readable, colorized strings")
  eval-buffer(#<buffer  *load*≥ nil "/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el" nil t)  ;
Reading at buffer position 3433
  load-with-code-conversion("/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el"
"/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el" nil t)
  require(jabber-autoloads)

If (require 'jabber) then it`s all right.

Emacs version: GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of
2009-07-27 on home
(Continue reading)

Victor Chukhantsev | 28 Jul 2009 09:53
Picon

Re: jabber-autoloads

mad <owner.mad.epa <at> gmail.com> writes:

> Hi,
>
> I download latest version jabber-el from git, configure and make, then run
> emacs -Q, eval:
>
>     (add-to-list 'load-path "~/.emacs.d/elisp/jabber")
>     (require 'jabber-autoloads)
>
> and have a error:
>
> Debugger entered--Lisp error: (void-function jabber-propertize)
>   (jabber-propertize "Online" (quote face) (quote jabber-roster-user-online))
>   (cons "" (jabber-propertize "Online" (quote face) (quote jabber-roster-user-online)))
>   (list (cons "" (jabber-propertize "Online" ... ...)) (cons "away" (jabber-propertize "Away" ... ...))
(cons "xa" (jabber-propertize "Extended Away" ... ...)) (cons "dnd" (jabber-propertize "Do not
Disturb" ... ...)) (cons "chat" (jabber-propertize "Chatty" ... ...)) (cons "error"
(jabber-propertize "Error" ... ...)) (cons nil (jabber-propertize "Offline" ... ...)))
>   (\` (("" \, ...) ("away" \, ...) ("xa" \, ...) ("dnd" \, ...) ("chat" \, ...) ("error" \, ...) (nil \, ...)))
>   (defconst jabber-presence-strings (\` (... ... ... ... ... ... ...)) "Mapping from presence types to
readable, colorized strings")
>   eval-buffer(#<buffer  *load*≥ nil "/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el" nil t)  ;
Reading at buffer position 3433
>   load-with-code-conversion("/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el"
"/home/mad/.emacs.d/elisp/jabber/jabber-autoloads.el" nil t)
>   require(jabber-autoloads)
>
> If (require 'jabber) then it`s all right.
>
(Continue reading)


Gmane