From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roberto Huelga Subject: Re: Patch org-capure-fill-template Date: Sun, 2 Nov 2014 20:59:52 +0100 Message-ID: References: <8761f1eeya.fsf@nicolasgoaziou.fr> <87wq7eaqdl.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl1Jw-0004K8-15 for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 15:00:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl1Jv-0002X6-6J for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 15:00:15 -0500 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:54622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl1Ju-0002Ww-Uh for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 15:00:15 -0500 Received: by mail-pd0-f182.google.com with SMTP id fp1so10343901pdb.13 for ; Sun, 02 Nov 2014 12:00:13 -0800 (PST) In-Reply-To: <87wq7eaqdl.fsf@nicolasgoaziou.fr> 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: Roberto Huelga , emacs-orgmode@gnu.org I founded a section in the org-contribute.html with the names of the tiny change contributors, Do you know how could I get my name there? This is my second tinychange patch. And get my name in the list will make my day. Thanks 2014-11-02 10:44 GMT+01:00 Nicolas Goaziou : > Roberto Huelga writes: > >> Suppose you want to write the parent directory name in your capture so write a >> template like >> >> "* %(file-name-nondirectory (directory-file-name (file-name-directory \"%F\")))" >> >> Without the patch, file-name-directory get the useless string "%F" >> instead of a string >> with the full path name of the file. >> >> The orgmode manual template expansion page describe >> >> %(sexp) Evaluate Elisp sexp and replace with the result. >> For convenience, %:keyword (see below) placeholders >> within the expression will be expanded prior to this. >> The sexp must return a string. >> >> But without the patch is not true, first is expanded %(sexp) and after >> that the %OneLetter and later the %:keyword > > Understood. Applied, thank you. > > Regards,