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/


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/


Re: bbdb prevents mu4e from sending a message

2015-12-22 Thread Alan Schmitt
Hello Eric,

On 2015-12-21 21:37, Eric Abrahamsen  writes:

> BBDB checks current modes against the bbdb-muda-mode-alist variable,
> which you should be able to add to. It comes with (mu4e mu4e-view-mode)
> in there, maybe you can add something like (mu4e-message-mode
> message-mode) to the list and see if that works? I haven't looked
> exactly at how that variable is queried, but I'll bet you can trick BBDB
> into letting it pass.

Thank you very much for the suggestion. Here is what I added to my
configuration to make things work:

#+begin_src emacs-lisp
(add-to-list 'bbdb-mua-mode-alist '(message mu4e-compose-mode))
#+end_src

Best,

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-22 Thread Igor Sosa Mayor
Alan Schmitt  writes:

> Hello Eric,
>
> On 2015-12-21 21:37, Eric Abrahamsen  writes:
>
>> BBDB checks current modes against the bbdb-muda-mode-alist variable,
>> which you should be able to add to. It comes with (mu4e mu4e-view-mode)
>> in there, maybe you can add something like (mu4e-message-mode
>> message-mode) to the list and see if that works? I haven't looked
>> exactly at how that variable is queried, but I'll bet you can trick BBDB
>> into letting it pass.
>
> Thank you very much for the suggestion. Here is what I added to my
> configuration to make things work:
>
> #+begin_src emacs-lisp
> (add-to-list 'bbdb-mua-mode-alist '(message mu4e-compose-mode))
> #+end_src

finally which is the exact and whole configuration to make bbdb work
with mu4e? Could you please send yours?

Many thanks in advance!


-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::


--
___
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-21 Thread Michael Strey
Hi Alan,

On Mo, 2015-12-21 at 09:14, Alan Schmitt wrote:

[...]

> I tried adding the 'mu4e symbol to both lines and it's not changing
> anything. I don't necessarily want BBDB to work with mu4e: I want to be
> able to send messages with mu4e while still using BBDB with gnus. Is
> this possible?
>
> I asked this question on the mu4e mailing list, and it seems that the
> problems comes from the hook bbdb adds to message mode, which is run in
> mu4e-compose-mode as it extends message mode.

I finally gave up trying to use mu4e in parallel to gnus for the same reason.

-- 
Michael Strey
http://www.strey.biz * https://twitter.com/michaelstrey


--
___
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-21 Thread Eric Abrahamsen
Michael Strey  writes:

> Hi Alan,
>
> On Mo, 2015-12-21 at 09:14, Alan Schmitt wrote:
>
> [...]
>
>> I tried adding the 'mu4e symbol to both lines and it's not changing
>> anything. I don't necessarily want BBDB to work with mu4e: I want to be
>> able to send messages with mu4e while still using BBDB with gnus. Is
>> this possible?
>>
>> I asked this question on the mu4e mailing list, and it seems that the
>> problems comes from the hook bbdb adds to message mode, which is run in
>> mu4e-compose-mode as it extends message mode.
>
> I finally gave up trying to use mu4e in parallel to gnus for the same reason.

BBDB checks current modes against the bbdb-muda-mode-alist variable,
which you should be able to add to. It comes with (mu4e mu4e-view-mode)
in there, maybe you can add something like (mu4e-message-mode
message-mode) to the list and see if that works? I haven't looked
exactly at how that variable is queried, but I'll bet you can trick BBDB
into letting it pass.

E


--
___
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-21 Thread Michael Strey
On Mo, 2015-12-21 at 14:37, Eric Abrahamsen wrote:
> Michael Strey  writes:

[...]

>> I finally gave up trying to use mu4e in parallel to gnus for the same reason.
>
> BBDB checks current modes against the bbdb-muda-mode-alist variable,
> which you should be able to add to. It comes with (mu4e mu4e-view-mode)
> in there, maybe you can add something like (mu4e-message-mode
> message-mode) to the list and see if that works? I haven't looked
> exactly at how that variable is queried, but I'll bet you can trick BBDB
> into letting it pass.

You are right and I've been confused by the many problems I struggled
with in the past.  In fact I had the problem not with mu4e but with
notmuch that I'm still using side by side with gnus for searching and
solved it as suggested by you.  I have the following in
bbdb-mua-mode-alist:

((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)
 (mail mail-mode))

-- 
Michael Strey
http://www.strey.biz * https://twitter.com/michaelstrey


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