[mew-int 2528] Re: Non-interactive attachment description
Christophe TROESTLER
Christophe.Troestler at example.com
Tue Jul 1 18:51:00 JST 2008
Hi,
On Tue, 01 Jul 2008 18:03:46 +0900 (JST), Kazu Yamamoto (山本和彦) wrote:
>
> > In a non-interactive function, after a (compose-mail ...), I can use
> >
> > (mew-draft-prepare-attachments)
> > (mew-attach-link file (file-name-nondirectory file))
> >
> > to attach a file. Is there an easy way to add a description
> > (mew-attach-description is purely interactive)?
>
> Sorry. I don't understand what you want to do.
> Do you want to write an Elisp code to any hook?
I want to write some elisp code. The real problem is to provide a way
for bazaar http://bazaar-vcs.org/ to use Mew to send bundles: "bzr
send" creates a new message (with compose-mail) and then attach the
patch file to it (with the above 2 functions). It would also be nice
to automatically add a description of the patch and I am wondering
what is the best way to do it non-interactively (I was expecting
mew-attach-description to have optional arguments to bypass the
interactive prompt). At the moment I use
(let* ((nums (mew-syntax-nums))
(syntax (mew-syntax-get-entry mew-encode-syntax nums)))
(mew-syntax-set-cd syntax "BZR merge")
(mew-encode-syntax-print mew-encode-syntax))
but I would prefer something that does not show Mew internals and is
likely to stand better future Mew modifications.
Regards,
ChriS
More information about the Mew-int
mailing list