From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Politowski Subject: %K template escape doesn't link to exact task headline Date: Thu, 13 Jul 2017 12:54:10 +0200 Message-ID: <20170713105410.mfjzdngtqojuhuu5@meep.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVblN-0002lU-EU for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 06:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVblK-0006Sz-Ck for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 06:54:29 -0400 Received: from mx1.icm.edu.pl ([213.135.59.49]:33533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVblK-0006Ph-4b for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 06:54:26 -0400 Received: from smtp.icm.edu.pl (mail.icm.edu.pl [213.135.59.43]) by mx1.icm.edu.pl (Postfix) with ESMTP for ; Thu, 13 Jul 2017 12:54:13 +0200 (CEST) Received: from Amber.meep.pl (31-179-121-212.dynamic.chello.pl [31.179.121.212]) by smtp.icm.edu.pl (Postfix) with ESMTPSA id B662B1FC48 for ; Thu, 13 Jul 2017 12:54:13 +0200 (CEST) Received: from mike by Amber.meep.pl with local (Exim 4.89) (envelope-from ) id 1dVbl4-0008Kf-Tp for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 12:54:10 +0200 Content-Disposition: inline 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: emacs-orgmode@gnu.org Hello everyone and thank you for the fascinating org mode, Is the behaviour of %K a bug in the documentation, in the implementation, or just my unfounded expectation? It is supposed to link "to the currently clocked task" but it is implemented in org-capture.el as (v-K (if (marker-buffer org-clock-marker) (org-make-link-string (buffer-file-name (marker-buffer org-clock-marker)) org-clock-heading))) which only puts the headline text in the link description, the actual link is just to the task file - not what I would expect. --=20 Micha=B3 Politowski