Re: bbdb prevents mu4e from sending a message
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
"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
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
On Mon Dec 21 2015 Alan Schmitt wrote: > I'm trying to use both gnus and mu4e, and I'm having an issue when > sending a message from mu4e: I get the following error: > > bbdb-mua: BBDB: MUA `mu4e-compose-mode' not supported > > I'm using a recent version of BBDB (the Melpa version from November of > this year), and my BBDB setup looks like this: > > #+begin_src emacs-lisp > (bbdb-initialize 'gnus 'message) > (bbdb-mua-auto-update-init 'gnus 'message) > #+end_src [Too many things have piled up on this list. I'll try to catch up slowly.] 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. -- ___ 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
Alan Schmitt writes: > On 2015-12-22 09:42, Igor Sosa Mayor writes: > >>> 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? > > I just added this line. From before, I had this: > > #+begin_src emacs-lisp > (bbdb-initialize 'gnus 'message) > (bbdb-mua-auto-update-init 'gnus 'message) > #+end_src > > Note that it does not let mu4e use bbdb, it only makes sure there are no > errors that prevent me from sending mail with mu4e. thanks! -- ___ 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
On 2015-12-22 09:42, Igor Sosa Mayor writes: >> 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? I just added this line. From before, I had this: #+begin_src emacs-lisp (bbdb-initialize 'gnus 'message) (bbdb-mua-auto-update-init 'gnus 'message) #+end_src Note that it does not let mu4e use bbdb, it only makes sure there are no errors that prevent me from sending mail with mu4e. 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
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
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
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/
Re: bbdb prevents mu4e from sending a message
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
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/
bbdb prevents mu4e from sending a message
Hello, I'm trying to use both gnus and mu4e, and I'm having an issue when sending a message from mu4e: I get the following error: bbdb-mua: BBDB: MUA `mu4e-compose-mode' not supported I'm using a recent version of BBDB (the Melpa version from November of this year), and my BBDB setup looks like this: #+begin_src emacs-lisp (bbdb-initialize 'gnus 'message) (bbdb-mua-auto-update-init 'gnus 'message) #+end_src 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. 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/