emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Checkbox cookies not shown anymore when refiling
@ 2016-03-03 21:46 --
  2016-03-04  0:39 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: -- @ 2016-03-03 21:46 UTC (permalink / raw)
  To: emacs-orgmode

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.

How can I have them appear again?

Besides, is there a way to have the TODO state be shown as well?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Checkbox cookies not shown anymore when refiling
  2016-03-03 21:46 Checkbox cookies not shown anymore when refiling --
@ 2016-03-04  0:39 ` Nicolas Goaziou
  2016-03-04  9:10   ` Georges
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-03-04  0:39 UTC (permalink / raw)
  To: --; +Cc: emacs-orgmode

Hello,

-- <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.

> How can I have them appear again?
>
> Besides, is there a way to have the TODO state be shown as well?

The most obvious way is to advise `org-get-outline-path' and provide
your own algorithm. If you don't need the cache and the heading
clean-up, it is pretty straightforward to implement.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Checkbox cookies not shown anymore when refiling
  2016-03-04  0:39 ` Nicolas Goaziou
@ 2016-03-04  9:10   ` Georges
  2016-03-07 11:23     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Georges @ 2016-03-04  9:10 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:

gekoc <gekoc <at> 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?

I would very much like the checkbox cookies "[2/5]" be shown at all times. 
Is there an easy way I can tweak this regexp to do so?

--
Georges

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Checkbox cookies not shown anymore when refiling
  2016-03-04  9:10   ` Georges
@ 2016-03-07 11:23     ` Nicolas Goaziou
  2016-03-07 19:53       ` Georges
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-03-07 11:23 UTC (permalink / raw)
  To: Georges; +Cc: emacs-orgmode

Hello,

Georges <gekoc@laposte.net> writes:

> Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:
>
> gekoc <gekoc <at> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Checkbox cookies not shown anymore when refiling
  2016-03-07 11:23     ` Nicolas Goaziou
@ 2016-03-07 19:53       ` Georges
  2016-03-07 21:44         ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Georges @ 2016-03-07 19:53 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:

> Did you look at the commit? This is a one-line change introducing
> a single regexp.

This regexp apparently is not active anymore

So, I've tweaked `org--get-outline-path-1' in order to keep the
statistical/checkboxes cookies.

> 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.

The reason I do that is because I want to refile a task (single action)
under a project (multiple action item, with statistics cookie) and not under
another plain task.

Thanks for your help.

--

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Checkbox cookies not shown anymore when refiling
  2016-03-07 19:53       ` Georges
@ 2016-03-07 21:44         ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2016-03-07 21:44 UTC (permalink / raw)
  To: Georges; +Cc: emacs-orgmode

Hello,

Georges <gekoc@laposte.net> writes:

> This regexp apparently is not active anymore

It is, but was moved into `org--get-outline-path-1'.

> The reason I do that is because I want to refile a task (single action)
> under a project (multiple action item, with statistics cookie) and not under
> another plain task.

`org-refile-target-verify-function' could be used to filter out "plain
tasks" and keep only project-related ones.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-07 21:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-03 21:46 Checkbox cookies not shown anymore when refiling --
2016-03-04  0:39 ` Nicolas Goaziou
2016-03-04  9:10   ` Georges
2016-03-07 11:23     ` Nicolas Goaziou
2016-03-07 19:53       ` Georges
2016-03-07 21:44         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).