Re: [BBDB] ChangeLog 2014-04-12

2014-04-15 Thread Ian Kelling
Roland Winkler wink...@gnu.org writes:

 On Tue Apr 8 2014 i...@iankelling.org wrote:
 I found a bug: Using (first . last) name arg to
 bbdb-create-internal fails.
 
 An example of the error::
 (error type mismatch: expect (or nil (cons string string)), got
 `(Bob .  Dole)')

 Thanks, that was indeed a silly bug.  I fixed it different from your
 patch that would fail for records without a name.  Along the way, I
 also rewrote bbdb-check-type which was way too complicated.

 Please check that now this works as expected.

Yes. It works great. Sorry my patch missed that obvious case. Thank you
for the fix.


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: [BBDB] ChangeLog 2014-04-12

2014-04-14 Thread Stephen J. Turnbull
Roland Winkler writes:

   I can't stand the widget system, but that's just one opinion,
   obviously...
  
  I have never used it for anything more frequently (I do not use
  customize for customizing emacs).

Per Cederqvist's ewoc may be a lighter-weight alternative to Per
Abrahamsen's widgets.  ISTR seeing it used for UI in some of Stefan
Monnier's code (but that was a while back).



--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: [BBDB] ChangeLog 2014-04-12

2014-04-13 Thread Roland Winkler
On Sun Apr 13 2014 Barak A. Pearlmutter wrote:
bbdb-separator-alist defines the separator for almost all fields
to be , .  Only for AKAs it is ; .  I do not know anymore
how this came about.  But I find it confusing, and I am thinking
about changing the default to ,  for all fields.
   
Thoughts or comments?
  
   Yes please! That has tripped me up a couple of times, and seems pretty
   arbitrary.
 
  Done.
 
 John Smith; John Smith, Jr; J. Smith, Esquire

I guess we have no shortage in such examples requiring something
like `;' instead of `,'.  Besides AKAs / names, we may also have

   organization: HAL, Inc.; Smith, Miller  Davis; Company 17

Yet worse

   mail: sm...@example.com; Smith, John smit...@smith.com;
 jsm...@foo.com

The question remains: what are useful defaults for bbdb-separator-alist?
I expect that most users don't worry about such more rare cases.
Having consistent defaults provided by bbdb-separator-alist should
help most users.  In any case, we are talking about a user variable
that everyone can customize to his or her liking.

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: [BBDB] ChangeLog 2014-04-12

2014-04-13 Thread Roland Winkler
  John Smith; John Smith, Jr; J. Smith, Esquire
 
 I guess we have no shortage in such examples requiring something
 like `;' instead of `,'.  Besides AKAs / names, we may also have
 
organization: HAL, Inc.; Smith, Miller  Davis; Company 17
 
 Yet worse
 
mail: sm...@example.com; Smith, John smit...@smith.com;
  jsm...@foo.com

One proper solution to all this (plus a few other nuisances) could
be an interface for editing BBDB records similar to the widget-based
interface for customizing Emacs user variables.

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: [BBDB] ChangeLog 2014-04-12

2014-04-13 Thread Eric Abrahamsen
Roland Winkler wink...@gnu.org writes:

  John Smith; John Smith, Jr; J. Smith, Esquire
 
 I guess we have no shortage in such examples requiring something
 like `;' instead of `,'.  Besides AKAs / names, we may also have
 
organization: HAL, Inc.; Smith, Miller  Davis; Company 17
 
 Yet worse
 
mail: sm...@example.com; Smith, John smit...@smith.com;
  jsm...@foo.com

 One proper solution to all this (plus a few other nuisances) could
 be an interface for editing BBDB records similar to the widget-based
 interface for customizing Emacs user variables.

Or to store the value as a list of strings, and make users loop through
each string with RET when they edit the value. Sort of like what happens
now when you edit a name that distinguishes between surname and given
name. It sounds a bit bothersome, but I think in practice it wouldn't be
that difficult.

I can't stand the widget system, but that's just one opinion,
obviously...

E


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: [BBDB] ChangeLog 2014-04-12

2014-04-13 Thread Roland Winkler
On Mon Apr 14 2014 Eric Abrahamsen wrote:
 Or to store the value as a list of strings, 

That's what BBDB does anyway, and that's what bbdb-seperator-alist
is about: how to split the string which the user edits into what
gets actually stored in the database (see split-string).

 and make users loop through each string with RET when they edit
 the value.

You could always redefine the internal functions which BBDB uses
here in order to get the behavior that matches your personal taste.
BBDB 3 is fairly modular in that respect.

 I can't stand the widget system, but that's just one opinion,
 obviously...

I have never used it for anything more frequently (I do not use
customize for customizing emacs).  In that sense I do not yet know
whether I'd like that for myself.  In any case, I'd want to keep the
current approach, too.  But maybe it would even be possible to let
users develop their own favorite approach for editing BBDB records.
So far, I have not thought about details.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/