[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Re: Completing with anything
From: |
Eric S Fraga |
Subject: |
Re: [O] Re: Completing with anything |
Date: |
Tue, 22 Mar 2011 14:13:42 +0000 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
Eric Abrahamsen <address@hidden> writes:
[...]
> This is what I've been using to insert other people's contact
> information into emails. Probably no good for general use, but maybe
> will provide food for thought.
>
> #+BEGIN_SRC emacs-lisp
> (defun my-cite-contact (name)
> (interactive "sName (regexp): ")
> (let ((rec)
> (records (bbdb-search (bbdb-records) name name name nil nil)))
> (if (= (length records) 1)
> (setq rec (car records))
> (if (zerop (length records))
> (error "No matching records")
> (setq rec
> (let ((int-name (ido-completing-read "Pick one: "
> (mapcar 'bbdb-record-name
> records))))
> (car (bbdb-search (bbdb-records) int-name))))))
> (insert (bbdb-dwim-net-address rec))))
> #+END_SRC
This looks quite nice; I have been missing the possibility of a regex
search for mail addresses and the combination with ido is quite
appealing.
How do you invoke it? I am currently struggling with the interactions
between .mailrc (emacs mail aliases, expanding as abbrevs) and bbdb
(expanding with TAB). This is partly why I haven't even considered
using org-contacts yet...
As always, with Emacs, too many choices, too little time! ;-)
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.92.gf702.dirty)
- [O] Completing with anything (was: [Orgmode] Re: Announcing org-contacts, a bbdb-like contact manager for Org), Julien Danjou, 2011/03/18
- [O] Re: Completing with anything, Stefan Monnier, 2011/03/18
- [O] Re: Completing with anything, Julien Danjou, 2011/03/21
- [O] Re: Completing with anything, Tassilo Horn, 2011/03/21
- [O] Re: Completing with anything, Julien Danjou, 2011/03/21
- [O] Re: Completing with anything, Tassilo Horn, 2011/03/21
- [O] Re: Completing with anything, Stefan Monnier, 2011/03/21
- [O] Re: Completing with anything, Julien Danjou, 2011/03/21
- [O] Re: Completing with anything, Stefan Monnier, 2011/03/21
- [O] Re: Completing with anything, Eric Abrahamsen, 2011/03/21
- Re: [O] Re: Completing with anything,
Eric S Fraga <=
- [O] Re: Completing with anything, Eric Abrahamsen, 2011/03/22
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/23
- Re: [O] Re: Completing with anything, Eric S Fraga, 2011/03/23
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/23
- Re: [O] Re: Completing with anything, Eric S Fraga, 2011/03/23
- Re: [O] Re: Completing with anything, Cian, 2011/03/24
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/25
- Re: [O] Re: Completing with anything, Michael Markert, 2011/03/26
- Re: [O] Re: Completing with anything, Michael Markert, 2011/03/26
- Re: [O] Re: Completing with anything, Aankhen, 2011/03/22