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: Re: Best Way to Change Code to Use cl-lib Date: Sun, 16 Dec 2012 02:11:07 -0500 Message-ID: <50CD740B.7070908@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1355641876 16344 80.91.229.3 (16 Dec 2012 07:11:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2012 07:11:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 16 08:11:31 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 1Tk8Nl-0000gT-K1 for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2012 08:11:29 +0100 Original-Received: from localhost ([::1]:54429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tk8NY-00081O-9r for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2012 02:11:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tk8NU-00081J-3C for emacs-devel@gnu.org; Sun, 16 Dec 2012 02:11:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tk8NR-0003Aw-CS for emacs-devel@gnu.org; Sun, 16 Dec 2012 02:11:12 -0500 Original-Received: from mail-ye0-f169.google.com ([209.85.213.169]:35841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tk8NR-0003As-8F for emacs-devel@gnu.org; Sun, 16 Dec 2012 02:11:09 -0500 Original-Received: by mail-ye0-f169.google.com with SMTP id l13so984630yen.0 for ; Sat, 15 Dec 2012 23:11:08 -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=QQXFBM9n0B0iYIBnJKByvvChp4JiKlM1XEoG/DMr+FU=; b=Z7cl6/3qqXFOXdcB7714GQUZ/WEIlGbR7OYMk+upXb+M6iV5APwqha2RPHVKb8WeiT JZ2+Vfy2xYJpH/INLJOqiCkv1UahXJxmAReFpgOLT/TCcyDWK0xvteKEEtd/4P+Coci/ ON4EQRbHOsq58B5W907K/m9W0Mz37mwxAtYutAkBuDizAfTz9RdMBXD/e1qRfg8eEp6y im2f+TwEwHRDM7U3xMchD9Mm1jIEZRTKmYpCeKygoza9BUKE1kFHOl6UoneJ1yafbYRo pBcTF9IqzUtVRpafKEoPwPMxleQJdhnzvxUwJHl7EJ5MZyyHeyKXfN8LcEl/247OAPgE uRlw== Original-Received: by 10.236.118.195 with SMTP id l43mr3304435yhh.58.1355641868833; Sat, 15 Dec 2012 23:11:08 -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 e18sm9743792yhi.0.2012.12.15.23.11.07 (version=SSLv3 cipher=OTHER); Sat, 15 Dec 2012 23:11:07 -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.213.169 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:155593 Archived-At: (Note: My apologies for sending this twice. The first time I forgot to not send the email in HTML format, and when I saw it in my newsgroup reader I realized how unreadable that made it. So here it is again as plain text. Again, sorry for the noise.) 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 南無妙法蓮華經