Re: bbdb prevents mu4e from sending a message

2015-12-23 Thread Roland Winkler
On Mon Dec 21 2015 Michael Strey wrote:
> ((vm vm-mode vm-virtual-mode vm-summary-mode vm-presentation-mode)
>  (gnus gnus-summary-mode gnus-article-mode gnus-tree-mode)
>  (rmail rmail-mode rmail-summary-mode)
>  (mh mhe-mode mhe-summary-mode mh-folder-mode)
>  (message notmuch-message-mode message-mode)

Yes, if notmuch-message-mode is likewise derived from message-mode,
the above should work for notmuch, too.

Are there yet more modes "out in the wild" which are derived from
message-mode (or mail-mode, though I guess mail-mode is really
getting replaced by message-mode)?

Roland

--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


EIEIO version of BBDB

2015-12-23 Thread Eric Abrahamsen
And while we're all here...

A while ago there was a very brief exchange about the possibility of a
version of BBDB refactored on top of the EIEIO object orientation
library. I've been thinking about that for a while, and recently wrote
a sort of prototype. I'd like to share it with everyone, either as an
attachment to the list, or I guess preferably by pushing a branch to
the git repo.

There isn't anything particularly wrong with BBDB that needs fixing,
but an OO version of the database does lots of good things, mostly in
the direction of extension and customization. It also gets us free
file serialization courtesy of eieio-persistent, and I've added in
support for multiple databases.

One semi-serious problem is that EIEIO is under development, and a bit
of a moving target. This version of BBDB would likely only reliably work
with a development version of Emacs. But if we're considering bundling
BBDB with Emacs anyway, that might be okay.

Right now it's kind of a code sketch. You can load it, and it works
fine in an IELM session, it's just very rudimentary. Basically I put
in enough effort that it can serve as the basis for a design
discussion, but not so much that I would feel bad about dumping large
parts of the code, or scrapping it altogether.

Anyway, if there's interest, I can push a branch or something...

Thanks,
Eric


--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb prevents mu4e from sending a message

2015-12-23 Thread Alan Schmitt
On 2015-12-23 13:41, "Roland Winkler"  writes:

> The error means that you try to run some BBDB function or command in
> a buffer using mu4e-compose-mode, yet BBDB doesn't know this mode.
>
> I don't know mu4e, but it looks like mu4e-compose-mode is derived
> from message-mode which you use as an arg for
> bbdb-mua-auto-update-init.  The latter adds bbdb-mua-auto-update to
> message-send-hook.  So if mu4e-compose-mode is derived from
> message-mode, bbdb-mua-auto-update fails.  If you evaluate the
> following (or put it into your emacs init file), does this solve
> your problem?  (This adds mu4e-compose-mode to the modes associated
> with the MUA `message'.)
>
>   (let ((m (assq 'message bbdb-mua-mode-alist)))
> (unless (memq 'mu4e-compose-mode (cdr m))
>   (setcdr m (cons 'mu4e-compose-mode (cdr m)
>
> If this solves the problem, I'll update bbdb-mua-mode-alist
> accordingly.

Yes, this is basically what I ended up doing:
#+begin_src emacs-lisp
(add-to-list 'bbdb-mua-mode-alist '(message mu4e-compose-mode))
#+end_src

Your version is much nicer, so I've adopted it.

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated December 13, 2015, Mauna Loa Obs.): 401.31 ppm


signature.asc
Description: PGP signature
--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: bbdb prevents mu4e from sending a message

2015-12-23 Thread Eric Abrahamsen
"Roland Winkler"  writes:

> On Mon Dec 21 2015 Michael Strey wrote:
>> ((vm vm-mode vm-virtual-mode vm-summary-mode vm-presentation-mode)
>>  (gnus gnus-summary-mode gnus-article-mode gnus-tree-mode)
>>  (rmail rmail-mode rmail-summary-mode)
>>  (mh mhe-mode mhe-summary-mode mh-folder-mode)
>>  (message notmuch-message-mode message-mode)
>
> Yes, if notmuch-message-mode is likewise derived from message-mode,
> the above should work for notmuch, too.
>
> Are there yet more modes "out in the wild" which are derived from
> message-mode (or mail-mode, though I guess mail-mode is really
> getting replaced by message-mode)?

There's also notmuch-message-mode. I'm actually fairly annoyed that
notmuch tries to take over my whole mua setup, when all I want to do is
use it to search, but it would be nice to also let this one pass.


--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/