On 14 Feb 2007, Len Trigg told this: > * Allow bbdb-readonly-p to be a function that takes a record as a > parameter, e.g.
This seems the most Lispish and most generic of approaches. (You'll still want to allow it to be t-or-nil as well, of course.) You'll need to do some extra work, because many internal callers consult the variable to determine whether to e.g. create new records, and because `bbdb-readonly-p' is used as a modeline indicator as well, so some variable must always track the current read-only state. Further, what state is the indicator in the modeline if you're displaying multiple records? I could hack this up easily (and in fact have a halfway-hacked-up patch)... if it was at all clear what to do in cases like this. Maybe we need a third indicator for `partially read-only', or maybe we should indicate read-only state with a new face rather than a modeline indicator... -- `In the future, company names will be a 32-character hex string.' --- Bruce Schneier on the shortage of company names ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/