Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug or feature that vm-imap-folder-p not defined when vm loaded?

2 views
Skip to first unread message

koso...@gmail.com

unread,
Jun 29, 2012, 12:18:54 PM6/29/12
to
The function vm-imap-folder-p is in vm-save which doesn't seem to be autoloaded when vm
is started. This causes an error for me since I use vm-imap-folder-p
in the vm-mode-hook. I can of course avoid this error by running
(require 'vm-save) first but should this be necessary?

I.e. isn't vm-imap-folder-p an important enough predicate that it should just be
there initially and shouldn't require manual loading of vm-save

Uday Reddy

unread,
Jul 2, 2012, 12:54:00 PM7/2/12
to koso...@gmail.com, viewma...@nongnu.org
koso...@gmail.com writes:

> The function vm-imap-folder-p is in vm-save which doesn't seem to be
> autoloaded when vm is started. This causes an error for me since I use
> vm-imap-folder-p in the vm-mode-hook. I can of course avoid this error by
> running (require 'vm-save) first but should this be necessary?

The right way to check if a folder is an IMAP folder is by using the
expression:

(eq vm-folder-access-method 'imap)

The function vm-imap-folder-p was in some user-contributed code and I don't
expect that it will continue to stay there.

Cheers,
Uday

0 new messages