From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: The "problem" with `flet' in Org-mode and (future) Emacs 24.2 Date: Thu, 19 Jul 2012 21:33:57 +0900 Message-ID: <20120719123357.GC890@smoon> References: <20120718070338.GA907@smoon> <87bojdc9ja.fsf@gmx.com> <87sjcoudfm.fsf@Rainer.invalid> <87ipdko0al.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srpvq-0001PX-PL for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srpvf-0004g2-L1 for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:34:14 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:45539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srpvf-0004fk-E1 for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:34:03 -0400 Received: by bkcjc3 with SMTP id jc3so2359531bkc.0 for ; Thu, 19 Jul 2012 05:34:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87ipdko0al.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, ** Eric Schulte [2012-07-18 22:13:45 -0600]: > Achim Gratz writes: >> Eric Schulte writes: >>> This attached alternate patch introduces two new compatibility macros >>> named `org-flet' and `org-labels' in org-macs.el. These macros are >>> aliased to the appropriate cl macro depending on the version of Emacs in >>> use. >> Wouldn't you want to use defmacro instead of defalias? > Why? Using `defalias' seems simpler because with `defmacro' I would > have to copy the macro arguments and stub out a trivial macro body. > Also, this way the version check only happens once (at load time), > rather than every time the macro is called. >> Also, I'd think that these two macros should go into org-compat.el >> instead of org-macs.el. > Agreed, I forgot about org-compat. The alternate patch below moves > these definitions from org-macs.el to org-compat.el. > Thanks, [...] This is interesting, but seems not fully functional. After applying patch I tried export to html but got Symbol's function definition is void: matches I'll compare your and mine patches later. --- WBR, Vladimir Lomov -- Never underestimate the bandwidth of a station wagon full of tapes. -- Dr. Warren Jackson, Director, UTCS