"Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
>>>>> "Dres" == James LewisMoss
<jimdres(a)mindspring.com> writes:
Dres> Bug report from debian user. Is there a missing autoload?
Possibly. I think there is no function to autoload, what is needed is
the following code from vm-startup.el:
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent 'vm-user-agent
(function vm-compose-mail) ; compose function
(function vm-send-mail-and-exit) ; send function
nil ; abort function (kill-buffer)
nil) ; hook variable (mail-send-hook)
)
It would be useful if the user added that to his init file and
confirmed that it solves his problem of using vm-user-agent at
startup.
I'm pretty sure the auto-autoloads mechanism can handle getting that
code loaded automatically at startup, but I don't have the details off
hand. In particular, we probably want it to preserve any user hacks
to vm-user-agent, so it should check for an existing definition of
vm-user-agent before doing define-mail-user-agent.
Steve Y? Simon? If this works correctly, would it be a good idea to
move the other define-mail-user-agent calls out of simple.el and into
their respective packages? Does That Other Emacs have an
auto-autoloads mechanism for this?
Wouldn't something like the below in the VM package be sufficient? I
dunno, I never understood exactly how the autoload cookies really
worked, especially in the context of packages.
Btw, can we hook the "Options->Internet->Compose Mail With" menu to
the `define-mail-user-agent' also? Currently VM isn't listed there.
(Of course, `vm-compose-mail' and `vm-send-mail-and-exit' needs to be
autoloaded as well, but presumably they already are.)
;;;###autoload
(define-mail-user-agent 'vm-user-agent
(function vm-compose-mail) ; compose function
(function vm-send-mail-and-exit) ; send function
nil ; abort function (kill-buffer)
nil) ; hook variable (mail-send-hook)