* babel: tblname not being expanded into function/var
@ 2011-12-07 7:14 Nathan Neff
2011-12-07 16:31 ` Thomas S. Dye
0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neff @ 2011-12-07 7:14 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I've been tinkering with different operating systems lately, and
the past couple of times I've tried to install my org-mode setup,
I receive this error:
>Symbol's value as variable is void: shortcut-definition list
My init.el loads org-mode-config.org using org-babel, like this:
(require 'org-install)
(org-babel-load-file "~/.emacs.d/org-mode-config.org")
Here's the relevant section of my org-mode-config.org file:
#+TBLNAME: shortcut-definition-list
| Blog | <f6> b | blog |
| Customer 1 | <f6> m | customer1 |
#+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
#+begin_src emacs-lisp
(require 'cl)
(defun map-navigation-shortcuts(shortcut-def)
(global-set-key (read-kbd-macro (nth 1 shortcut-def))
(lexical-let ((shortcut-def shortcut-def))
(lambda ()
(interactive)
(org-id-goto (nth 2 shortcut-def))))))
(mapcar #'map-navigation-shortcuts shortcut-definition-list)
#+end_src
-------------- end snippets -----------
I've found that the babel-generated "org-mode-config.el" does *not* contain
a variable called "shortcut-definition-list" on my new OS (Arch
Linux). On my Mac,
the org-mode-config.el *does* contain a variable called
"shortcut-definition-list".
On my new OS, I'm using Emacs version 23.3.1 and org-mode version 7.7 (latest).
I've run make clean && make && sudo make install in my src/org
directory, so I'm pretty
sure I'm using the right code.
I had this same problem when I ran Ubuntu 11.11, and I was pulling my
hair out trying to
get this problem fixed, and it suddenly went away! This indicates to
me that it could be a
transient problem like having some temp files laying around or
something like that.
Any advice or help is appreciated!!
Thanks,
--Nate
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: babel: tblname not being expanded into function/var
2011-12-07 7:14 babel: tblname not being expanded into function/var Nathan Neff
@ 2011-12-07 16:31 ` Thomas S. Dye
2011-12-09 4:17 ` Nathan Neff
0 siblings, 1 reply; 3+ messages in thread
From: Thomas S. Dye @ 2011-12-07 16:31 UTC (permalink / raw)
To: Nathan Neff; +Cc: emacs-orgmode
Hi Nathan,
I believe #+srcname: is changed to #+name: now. I don't know if this is
contributing to your problem.
All the best,
Tom
Nathan Neff <nathan.neff@gmail.com> writes:
> Hello,
>
> I've been tinkering with different operating systems lately, and
> the past couple of times I've tried to install my org-mode setup,
> I receive this error:
>
>>Symbol's value as variable is void: shortcut-definition list
>
> My init.el loads org-mode-config.org using org-babel, like this:
> (require 'org-install)
> (org-babel-load-file "~/.emacs.d/org-mode-config.org")
>
> Here's the relevant section of my org-mode-config.org file:
>
> #+TBLNAME: shortcut-definition-list
> | Blog | <f6> b | blog |
> | Customer 1 | <f6> m | customer1 |
>
> #+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
> #+begin_src emacs-lisp
> (require 'cl)
> (defun map-navigation-shortcuts(shortcut-def)
> (global-set-key (read-kbd-macro (nth 1 shortcut-def))
> (lexical-let ((shortcut-def shortcut-def))
> (lambda ()
> (interactive)
> (org-id-goto (nth 2 shortcut-def))))))
> (mapcar #'map-navigation-shortcuts shortcut-definition-list)
> #+end_src
>
> -------------- end snippets -----------
> I've found that the babel-generated "org-mode-config.el" does *not* contain
> a variable called "shortcut-definition-list" on my new OS (Arch
> Linux). On my Mac,
> the org-mode-config.el *does* contain a variable called
> "shortcut-definition-list".
>
> On my new OS, I'm using Emacs version 23.3.1 and org-mode version 7.7 (latest).
> I've run make clean && make && sudo make install in my src/org
> directory, so I'm pretty
> sure I'm using the right code.
>
> I had this same problem when I ran Ubuntu 11.11, and I was pulling my
> hair out trying to
> get this problem fixed, and it suddenly went away! This indicates to
> me that it could be a
> transient problem like having some temp files laying around or
> something like that.
>
> Any advice or help is appreciated!!
>
> Thanks,
> --Nate
>
>
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: babel: tblname not being expanded into function/var
2011-12-07 16:31 ` Thomas S. Dye
@ 2011-12-09 4:17 ` Nathan Neff
0 siblings, 0 replies; 3+ messages in thread
From: Nathan Neff @ 2011-12-09 4:17 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode
On Wed, Dec 7, 2011 at 10:31 AM, Thomas S. Dye <tsd@tsdye.com> wrote:
> Hi Nathan,
>
> I believe #+srcname: is changed to #+name: now. I don't know if this is
> contributing to your problem.
Yes indeed!!! Thank you very much. I changed
#+srcname: to #+name: below, and this fixed the problem. I checked
the org-babel-src-name variable and it is now "^[ ]*#\\+name:[
]*"
Thanks,
--Nate
>> #+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
>> #+begin_src emacs-lisp
>> (require 'cl)
>> (defun map-navigation-shortcuts(shortcut-def)
>> (global-set-key (read-kbd-macro (nth 1 shortcut-def))
>> (lexical-let ((shortcut-def shortcut-def))
>> (lambda ()
>> (interactive)
>> (org-id-goto (nth 2 shortcut-def))))))
>> (mapcar #'map-navigation-shortcuts shortcut-definition-list)
>> #+end_src
>>
>> -------------- end snippets -----------
>> I've found that the babel-generated "org-mode-config.el" does *not* contain
>> a variable called "shortcut-definition-list" on my new OS (Arch
>> Linux). On my Mac,
>> the org-mode-config.el *does* contain a variable called
>> "shortcut-definition-list".
>>
>> On my new OS, I'm using Emacs version 23.3.1 and org-mode version 7.7 (latest).
>> I've run make clean && make && sudo make install in my src/org
>> directory, so I'm pretty
>> sure I'm using the right code.
>>
>> I had this same problem when I ran Ubuntu 11.11, and I was pulling my
>> hair out trying to
>> get this problem fixed, and it suddenly went away! This indicates to
>> me that it could be a
>> transient problem like having some temp files laying around or
>> something like that.
>>
>> Any advice or help is appreciated!!
>>
>> Thanks,
>> --Nate
>>
>>
>
> --
> Thomas S. Dye
> http://www.tsdye.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-09 4:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 7:14 babel: tblname not being expanded into function/var Nathan Neff
2011-12-07 16:31 ` Thomas S. Dye
2011-12-09 4:17 ` Nathan Neff
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).