all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Scheduling habit Mon to Sat
@ 2012-07-30  8:09 Charles Philip Chan
  2012-07-30 12:13 ` Yagnesh Raghava Yakkala
  0 siblings, 1 reply; 4+ messages in thread
From: Charles Philip Chan @ 2012-07-30  8:09 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

Hello all:

I would like to schedule a habit to occur 6 times a week from Monday to
Saturday. I have looked through the manual, but I can't seem to find a
way to do it. I have tried:

,----
| <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
`----

but it didn't work. Any help will be appreciated.

Thanks,
Charles

-- 
"All language designers are arrogant.  Goes with the territory..."
(By Larry Wall)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Scheduling habit Mon to Sat
  2012-07-30  8:09 Scheduling habit Mon to Sat Charles Philip Chan
@ 2012-07-30 12:13 ` Yagnesh Raghava Yakkala
  2012-07-30 12:30   ` Michael Brand
  2012-07-30 13:12   ` Charles Philip Chan
  0 siblings, 2 replies; 4+ messages in thread
From: Yagnesh Raghava Yakkala @ 2012-07-30 12:13 UTC (permalink / raw)
  To: Charles Philip Chan; +Cc: Org-mode


Hello Charles,

Charles Philip Chan <cpchan@bell.net> writes:

> Hello all:
>
> I would like to schedule a habit to occur 6 times a week from Monday to
> Saturday. I have looked through the manual, but I can't seem to find a
> way to do it. I have tried:
>
> ,----
> | <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
> `----

Works for me and I use similar to this.

do you have associated time for your task or at least a keyword?

If I have following it *does not* show in the agenda

--8<---------------cut here---------------start------------->8---
** testing
 <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
--8<---------------cut here---------------end--------------->8---


where as the following two shows up in my block agenda.

--8<---------------cut here---------------start------------->8---
** TODO testing
 <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
** testing 10:00-11:00
 <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
--8<---------------cut here---------------end--------------->8---


Thanks.,
--
ఎందరో మహానుభావులు అందరికి వందనములు
YYR

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

* Re: Scheduling habit Mon to Sat
  2012-07-30 12:13 ` Yagnesh Raghava Yakkala
@ 2012-07-30 12:30   ` Michael Brand
  2012-07-30 13:12   ` Charles Philip Chan
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Brand @ 2012-07-30 12:30 UTC (permalink / raw)
  To: Org-mode; +Cc: Charles Philip Chan, Yagnesh Raghava Yakkala

On Mon, Jul 30, 2012 at 2:13 PM, Yagnesh Raghava Yakkala <hi@yagnesh.org> wrote:
> Charles Philip Chan <cpchan@bell.net> writes:
>> <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
[...]
> ** testing
>  <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
[...]
> ** TODO testing
>  <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>
[...]
> ** testing 10:00-11:00
>  <%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))>

This reminds of an old post from me showing similar issues:
http://thread.gmane.org/gmane.emacs.orgmode/40584

Michael

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

* Re: Scheduling habit Mon to Sat
  2012-07-30 12:13 ` Yagnesh Raghava Yakkala
  2012-07-30 12:30   ` Michael Brand
@ 2012-07-30 13:12   ` Charles Philip Chan
  1 sibling, 0 replies; 4+ messages in thread
From: Charles Philip Chan @ 2012-07-30 13:12 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:

Hello Yagnesh:

Thank you for the reply.

> Works for me and I use similar to this.

It works fine for me with regular scheduled TODO items. However, it does
not work on org-habit scheduled items. I am getting this when "entering
debug on error:

,----
| Debugger entered--Lisp error: (error "Not a standard Org-mode time string: %%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))")
|   signal(error ("Not a standard Org-mode time string: %%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))"))
|   error("Not a standard Org-mode time string: %s" "%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))")
|   org-parse-time-string("%%(memq (calendar-day-of-week date) '(1 2 3 4 5 6))")
|   org-get-scheduled-time(625)
|   org-habit-parse-todo()
|   byte-code("\306 \210\307\310!\311\310\224S\312 \313\216\314 *\r\315=\206\x1f
`----

BTW, my Org-mode version is 7.8.11.

Charles

-- 
linux: because a PC is a terrible thing to waste
(ksh@cis.ufl.edu put this on Tshirts in '93)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2012-07-30 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30  8:09 Scheduling habit Mon to Sat Charles Philip Chan
2012-07-30 12:13 ` Yagnesh Raghava Yakkala
2012-07-30 12:30   ` Michael Brand
2012-07-30 13:12   ` Charles Philip Chan

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.