Hi,

when compiling BBDB with Emacs 22.2 or newer, I get the following
warning:

,----
| Compiling file [...]/bbdb/lisp/bbdb-whois.el at Sun Apr 13 14:12:13 2008
| bbdb-whois.el:25:1:Warning: !! The file uses old-style backquotes !!
| This functionality has been obsolete for more than 10 years already
| and will be removed soon.  See (elisp)Backquote in the manual.
`----

,----[ (info "(elisp)Backquote") ]
|    In old Emacs versions, before version 19.29, ``' used a different
| syntax which required an extra level of parentheses around the entire
| backquote construct.  Likewise, each `,' or `,@' substitution required
| an extra level of parentheses surrounding both the `,' or `,@' and the
| following expression.  The old syntax required whitespace between the
| ``', `,' or `,@' and the following expression.
| 
|    This syntax is still accepted, for compatibility with old Emacs
| versions, but we recommend not using it in new programs.
`----

--8<---------------cut here---------------start------------->8---
(defmacro bbdb-add-to-field (record field text)
  (let ((get (intern (concat "bbdb-record-" (symbol-name field))))
    (set (intern (concat "bbdb-record-set-" (symbol-name field)))))
    (` (let ((old ((, get) (, record)))
         (text (, text)))
     (or (member text old)
         ((, set) (, record) (nconc old (list text))))))))
--8<---------------cut here---------------end--------------->8---

IIRC in all packages bundled with Emacs, the use of old style
backquotes have been fixed.

Emacs  : GNU Emacs 22.2.50.4 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2008-09-04 on viandante
Package: BBDB 2.36 devo
(CVS updated today)

Bye, Reiner.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to