From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Buffer local alias? Date: Tue, 14 Jan 2014 09:00:30 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W39EV-0006kc-7Q for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:01:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W39EO-0003oV-9T for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:01:03 -0500 Received: from alt-proxy17.mail.unifiedlayer.com ([66.147.241.60]:56768) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1W39EO-0003oK-13 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:00:56 -0500 Received: from [72.253.144.27] (port=54106 helo=poto.myhome.westell.com) by box472.bluehost.com with esmtpsa (UNKNOWN:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1W39E1-0004Of-35 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 12:00:33 -0700 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: Org-mode Aloha all, My evolving reproducible research documents make use of Dan Davison's idea recently re-introduced by Seb Vauban: * Local variables :noexport: # Local Variables: # eval: (org-sbe "setup-common-lisp") # End: Here, the source code block named `setup-common-lisp' is defined elsewhere in the file. The problem from the point of view of reproducible research is that org-sbe used to be named sbe, so for the research to be reproducible across that recent change I need to be able to configure things so the command that happens to be on the user's computer is used. I read about defalias and saw that this should be used at the point that the original definition is made, so I followed the pointer to fset and naively tried this in the local variables: # eval: (and (boundp 'org-sbe) (not (boundp 'sbe)) (fset 'sbe 'org-sbe)) # eval: (sbe "setup-common-lisp) But this gets me the following error: File local-variables error: (void-function sbe) Can someone offer a suggestion? All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com