emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Frequently used files/headings


From: Štěpán Němec
Subject: [Orgmode] Re: Frequently used files/headings
Date: Mon, 10 May 2010 13:35:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nathan Neff <address@hidden> 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)
> (global-set-key (kbd (second shortcut-def)) (lambda () "Goto Foo Org File"
>     (interactive)
>     (org-id-goto '(third shortcut-def)))))
>
> (mapcar #'map-navigation-shortcuts navigation-shortcuts)
>
> #+end_src
>
> Can anyone point out where I'm going wrong?

I haven't tried your code, but the way you call `kbd' is obviously
wrong.

`kbd' is a macro and does not evaluate its arguments; try
using `read-kbd-macro' instead.

HTH,

Štěpán




reply via email to

[Prev in Thread] Current Thread [Next in Thread]