> * Roland Winkler <jvax...@tah.bet> [2012-03-14 14:23:17 -0500]:
>
> On Wed Mar 14 2012 Sam Steingold wrote:
>> > Do you want to use different values of bbdb-message-headers depending
>> > on context? You could define a wrapper that rebinds it according to
>> > your taste. (I would guess that there are too many possiblities /
>> > different tastes for a universal yet still transparent solution.)
>> 
>> I want bbdb to be permissive about display (i.e., show more rather than
>> less; bbdb-message-headers should be interpreted as "show all these")
>> and restrictive about editing (i.e., edit less rather than more,
>> bbdb-message-headers should be interpreted as "edit the first
>> found").
>
> Looks like you need a wrapper around bbdb-mua-update-records that
> rebinds bbdb-message-all-addresses according to the value of the arg
> UPDATE-P of bbdb-mua-update-records. (I am not sure this would be what
> other users want.)

I am pretty sure that every user who sets bbdb-message-all-addresses to
non-nil would want this patch:

diff --git a/lisp/bbdb-mua.el b/lisp/bbdb-mua.el
index 93f0228..b88a561 100644
--- a/lisp/bbdb-mua.el
+++ b/lisp/bbdb-mua.el
@@ -730,7 +730,9 @@ FIELD defaults to 'notes.  With prefix arg, ask for FIELD."
         ((not field)
          (setq field 'notes)))
   (bbdb-mua-wrapper
-   (let ((records (bbdb-mua-update-records header-class)))
+   (let ((records
+          (let ((bbdb-message-all-addresses nil))
+            (bbdb-mua-update-records header-class))))
      (bbdb-display-records records)
      (dolist (record records)
        (bbdb-edit-field record field)



-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://iris.org.il http://www.memritv.org
http://thereligionofpeace.com http://openvotingconsortium.org
PI seconds is a nanocentury

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to