RE: notes field edition

2013-12-29 Thread Vincent Belaïche
It seems that for some reason my answers are blocked somewhere in the pipe...

   Vincent.

 Date: Fri, 27 Dec 2013 07:30:32 +
 Subject: Re: notes field edition
 From: ba...@cs.nuim.ie
 To: wink...@gnu.org
 CC: bbdb-info@lists.sourceforge.net; vincent@hotmail.fr
 
 On 27 Dec 2013 03:49, Roland Winkler wink...@gnu.org wrote:
  I am sorry, I can only guess what you are talking about.  In which
  context are you missing a binding of `;' to which command?  Is there
  a solution you want to propose?
 
 I'd assume he means that, in pretty much any context in which bbdb is
 active, ';' should edit the notes field of the relevant entry.
 
 Currently this only happens in some contexts, e.g., in a list of
 messages in gnus (Summary mode defined in 'gnus-sum.el', or Article
 mode defined in 'gnus-art.el', ; runs the command
 bbdb-mua-edit-field-sender) but disconcertingly not in the bbdb
 window proper (BBDB mode, ; is undefined).
 --
 Barak A. Pearlmutter ba...@cs.nuim.ie
  Hamilton Institute  Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
  http://www.bcl.hamilton.ie/~barak/
  --
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

RE: notes field edition

2013-12-29 Thread Roland Winkler
On Fri Dec 27 2013 Vincent Belaïche wrote:
 From this info node:
 
 http://bbdb.sourceforge.net/bbdb.html#SEC33
 
 I can read:
 
 ---
  ;
 
 (bbdb-edit-notes) A shortcut for editing the notes field.
 ---
 
 but there is no longer any bbdb-edit-notes function.
 
 When one create a new record notes is proposed for filling it

I believe these things date back to old times when the notes field
was the only field of its kind, that is, the user could not define
new fields.  - Even with BBDB 2 there was nothing special anymore
about the notes field.  Maybe a user prefers to put such things into
a field foo?  So I'd like to avoid such hard-coded solutions, this
should be customizable.  (Isn't this what all BBDB is about?)  Now I
am thinking about a user variable, which holds a cons pair, kind of
similar to bbdb-mua-update-interactive-p.  The car is the field to
edit when the command is used without a prefix, and the cdr is the
field to edit when called with a prefix.  And if one of these is
`all-fields' the user can enter the field to edit.

I guess a similar thing should be done with the commands in
bbdb-mua.el, which also contain hard-coded references to the notes
field.

 but when you try to add notes afterwards there is no such field
 name prompting: neither the `;' shortcut is available, nor the
 bbdb-insert-field will propose `notes' like a field.

The latter is not correct (at least for me): when bbdb-insert-field
asks for the field to insert, this offers completion, and it
includes all fields known in your BBDB session.  So if at least one
of your records has a notes field, `notes' is included in the list
of completions provided by bbdb-insert-field.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/