* Inserting a record from your bbdb into the buffer
@ 2010-07-01 14:57 Cecil Westerhof
0 siblings, 0 replies; only message in thread
From: Cecil Westerhof @ 2010-07-01 14:57 UTC (permalink / raw)
To: help-gnu-emacs
A friend of mine wanted to insert a record with:
C-u M-x bbdb
But that does not work. Because of this I hacked the following
function:
(defun dcbl-insert-bbdb-record (name)
(interactive "sName: ")
(let ((no-of-records)
(records (bbdb-search (bbdb-records) name)))
(setq no-of-records (length records))
(if (= no-of-records 1)
(bbdb-format-record (car records))
(message "%s gives %d records" name no-of-records))))
It is far from perfect, but it gets the job done. I hope that people
will find it useful.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-01 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 14:57 Inserting a record from your bbdb into the buffer Cecil Westerhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).