[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Buffer local alias?
From: |
Thomas S. Dye |
Subject: |
[O] Buffer local alias? |
Date: |
Tue, 14 Jan 2014 09:00:30 -1000 |
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
- [O] Buffer local alias?,
Thomas S. Dye <=
- Re: [O] Buffer local alias?, Nick Dokos, 2014/01/14
- Re: [O] Buffer local alias?, Bastien, 2014/01/14
- Re: [O] Buffer local alias?, Thomas S. Dye, 2014/01/14
- Re: [O] Buffer local alias?, Andreas Leha, 2014/01/14
- Re: [O] Buffer local alias?, Thomas S. Dye, 2014/01/14
- Re: [O] Buffer local alias?, Andreas Leha, 2014/01/15
- Re: [O] Buffer local alias?, Eric S Fraga, 2014/01/15
- Re: [O] Buffer local alias?, Sebastien Vauban, 2014/01/15
- Re: [O] Buffer local alias?, Andreas Leha, 2014/01/15
- Re: [O] Buffer local alias?, Achim Gratz, 2014/01/15