* bug#3767: 23.0.94; Functions in password-cache should be autoloaded
@ 2009-07-06 18:39 Magnus Henoch
2009-07-07 18:54 ` Glenn Morris
0 siblings, 1 reply; 4+ messages in thread
From: Magnus Henoch @ 2009-07-06 18:39 UTC (permalink / raw)
To: emacs-pretest-bug
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.)
Maguns
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3767: 23.0.94; Functions in password-cache should be autoloaded
2009-07-06 18:39 bug#3767: 23.0.94; Functions in password-cache should be autoloaded Magnus Henoch
@ 2009-07-07 18:54 ` Glenn Morris
0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2009-07-07 18:54 UTC (permalink / raw)
To: Magnus Henoch; +Cc: 3767
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3767: 23.0.94; Functions in password-cache should be autoloaded
@ 2009-07-08 3:52 Chong Yidong
2009-07-23 18:08 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-07-08 3:52 UTC (permalink / raw)
To: Magnus Henoch; +Cc: 3767, emacs-jabber-general
> 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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#3767: 23.0.94; Functions in password-cache should be autoloaded
2009-07-08 3:52 Chong Yidong
@ 2009-07-23 18:08 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-07-23 18:08 UTC (permalink / raw)
To: Chong Yidong; +Cc: Magnus Henoch, emacs-jabber-general, 3767
>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-23 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 18:39 bug#3767: 23.0.94; Functions in password-cache should be autoloaded Magnus Henoch
2009-07-07 18:54 ` Glenn Morris
-- strict thread matches above, loose matches on Subject: below --
2009-07-08 3:52 Chong Yidong
2009-07-23 18:08 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.