From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: little elisp help? Date: Wed, 02 Jul 2014 15:54:12 -0700 Message-ID: <8761jfnzhn.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2TQA-0000Rx-AY for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2TQ2-0002pC-Rk for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:54:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:57321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2TQ2-0002p1-KY for emacs-orgmode@gnu.org; Wed, 02 Jul 2014 18:54:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X2TQ1-0002Pj-2g for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 00:54:25 +0200 Received: from 63.226.249.211 ([63.226.249.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2014 00:54:25 +0200 Received: from eric by 63.226.249.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2014 00:54:25 +0200 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 tom writes: > hi guys, > > I have this: > > (setq org-link-abbrev-alist > '(("foo" . "file:/path/to/%(myfun).txt"))) > > I'm trying to have "myfun" replace any spaces in the tag with > underscores, but I'm not having much luck. Would someone mind giving > me a hint? > > Thanks. You might consider using the built-in `org-link-escape', it's likely to do everything you need, and it's battle-tested!