From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Schedule event Date: Sat, 6 Aug 2011 08:19:56 +0200 Message-ID: References: <877h6raiwc.fsf@riotblast.dunsmor.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpaF5-00073P-SB for emacs-orgmode@gnu.org; Sat, 06 Aug 2011 02:20:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpaF4-0003Q6-KO for emacs-orgmode@gnu.org; Sat, 06 Aug 2011 02:20:15 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:37996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpaF4-0003Pw-Cy for emacs-orgmode@gnu.org; Sat, 06 Aug 2011 02:20:14 -0400 In-Reply-To: <877h6raiwc.fsf@riotblast.dunsmor.com> 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: Jason Dunsmore Cc: bzg@altern.org, emacs-orgmode@gnu.org On 5.8.2011, at 19:05, Jason Dunsmore wrote: > In the Org manual, a distinction is made between items that have a > timestamp with the "SCHEDULED" keyword and items that have a plain > timestamp: > > "Scheduling an item in Org-mode should not be understood in the same way > that we understand scheduling a meeting. Setting a date for a meeting is > just a simple appointment, you should mark this entry with a simple > plain timestamp, to get this item shown on the date where it > applies. This is a frequent misunderstanding by Org users. In Org-mode, > scheduling means setting a date when you want to start working on an > action item." > > http://orgmode.org/org.html#Deadlines-and-scheduling > > I call these items with plain timestamps "events". These are items that > come and go on the agenda whether or not I do anything. I add "events" > to my agenda pretty often, so I'd like to schedule them using the same > interface I use to schedule SCHEDULED items. > > Someone on IRC suggested that I use the following function: > > --8<---------------cut here---------------start------------->8--- > (defun org-schedule-event () > (interactive) > (let ((org-scheduled-string "")) > (org-schedule))) > --8<---------------cut here---------------end--------------->8--- > > However, it inserts an extra space. Example: > > --8<---------------cut here---------------start------------->8--- > * Test > <2011-08-05 Fri> > --8<---------------cut here---------------end--------------->8--- > > instead of: > > --8<---------------cut here---------------start------------->8--- > * Test > <2011-08-05 Fri> > --8<---------------cut here---------------end--------------->8--- > > I could hack together a fix for this, but I was thinking that perhaps > the org-schedule function should be made more general so that it can be > combined with the org-deadline function, which has much of the same > code, and used to insert plain timestamps as well. Thoughts? One could certainly combine the code for schedule and deadline into a single function and also allow for this function to insert a time stamp without a keyword. However, this might lead to confusion. Org internally uses the second line in an entry in a special way, for time stamps with keywords like DEADLINE, SCHEDULED, CLOSED. It will become confused with time stamps that have no keywords. Why do you want this special interface for setting an event date. How is that better than `C-c .'? Is it that you don't need to position the cursor? Another idea would be to introduce another keyword like APPT an place these time stamps also into the second line. That might be more easy to implement. >