Re: autoloading failed to define function bbdb-define-all-aliases
Roland Winkler wink...@gnu.org writes: What are TAB bound to message-tab or C-TAB bound to? bound to bbdb-complete-mail bbdb-complete-mail was never supposed to expand aliases. I believe message-tab doesn't do it either. In mail mode I have TAB bound to indent-for-tab-command, which I believe is the generic binding for TAB in text modes. That expands (any) aliases for me, just like SPC. I just checked and SPC *does* the expansion I was expecting. I'm not sure anymore if TAB was doing it with bbdb-2.36 but I'm happy with SPC as long as I get this feature back. Thanks a lot for the time you spent answering my questions regarding this particular point. Julien. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: autoloading failed to define function bbdb-define-all-aliases
Roland Winkler wink...@gnu.org writes: On Wed Aug 8 2012 Julien Cubizolles wrote: (add-hook 'mail-setup-hook 'bbdb-define-all-aliases) (add-hook 'message-setup-hook 'bbdb-define-all-aliases) (add-hook 'mail-setup-hook 'bbdb-mail-aliases) I can't get it to work. I have several mail adresses with the mail-alias field set to auteur but pressing TAB or C-TAB after auteur in the To: field doesn't autocomplete. Here are the (I think) relevant parts of my .emacs file : I've added bbdb-mail-aliases to every hook related to composing to no avail... (add-to-list 'load-path /home/wilk/info/emacs/bbdb3/lisp) (add-to-list 'load-path /home/wilk/info/emacs/bbdb3/bits) (add-to-list 'Info-default-directory-list ~/info/emacs/bbdb3/doc/) (require 'bbdb) (define-key message-mode-map [C-tab] 'bbdb-complete-mail) (add-hook 'mail-setup-hook 'bbdb-mail-aliases) (add-hook 'mail-mode-hook 'bbdb-mail-aliases) (add-hook 'message-setup-hook 'bbdb-mail-aliases) (add-hook 'message-mode-hook 'bbdb-mail-aliases) (require 'bbdb-anniv) (setq bbdb-read-name 'last-first) (setq bbdb-name-format 'last-first) (define-key bbdb-mode-map r 'bbdb-merge-records) (setq bbdb-north-american-phone-numbers-p nil) (bbdb-initialize 'gnus 'w3) (add-to-list 'load-path /home/wilk/.emacs.d/bbdb-vcard) (require 'bbdb-vcard) (setq bbdb-quiet-about-name-mismatches t bbdb-complete-name-allow-cycling t) (setq bbdb-electric t) I'm having the same problem with bbdb-insinuate-message when replying to/forwarding a message or editing a draft : the text from the original message isn't copied. This problem is now gone, I don't really know how since I just removed some duplicated lines (like (require 'bbdb and such)) my .emacs and .gnus.el files. Julien. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: autoloading failed to define function bbdb-define-all-aliases
On Thu Aug 9 2012 Julien Cubizolles wrote: Roland Winkler wink...@gnu.org writes: On Wed Aug 8 2012 Julien Cubizolles wrote: (add-hook 'mail-setup-hook 'bbdb-define-all-aliases) (add-hook 'message-setup-hook 'bbdb-define-all-aliases) (add-hook 'mail-setup-hook 'bbdb-mail-aliases) I can't get it to work. I have several mail adresses with the mail-alias field set to auteur but pressing TAB or C-TAB after auteur in the To: field doesn't autocomplete. What do you expect to happen? What are TAB or C-TAB bound to? You might need something like a call of mail-abbrevs-setup in your init file. (Completion of mail aliases is different from expansion that happens when you send a message. All this applies equally to aliases that you define as described in the Emacs info manual. In that sense, it has nothing to do with BBDB.) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: autoloading failed to define function bbdb-define-all-aliases
Roland Winkler wink...@gnu.org writes: What do you expect to happen? In bbdb-2.36 (using bbdb-define-all-aliases), I could set the mail-alias field of some bbdb records to, say friends, and then type friends as the To: field in message-mode. Pressing TAB would then expand the a comma separated list of all records whose mail-alias matches friends (see http://www.emacswiki.org/emacs/BbdbMailingLists#toc1). That's also what I understand from the docstring for bbdb-mail-aliases. What are TAB bound to message-tab or C-TAB bound to? bound to bbdb-complete-mail You might need something like a call of mail-abbrevs-setup in your init file. I added (mail-abbrevs-setup) to .emacs, it didn't solve the problem. (Completion of mail aliases is different from expansion that happens when you send a message. All this applies equally to aliases that you define as described in the Emacs info manual. In that sense, it has nothing to do with BBDB.) You're talking about the mail aliases defined in a .mailrc file, right ? From the message-mode manual : , | The message-mail-alias-type variable controls what type of mail alias | expansion to use. Currently two forms are supported: mailabbrev and | ecomplete. If this variable is nil, no mail alias expansion will be | performed. | | mailabbrev works by parsing the `/etc/mailrc' and `~/.mailrc' | files. These files look like: | | alias lmi Lars Magne Ingebrigtsen la...@ifi.uio.no | alias ding d...@ifi.uio.no (ding mailing list) | After adding lines like this to your `~/.mailrc' file, you should be | able to just write `lmi' in the To or Cc (and so on) headers and press | SPC to expand the alias. ` That's not what I used to use. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
autoloading failed to define function bbdb-define-all-aliases
Since switching to bbdb3, I get the following error message : run-hooks: Autoloading failed to define function bbdb-define-all-aliases because of some hooks I have lying around in .gnus.el (add-hook 'mail-setup-hook 'bbdb-define-all-aliases) (add-hook 'message-setup-hook 'bbdb-define-all-aliases) and I can't use the mail-alias fields I have defined as the To: Field in gnus. I'm having the same problem with bbdb-insinuate-message when replying to/forwarding a message or editing a draft : the text from the original message isn't copied. How can I fix it ? Julien. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: autoloading failed to define function bbdb-define-all-aliases
On Wed Aug 8 2012 Julien Cubizolles wrote: (add-hook 'mail-setup-hook 'bbdb-define-all-aliases) (add-hook 'message-setup-hook 'bbdb-define-all-aliases) (add-hook 'mail-setup-hook 'bbdb-mail-aliases) This removed the error messages about aliases but I still can't get the list of adresses in the To: field with completion of their mail-alias. I'm having the same problem with bbdb-insinuate-message when replying to/forwarding a message or editing a draft : the text from the original message isn't copied. I do not understand: Copying the text of the original message into a reply has nothing to do with BBDB. I don't either but maybe when this hook fails, all subsequent hooks are dismissed. Here is the backtrace when I try to reply/yank to your message. Debugger entered--Lisp error: (error Autoloading failed to define function bbdb-insinuate-message) bbdb-insinuate-message() run-hooks(message-setup-hook) message-setup-1(((Subject . Re: autoloading failed to define function bbdb-define-all-aliases) (Cc . bbdb-info@lists.sourceforge.net) (To . \Roland Winkler\ wink...@gnu.org)) #buffer *gnus article copy* nil nil) message-setup(((Subject . Re: autoloading failed to define function bbdb-define-all-aliases) (Cc . bbdb-info@lists.sourceforge.net) (To . \Roland Winkler\ wink...@gnu.org)) #buffer *gnus article copy*) message-reply(nil t) gnus-summary-reply((63026) t) gnus-summary-reply-with-original(nil t) gnus-summary-wide-reply-with-original(nil) call-interactively(gnus-summary-wide-reply-with-original nil nil) By the way, is there a function to explicitely paste some text as quoted instead of manually adding in front of each line ? Thanks for your help. Julien. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/