all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.