From mboxrd@z Thu Jan 1 00:00:00 1970 From: tom Subject: Re: little elisp help? Date: Wed, 2 Jul 2014 17:09:14 -0500 Message-ID: References: <874myzy02u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd7668e8d5f2704fd3d24fb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2SiK-0002Ai-IZ for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:09:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2SiJ-0006Gj-QM for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:09:16 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:62511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2SiJ-0006Ge-LB for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:09:15 -0400 Received: by mail-oa0-f41.google.com with SMTP id l6so13122044oag.28 for ; Wed, 02 Jul 2014 15:09:15 -0700 (PDT) In-Reply-To: <874myzy02u.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7bd7668e8d5f2704fd3d24fb Content-Type: text/plain; charset=ISO-8859-1 this (setq org-link-abbrev-alist '(("foo" . "file:/path/to/%s.txt"))) allow me to do this [[foo:file to open]] but it creates a file with spaces in the name. so I'd like to replace "%s" with "%(myfun)". with your example, how can I get "foo bar loo" from [[foo:foo bar loo]] see what I mean? --047d7bd7668e8d5f2704fd3d24fb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
this

(setq org-li= nk-abbrev-alist
'(("foo" . "file:/p= ath/to/%s.txt")))

allow me to do this

= [[foo:file to open]]

= but it creates a file with spaces in the name. =A0so I'd like to re= place "%s" with "%(myfun)".

= with your example, how can I get "foo bar =A0loo" from=

= [[foo:foo bar =A0loo]]

= see what I mean?
--047d7bd7668e8d5f2704fd3d24fb--