From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: %K template escape doesn't link to exact task headline Date: Thu, 13 Jul 2017 14:27:11 +0200 Message-ID: <87mv88frog.fsf@nicolasgoaziou.fr> References: <20170713105410.mfjzdngtqojuhuu5@meep.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVdDW-0006Sj-WC for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:27:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVdDS-0006rA-Ve for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:27:38 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVdDS-0006qm-Oj for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:27:34 -0400 In-Reply-To: <20170713105410.mfjzdngtqojuhuu5@meep.pl> (Michal Politowski's message of "Thu, 13 Jul 2017 12:54:10 +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: Michal Politowski Cc: emacs-orgmode@gnu.org Hello, Michal Politowski writes: > 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. Fixed. Thank you. Regards, -- Nicolas Goaziou