On Wed, 06 Apr 2011 09:22:49 +0200 Reiner Steib <reinersteib+gm...@imap.cc> 
wrote: 

RS> On Mon, Apr 04 2011, Ted Zlatanov wrote:
>> (unless (featurep 'bbdb3) ; or whatever
>> (defalias 'bbdb-search-organization 'bbdb-company)
>> (defalias 'bbdb-search-name 'bbdb-name))

RS> Please don't do it this way!  Gnus users have been bitten by bugs
RS> caused by such aliasing (of `replace-regexp-in-string' in
RS> color-theme).  The recommended way is like this:

RS> ,----[ (info "(elisp)Coding Conventions") ]
RS> |    * If a package needs to define an alias or a new function for
RS> |      compatibility with some other version of Emacs, name it with the
RS> |      package prefix, not with the raw name with which it occurs in the
RS> |      other version.  Here is an example from Gnus, which provides many
RS> |      examples of such compatibility issues.
RS> | 
RS> |           (defalias 'gnus-point-at-bol
RS> |             (if (fboundp 'point-at-bol)
RS> |                 'point-at-bol
RS> |               'line-beginning-position))
RS> `----

Sorry, I was doing a drive-by coding :)  You're right, the recommended
approach is much better.

Ted


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to