From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.devel Subject: Free variable warning about bbdb-version (bug#19678) Date: Fri, 06 Mar 2015 03:48:39 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425631758 25032 80.91.229.3 (6 Mar 2015 08:49:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 08:49:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 06 09:49:10 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YTnwI-0004YZ-CR for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 09:48:58 +0100 Original-Received: from localhost ([::1]:56822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnwH-00083X-N7 for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 03:48:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnwA-0007wt-II for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:48:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTnw2-0007OQ-66 for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:48:50 -0500 Original-Received: from mail-ie0-f175.google.com ([209.85.223.175]:44898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnw2-0007OK-1d for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:48:42 -0500 Original-Received: by iecar1 with SMTP id ar1so83772076iec.11 for ; Fri, 06 Mar 2015 00:48:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-type; bh=xwhUU+0/ik5aDF351ExQXMBsuy0ivod0WYWi8hp4oj4=; b=l9jiXxi2PwA1+cOlY7BfGlskg/r6maOIYRRI/rOELDyfhxcveSzLyY7Av6Di6MDWm2 TRh83s2hoiE3iImFFWezVHPhl+aXULI6CQ8UDle+D7+iSyPvG1ej0ptbdzLVEDMhKrms hM52DojyDUsOg8TRWotjVYJKLuFG4KMye6qEGNqT1cXLSvYvghmvACeLS1ygAmP8IUI7 kQohFwwwAYlI8a6PWacCYzJha3z/hMkOUzmacKsFlQYkL7yDZMgVRct8ODh3L+SWAWxA 4/idsI5tYYbLX/qWJbqQm6doao541ffOCVIENrrftnxEpXGEQSCmCDlAZ4my8SHtRPLy Zjiw== X-Gm-Message-State: ALoCoQl8gtnuvGpNKXk9Q9jlwBLg+CMYLBNPkS9x1DXn0Xjged++SrQY7bv12OM8RdoKUO8YC9Hq X-Received: by 10.107.165.68 with SMTP id o65mr9603610ioe.56.1425631721465; Fri, 06 Mar 2015 00:48:41 -0800 (PST) Original-Received: from hp-dv5t (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by mx.google.com with ESMTPSA id l6sm586694igv.8.2015.03.06.00.48.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Mar 2015 00:48:40 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.223.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183689 Archived-At: Hi, I'm trying to make eudcb-bbdb.el compatible with BBDB 2 and BBDB 3. To check the version, I need something like: (if (version<= "3" bbdb-version) ...) but the byte compiler warns: Warning: reference to free variable `bbdb-version' I'd rather not introduce a new warning. Is there a good way to handle this? Adding (defvar bbdb-version) to eudcb-bbdb.el seems wrong, since the version check is assuming it's a constant defined by the external BBDB package. (The best solution would be to bundle BBDB 3 into Emacs -- I'm working toward this with Roland Winkler.) Thanks, Thomas