all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric James Michael Ritz <lobbyjones@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Best Way to Change Code to Use cl-lib
Date: Sun, 16 Dec 2012 02:11:07 -0500	[thread overview]
Message-ID: <50CD740B.7070908@gmail.com> (raw)

(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 南無妙法蓮華經



             reply	other threads:[~2012-12-16  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16  7:11 Eric James Michael Ritz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-12-15 17:54 Best Way to Change Code to Use cl-lib Eric James Michael Ritz
2012-12-16 16:00 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50CD740B.7070908@gmail.com \
    --to=lobbyjones@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.