> * Stefan Monnier <zbaa...@veb.hzbagerny.pn> [2011-04-13 12:32:42 -0300]:
>
>> +  (when (boundp 'revert-buffer-function)
>> +    (setq revert-buffer-function 'bbdb-revert-buffer))
>
> I recommend to use (set (make-local-variable <foo>) <bar>) when setting
> a buffer-local variable, even if you know that the variable is
> automatically buffer-local.  One of the benefits is that you don't need
> to check `boundp' in that case.

I check for `boundp' because bbdb might be supposed to work on emacsen
which may lack `revert-buffer-function'.

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X 
11.0.60900031
http://www.PetitionOnline.com/tap12009/ http://honestreporting.com
http://camera.org http://mideasttruth.com http://memri.org
In the race between idiot-proof software and idiots, the idiots are winning.


------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to