[Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Štěpán Němec
Nathan Neff nathan.n...@gmail.com writes: I tried something like this, but all I get is Wrong type argument: integer-or-marker-p, (quote (second shortcut-def)) #+srcname: map-nav(navigation-shortcuts=navigation-shortcuts) #+begin_src emacs-lisp (defun map-navigation-shortcuts (shortcut-def)

[Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Nathan Neff
On Mon, May 10, 2010 at 6:35 AM, Štěpán Němec step...@gmail.com wrote: Nathan Neff nathan.n...@gmail.com writes: I tried something like this, but all I get is Wrong type argument: integer-or-marker-p, (quote (second shortcut-def)) #+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)

Re: [Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Stephan Schmitt
Hi Nathan, when the lambda form is evaluated (when you press f6) the variable shortcut-def doesn't exist any more. The problem is that elisp doesn't support closures. See this info page: (elisp) Top Variables Variable Scoping Extent As a workaraound you can save the table in a global

[Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Štěpán Němec
Stephan Schmitt drmab...@cs.tu-berlin.de writes: Hi Nathan, when the lambda form is evaluated (when you press f6) the variable shortcut-def doesn't exist any more. The problem is that elisp doesn't support closures. See this info page: (elisp) Top Variables Variable Scoping Extent As

[Orgmode] Re: Frequently used files/headings

2010-05-06 Thread Nathan Neff
On Thu, Apr 29, 2010 at 10:47 AM, Nathan Neff nathan.n...@gmail.com wrote: Currently, I'm using org-id-get-create to generate a unique ID for headings that I frequently go to in org-mode. * Foo :PROPERTIES: :ID: F3B14102-A66D-408C-8833-1F9CF7E5047C :END: Then, I copy the newly created ID