From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: date marking with (org-diary) Date: Wed, 3 Sep 2008 11:37:02 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v926) Content-Type: multipart/mixed; boundary="===============1167159627==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kaond-0005jw-DE for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kaonc-0005iQ-Ae for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:16 -0400 Received: from [199.232.76.173] (port=56508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kaonb-0005h9-F3 for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:15 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]:49629) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kaonb-0005gQ-D8 for emacs-orgmode@gnu.org; Wed, 03 Sep 2008 05:37:15 -0400 Received: by ug-out-1314.google.com with SMTP id m2so2428766uge.17 for ; Wed, 03 Sep 2008 02:37:14 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ulf Stegemann Cc: emacs-orgmode@gnu.org --===============1167159627== Content-Type: multipart/alternative; boundary=Apple-Mail-21--538229444 --Apple-Mail-21--538229444 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Aug 15, 2008, at 10:45 AM, Ulf Stegemann wrote: > Hi all, > > I was recently playing around with marking org agenda items in the > calendar using (org-diary) in the diary file. I encountered a problem > already described by Wanrong Lin some time ago (see > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg05839.html). > Unfortunately no answers were given to his original request so here it > comes again: > > Including agenda items into the diary with '&%%(org-diary ...' is > something I personally find pretty useless as the dates of those items > are not fontified in the calendar. Using '%%(org-diary ...' would be > fine but the entries to use (':scheduled', ':todo' aso) cannot be > limited any further. This not only leads to unacceptable delays while > calendar tries to fontify its buffer but also to a calendar with > nearly > everyday marked. My intent was to mark dates with appointments only (I > have scheduled items, todos etc. nearly everyday so there's no need to > mark them). In my case this means that (org-diary) would need to > distinct between different TODO keywords. However, filtering based on > tags or date/time formats would be fine, too. > > My question now is: Is there currently any way to achieve such a > filtering with (org-diary)? And if not, are there any plans to enhance > (org-diary) in that direction? > > Regards, > > Ulf Hi Ulf, this is not supported yet, and I have no concrete plans to implement this. Marking entries in the calendar will always be unacceptably slow, because the way the calendar/diary implements this is creating the list of appointment for each of the 90+ days in the calendar display. Even with filtering, this would be slow - basically one would have to rewrite the code in the diary. Why don't you just use the week agenda to see which days are free? Since version 6.05, we have the following functionality: - Carsten Making use of the cursor position in the agenda =============================================== * Calling remember with the cursor date in the agenda If you want to use the date at the agenda cursor in a remember template, start remember from the agenda with the keys `k r'. While the template is being filled in, the default date for all time stamps, and also for all interactive escapes like `%^t' is now the date at the cursor in the agenda. The exact same command can also be used from the calendar if you prefer that. * Picking a date for scheduling/deadline in the agenda You may now pick the date for scheduling an item or for setting a deadline in the agenda, where you have the best overview over free time slots. This is a two step process. 1. First you pick the entry that should be acted upon. In the agenda, you use the keys `k m'. In an org-mode file, this is on `C-c C-x C-k'. 2. Then you find the agenda date you want to apply. When the cursor is anywhere in the block belonging to that date, press `k s' to schedule, or `k d' to put a deadline. The agenda is not updated immediately, press `r' if you want it to show the affected entry in the right place. --Apple-Mail-21--538229444 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Aug 15, 2008, = at 10:45 AM, Ulf Stegemann wrote:

Hi = all,

I was recently playing around with marking org agenda items = in the
calendar using (org-diary) in the diary file. I encountered a = problem
already described by Wanrong Lin some time ago (see
= http://www.mail-archive.com/emacs-orgmode@gnu.org/msg05839.html).
U= nfortunately no answers were given to his original request so here = it
comes again:

Including agenda items into the diary with = '&%%(org-diary ...' is
something I personally find pretty useless = as the dates of those items
are not fontified in the calendar. Using = '%%(org-diary ...' would be
fine but the entries to use = (':scheduled', ':todo' aso) cannot be
limited any further. This not = only leads to unacceptable delays while
calendar tries to fontify its = buffer but also to a calendar with nearly
everyday marked. My intent = was to mark dates with appointments only (I
have scheduled items, = todos etc. nearly everyday so there's no need to
mark them). In my = case this means that (org-diary) would need to
distinct between = different TODO keywords. However, filtering based on
tags or = date/time formats would be fine, too.

My question now is: Is = there currently any way to achieve such a
filtering with (org-diary)? = And if not, are there any plans to enhance
(org-diary) in that = direction?

Regards,

Ulf

Hi = Ulf,

this is not supported yet, and I have no = concrete plans to implement
this.  Marking entries in the = calendar will always be unacceptably
slow, because the = way the calendar/diary implements this is creating
the list of = appointment for each of the 90+ days in the calendar
display. =  Even with filtering, this would be slow - basically = one
would have to rewrite the code in the = diary.

Why don't you just use the week agenda = to see which days are free?
Since version 6.05, we have = the following functionality:

- = Carsten


     =       Making use of the cursor position in the = agenda
           = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Calling remember with the cursor date in the = agenda
  
  If you want to use = the date at the agenda cursor in a
  remember = template, start remember from the agenda with = the
  keys `k r'.  While the template is being = filled in, the
  default date for all time stamps, = and also for all
  interactive escapes like `%^t' is = now the date at the cursor
  in the agenda. =  The exact same command can also be used = from
  the calendar if you prefer = that.
  
* Picking a date for = scheduling/deadline in the = agenda
  
  You may now pick the = date for scheduling an item or for
  setting a = deadline in the agenda, where you have the = best
  overview over free time slots.  This is = a two step process.
  
  1. = First you pick the entry that should be acted upon. =  In
     the agenda, you use the keys `k = m'.  In an org-mode file,
     this is on = `C-c C-x C-k'.
  
  2. Then you = find the agenda date you want to apply.  When = the
     cursor is anywhere in the block = belonging to that date,
     press `k s' to = schedule, or `k d' to put a deadline.  The
   =   agenda is not updated immediately, press `r' if you = want
     it to show the affected entry in the = right place.

= --Apple-Mail-21--538229444-- --===============1167159627== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1167159627==--