On Thu Dec 27 2012 Roland Winkler wrote: > On Fri Dec 28 2012 Eric Abrahamsen wrote: > > I often add multiple records for different people at the same > > organization, and have wanted tab completion when > > creating/editing the organization field. This patch creates and > > populates a bbdb-organization-list variable on startup, and > > offers completion from that list when editing or creating > > organization fields. > > Thanks. Me too, I thought about this. So far, I did not implement > this because the organization field holds a list of values. This > makes tab completion more tricky if one wants to put multiple > entries into this field.
The patch below provides completion for the organization field using completing-read-multiple. This requires GNU Emacs from the trunk (version > 24.3). Only the latter handles multi-character separators properly. 2013-01-13 Roland Winkler <wink...@gnu.org> Update copyright year in all files. 2013-01-13 Roland Winkler <wink...@gnu.org> * lisp/bbdb.el (bbdb-organization-list): New variable. (bbdb-record-set-field): Use it. Update bbdb-phone-label-list, bbdb-address-label-list, and bbdb-xfield-label-list. ((bbdb-set-xfield-labels): Removed (bbdb-record-set-xfield): Set bbdb-xfield-labels-list explicitly. (bbdb-label-completion-list): Removed. (bbdb-parse-records): Do not set bbdb-phone-label-list and bbdb-address-label-list in a circular way. Set bbdb-organization-list. * lisp/bbdb-com.el: Require crm. (bbdb-crm-local-completion-map): New variable. (bbdb-read-organization): New function. (bbdb-read-record, bbdb-prompt-for-new-field): Use it. Directly use bbdb-phone-label-list and bbdb-address-label-list. Do not call bbdb-set-xfield-labels, which was redundant. (bbdb-edit-field): Use bbdb-read-organization and bbdb-record-field. (bbdb-record-edit-address): Use bbdb-address-label-list directly. (bbdb-record-edit-phone): Use bbdb-phone-label-list directly. BBDB is available at http://savannah.nongnu.org/projects/bbdb/ To check it out, use git clone git://git.savannah.nongnu.org/bbdb.git ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/