bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Glenn Morris
Subject: bug#3767: 23.0.94; Functions in password-cache should be autoloaded
Date: Tue, 07 Jul 2009 14:54:33 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Magnus Henoch wrote:

> 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.
>
> (Accusations of me being a misguided elisp programmer are welcome,
> especially with suggestions of better ways to check for this feature.)

I could not say whether password-read should be autoloaded, but for
something that is not autoloaded, I would use:

(and (require 'password-cache nil t)
     (fboundp 'password-read)
     ... )

If just the presence of password-cache.el is enough, you can omit the
second line.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]