From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Checkbox cookies not shown anymore when refiling Date: Mon, 07 Mar 2016 12:23:10 +0100 Message-ID: <87wppey1k1.fsf@nicolasgoaziou.fr> References: <87h9gnvzxm.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actDq-0004ms-4X for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:21:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1actDl-0004oV-Ou for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:21:10 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actDl-0004oR-IS for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:21:05 -0500 In-Reply-To: (Georges's message of "Fri, 4 Mar 2016 09:10:44 +0000 (UTC)") 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: Georges Cc: emacs-orgmode@gnu.org Hello, Georges writes: > Nicolas Goaziou nicolasgoaziou.fr> writes: > > gekoc laposte.net> writes: > >>> With Org-mode version 8.3.4 (8.3.4-5-gdc68d2-elpa), it seems the >>> checkbox cookies are not shown in the possible refile locations >>> anymore when calling org-agenda-refile. > >> Actually, that was the intent since commit >> 0c67513e7dbc260ba24552ae71d4cac40e5cec2a (Sep 2010), but the regexp was >> buggy. This was fixed recently. > > Which regexp are refering to? Did you look at the commit? This is a one-line change introducing a single regexp. > I would very much like the checkbox cookies "[2/5]" be shown at all > times. The problem is that it could clutter the display, and statistics cookie are, for most use-cases, I assume, not an interesting information when it comes to refiling. > Is there an easy way I can tweak this regexp to do so? No, there isn't. At the moment, your option is to write an advice, as suggested earlier. I guess we could introduce a variable, e.g., `org-refile-displayed-headline-function' which could contain a function called with no argument and returning a string to use as the displayed value for the entry in the completion menu. It would default to the current behaviour. I have the feeling it would be over-engineering, tho. What do you, and others think? Regards, -- Nicolas Goaziou