From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric James Michael Ritz Newsgroups: gmane.emacs.devel Subject: Best Way to Change Code to Use cl-lib Date: Sat, 15 Dec 2012 12:54:47 -0500 Message-ID: <50CCB967.8020301@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1355629071 3986 80.91.229.3 (16 Dec 2012 03:37:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2012 03:37:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 16 04:38:06 2012 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 1Tk53F-0005QL-Rs for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2012 04:38:06 +0100 Original-Received: from localhost ([::1]:33324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tk532-0002J7-Ns for ged-emacs-devel@m.gmane.org; Sat, 15 Dec 2012 22:37:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tjvwz-0003qK-Rf for emacs-devel@gnu.org; Sat, 15 Dec 2012 12:55:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tjvwx-0000mQ-4O for emacs-devel@gnu.org; Sat, 15 Dec 2012 12:55:01 -0500 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:50543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tjvww-0000mE-Vi for emacs-devel@gnu.org; Sat, 15 Dec 2012 12:54:59 -0500 Original-Received: by mail-gg0-f169.google.com with SMTP id u4so914655ggl.0 for ; Sat, 15 Dec 2012 09:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=zu6M2Gp1mvRyXjUpkXPf/QqdgUqExncMRJNI58WVo0U=; b=EXZvVlFzYiyJOTEKgcqPPdj07ywpygrXUCtIMv5OXMeQzDLEs0edTn/VMAzazmsn2W BSZKyuJp3hM0E7qqg7zrAPrmoM3bToMeOhAhWnb2cnT0d4UP/n2/qmuVHRkYPnuAJAW0 43KnogH2X9fgp4/JbgCP5Eih5kqiyQNCD2Gab8XqbHEfvlnJE8fr9HC29HG7ttJoV3+3 G0M4rXe+mtcFeUGrmhBQLD5Tlbgin+l0nacNHbrmIwza8MGYZczLir4jWamAOwlcmWaz MTwn0gR6+Zf+ew+V9xZTe+RwktmiZIez6lytwz/YjSYDqsEo3TSq1Nq7MNNuMaGQ2R8D AYig== Original-Received: by 10.236.181.225 with SMTP id l61mr9032260yhm.47.1355594096454; Sat, 15 Dec 2012 09:54:56 -0800 (PST) Original-Received: from [192.168.1.102] (66-191-203-11.dhcp.spbg.sc.charter.com. [66.191.203.11]) by mx.google.com with ESMTPS id u22sm8163249yhl.2.2012.12.15.09.54.52 (version=SSLv3 cipher=OTHER); Sat, 15 Dec 2012 09:54:55 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.161.169 X-Mailman-Approved-At: Sat, 15 Dec 2012 22:37:50 -0500 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:155589 Archived-At:

I maintain an Emacs package which currently uses cl and flet. With Emacs 24.3 replacing those with cl-lib and cl-flet respectively, what would be the best way to update the code? What I mean is, I want to make the change to cl-flet to be up-to-date with Emacs 24.3, but I do not want it to cause problems for users who have not upgraded their version of Emacs, because I know all of them will not. Is there a preferred way I can (or should) test for the current version and then use the appropriate library/macro? Or should I stick with the obsolete code and just accept the fact that the byte-compiler will give me warnings when using Emacs 24.3? Or is there a better way that I just don’t see?

Thanks in advanced for any help.

-- ejmr 南無妙法蓮華經