From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: Frequently used files/headings Date: Mon, 10 May 2010 13:35:32 +0200 Message-ID: <87fx20at17.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OBRHF-0003Th-VO for emacs-orgmode@gnu.org; Mon, 10 May 2010 07:36:02 -0400 Received: from [140.186.70.92] (port=42010 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBRH7-0003RQ-Fy for emacs-orgmode@gnu.org; Mon, 10 May 2010 07:36:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBRGt-0007R8-D5 for emacs-orgmode@gnu.org; Mon, 10 May 2010 07:35:53 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:40595) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBRGt-0007QM-82 for emacs-orgmode@gnu.org; Mon, 10 May 2010 07:35:39 -0400 Received: by fxm9 with SMTP id 9so602955fxm.0 for ; Mon, 10 May 2010 04:35:37 -0700 (PDT) In-Reply-To: (Nathan Neff's message of "Thu, 6 May 2010 02:06:56 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathan Neff Cc: emacs-orgmode Nathan Neff 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=3Dnavigation-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, =C5=A0t=C4=9Bp=C3=A1n