From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: %(SEXP) with %c in org-capture templates Date: Sun, 24 Jul 2011 18:48:13 +0200 Message-ID: <87hb6btrru.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql488-000811-Gr for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 15:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql487-0007TZ-2O for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 15:14:24 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:50421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql486-0007Rs-UN for emacs-orgmode@gnu.org; Sun, 24 Jul 2011 15:14:23 -0400 Received: by mail-wy0-f169.google.com with SMTP id 36so2919967wyg.0 for ; Sun, 24 Jul 2011 12:14:22 -0700 (PDT) In-Reply-To: ("Philipp \=\?iso-8859-1\?Q\?M\=F6ller\=22's\?\= message of "Sat, 16 Jul 2011 00:38:09 +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: Philipp =?iso-8859-1?Q?M=F6ller?= Cc: emacs-orgmode@gnu.org Hi Philipp, Philipp Möller writes: > nevermind. I figured out that the expansion order of %s and s > expressions is the problem and also the reason for the with the > correct URL. > The solution is to use %(get-page-title (current-kill 0)). Thanks for letting us know! > Can this be added to the documentation or is it supposed to be obvious > from the order of available template expansions? IMHO this should go in the documentation -- could you provide a patch for this? Thanks, -- Bastien