From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: Re: No completion when querying for property value in capture template Date: Thu, 07 Jun 2018 17:21:15 +0200 Message-ID: <87sh5y1v2s.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQwj4-0001Ko-Vs for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 11:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQwj0-0008AN-W7 for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 11:21:22 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:39733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQwj0-00089z-Ov for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 11:21:18 -0400 Received: by mail-wm0-x231.google.com with SMTP id p11-v6so19964686wmc.4 for ; Thu, 07 Jun 2018 08:21:18 -0700 (PDT) In-Reply-To: (Eric Danan's message of "Thu, 7 Jun 2018 15:05:55 +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" To: Eric Danan Cc: emacs-orgmode@gnu.org Hello, As far as I know it is not currently possible to get property auto-completion from the property list of the file itself. but you could still make use of the stock property in the template and auto-complete from there For instance: ("T" "TEST" entry (file+headline"/tmp/test.org" "drill") "** TEST \n :PROPERTIES:\n :Effort: %^{prompt|0:10|0:20|0:30|1:00|2:00|3:00}\n :END: \n %^{PROMPT} " ) see the rest of the thread for more details http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01339.html Would there be a way to for the capture template to read this info in the future? For instance to read the column format for the entire file like #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO HTH, Jeremie Eric Danan writes: > Hello, > > There seems to be an old thread about this but I didn't find an answer > there: > > http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01079.html > > If, from an org file containing two entries with respective values > "foobar" and "foobaz" for property "prop", I call "org-set-property" to > set property "prop", then the two values "foobar" and "foobaz" are > offered as completions. > > But if I define a capture template with that file as target and the > element "%^{prop}p" in the template, then no completetion is offered when > I am queried for the property value. That makes this template element > much less usable in my opinion. Is it a bug? > > I tested with "emacs -q" > GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin) of 2018-05-28 > Org mode version 9.1.13 (9.1.13-elpaplus @ /c/test/.emacs.d/elpa/ > org-plus-contrib-20180604/) > > I'm happy to help with further testing if needed. > > Thanks in advance, > > Eric