On Fri Apr 29 2011 Leo wrote: > >From 97e6adcdd8813d9f857972f0e5f5ba5bbb2fc406 Mon Sep 17 00:00:00 2001 > Date: Fri, 29 Apr 2011 14:41:51 +0800 > Subject: [PATCH] Default to current record in bbdb-completing-read-records > > For example, this is useful for `/ 1' to quickly limit to current > record.
I am not sure whether the patch is a good way to achieve your goal - If it's useful under whatever circumstances to have a default value for completion, I'd prefer to make this an optional arg for a function like bbdb-completing-read-records. Then it is up to the caller to bind this to something useful. For example bbdb-merge-records calls bbdb-completing-read-records to determine which record to merge with the current record. So making the current record the default would not be useful here. Also, the default should be spelled out in the prompt. - If a proposed use of all this is limiting to the current record, then it appears much cleaner to me if there is a dedicated command for that purpose which does not require to confirm in the minibuffer that the current record is really what the user wants. And I am just curious: when can all this come handy? - You talk about `/ 1' having replaced already the keybinding `S 1' :-) I was surprised: I tried to find some other emacs mode that is doing something similar to BBDB's search command so that possibly BBDB could use similar keybindings. But I couldn't find anything. Am I missing something? (I'd consider Gnus' limiting commands actually slightly different from BBDB's search commands. The limiting commands reduce what is displayed. BBDB's search commands increase what is displayed.) As I said, I am not opposed to changing the keybindings in the proposed way. I am just surprised that I don't know any other Emacs mode we could compare with. Roland ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/