Re: bbdb-mode-map should inherit from special-mode-map

2011-04-14 Thread Ted Zlatanov
On Wed, 13 Apr 2011 14:47:11 -0500 Roland Winkler wink...@gnu.org wrote: 

RW On Wed Apr 13 2011 Ted Zlatanov wrote:
 It should be possible to support at least Emacs 23.x and XEmacs.  Gnus
 does it so we can look there for potential problems and solutions.
 
 You could ask David Engster d...@randomsample.de, who's setting up a
 Gnus buildbot, to do the same for BBDB.
 
 Also you should consider using ERT to write BBDB tests which can be run
 by the BBDB buildbot.

RW Sounds all quite reasonable. At the same time I need to say that my
RW time for such things is limited. So it can happen that I might do
RW them rather slowly or never.

Asking David is very easy.  I can do it for you if you like.

The ERT tests are pretty simple.  I can get them started if you have no
philosophical objections.

RW PS: As I said before, for me the highest priority with BBDB are now
RW bug fixes and a proper release (for GNU Emacs). Once this is done
RW (which might be enough of a project for me to keep me busy for some
RW time) I'll be happy to look into new directions.

I think the buildbot and ERT tests will help you precisely with bug
fixes and a faster release.

Ted


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Non-nil default value in hook variables

2011-04-14 Thread Leo
Hello,

I have been bitten more than once by non-nil default values in hook
variables such as:

(defcustom bbdb-create-hook 'bbdb-creation-date
  :group 'bbdb
  :type 'hook)

Then if one does

(add-hook 'bbdb-create-hook 'bbdb-add-uuid) in one's .emacs, the default
value may be ignored.

I suggest change all these defcustom instances something like:

(defcustom bbdb-create-hook nil
  :group 'bbdb
  :type 'hook)
(add-hook 'bbdb-create-hook 'bbdb-creation-date)

Leo


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb-mode-map should inherit from special-mode-map

2011-04-14 Thread Roland Winkler
On Thu Apr 14 2011 Ted Zlatanov wrote:
 On Wed, 13 Apr 2011 14:47:11 -0500 Roland Winkler wink...@gnu.org wrote: 
 
 RW On Wed Apr 13 2011 Ted Zlatanov wrote:
  It should be possible to support at least Emacs 23.x and XEmacs.  Gnus
  does it so we can look there for potential problems and solutions.
  
  You could ask David Engster d...@randomsample.de, who's setting up a
  Gnus buildbot, to do the same for BBDB.
  
  Also you should consider using ERT to write BBDB tests which can be run
  by the BBDB buildbot.
 
 RW Sounds all quite reasonable. At the same time I need to say that my
 RW time for such things is limited. So it can happen that I might do
 RW them rather slowly or never.
 
 Asking David is very easy.  I can do it for you if you like.
 
 The ERT tests are pretty simple.  I can get them started if you have no
 philosophical objections.

Quite honestly, I've never heard of ERT. If it's something that
helps to make sure that BBDB works reliably with GNU Emacs 23.x you
have me on the boat for this. -- Up to now, I simply used my latest
GNU Emacs as the only reference. Yet I am updating this every now
and then, without paying too much attention what has changed as long
as things work for me. For BBDB this is certainly not a good
strategy. If ELT can help to do this better, that's great!

If you can contact David to get this going, yet better; thanks a
lot. (Is there some web page documenting ELT? I quickly searched it,
but I could not find it.)

My main concern is XEmacs support. While I am not at all opposed to
having this (re)added to BBDB, it is simply something where I do not
know about and it ranks low on my personal agenda.

If anybody is willing to work on this, please let me know.

Roland

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Non-nil default value in hook variables

2011-04-14 Thread Roland Winkler
On Fri Apr 15 2011 Leo wrote:
 I suggest change all these defcustom instances something like:
 
 (defcustom bbdb-create-hook nil
   :group 'bbdb
   :type 'hook)
 (add-hook 'bbdb-create-hook 'bbdb-creation-date)

Agreed and thanks, that looks much cleaner!

Roland

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: [BBDB] Changelog 2010-04-10

2011-04-14 Thread Didier Verna
Roland Winkler wink...@gnu.org wrote:

 First of all, the most noteworthy change is that BBDB has been
 transfered from CVS to git. So for anonymous checkout, you should now
 use

  For those of us who had write access to the old repo, is that still
the case ?


 What are the changes in the latest code?

  Is the net field still a list of email addresses?


Thanks for the rejuvenation cure on BBDB!

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Non-nil default value in hook variables

2011-04-14 Thread Stefan Monnier
 I suggest change all these defcustom instances something like:
 
 (defcustom bbdb-create-hook nil
 :group 'bbdb
 :type 'hook)
 (add-hook 'bbdb-create-hook 'bbdb-creation-date)

 Agreed and thanks, that looks much cleaner!

But then don't define them as defcustom but just defvars since Custom
gets confused by the add-hook.


Stefan


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Non-nil default value in hook variables

2011-04-14 Thread Roland Winkler
On Thu Apr 14 2011 Stefan Monnier wrote:
  I suggest change all these defcustom instances something like:
  
  (defcustom bbdb-create-hook nil
  :group 'bbdb
  :type 'hook)
  (add-hook 'bbdb-create-hook 'bbdb-creation-date)
 
  Agreed and thanks, that looks much cleaner!
 
 But then don't define them as defcustom but just defvars since Custom
 gets confused by the add-hook.

...another good point! -- It would be nice to have a possibility to
define hook variables with defcustom such that these variables can
have a non-nil default value. But the more I think about this, the
more this appears to be a nasty and messy problem (allowing the user
both to extend the hook and to replace the hook). Oh well...

Roland

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Non-nil default value in hook variables

2011-04-14 Thread Roland Winkler
On Thu Apr 14 2011 Stefan Monnier wrote:
  I suggest change all these defcustom instances something like:
  
  (defcustom bbdb-create-hook nil
  :group 'bbdb
  :type 'hook)
  (add-hook 'bbdb-create-hook 'bbdb-creation-date)
 
  Agreed and thanks, that looks much cleaner!
 
 But then don't define them as defcustom but just defvars since Custom
 gets confused by the add-hook.

One more thought on this:

What should someone do who simply wants the hook to be nil?
If add-hook is called explicitly in bbdb.el such people are stuck:
their setting is lost when bbdb.el is loaded (whereas there was no
such problem with the original code where the default value of the hook
variable is set with a call to defcustom).

It seems to me that whatever scheme is used here, at best it can
only make some people happy. Oh well!

(Yet here it is probably more likely that people want to add
elements to the hook than making it nil. This makes calling add-hook
in bbdb.el the better solution here.)

Roland

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Is the feature to add/update record when sending emails useful?

2011-04-14 Thread Leo
Hi,

I personally haven't used this much in Emacs. But since gmail does this
and I have found it useful at times, I wonder if this feature should be
part of the bbdb-mua feature set.

Leo


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Non-nil default value in hook variables

2011-04-14 Thread Leo
On 2011-04-15 10:15 +0800, Roland Winkler wrote:
 One more thought on this:

 What should someone do who simply wants the hook to be nil?
 If add-hook is called explicitly in bbdb.el such people are stuck:
 their setting is lost when bbdb.el is loaded (whereas there was no
 such problem with the original code where the default value of the hook
 variable is set with a call to defcustom).

When people use add-hook they think they are adding another function to
a hook so if this isn't the case it will surprise them. People who are
setting hook to nil is in a different thinking.

 It seems to me that whatever scheme is used here, at best it can
 only make some people happy. Oh well!

 (Yet here it is probably more likely that people want to add
 elements to the hook than making it nil. This makes calling add-hook
 in bbdb.el the better solution here.)

 Roland

Leo


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/