From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Two bugs with setting deadlines/scheduling Date: Wed, 24 Oct 2007 03:13:46 +0100 Message-ID: <87bqapqmxx.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IkV73-0005N0-Pt for emacs-orgmode@gnu.org; Tue, 23 Oct 2007 21:32:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IkV71-0005Mo-8U for emacs-orgmode@gnu.org; Tue, 23 Oct 2007 21:32:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkV71-0005Mk-2Y for emacs-orgmode@gnu.org; Tue, 23 Oct 2007 21:32:47 -0400 Received: from fk-out-0910.google.com ([209.85.128.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IkUog-0000SJ-13 for emacs-orgmode@gnu.org; Tue, 23 Oct 2007 21:13:50 -0400 Received: by fk-out-0910.google.com with SMTP id 19so42426fkr for ; Tue, 23 Oct 2007 18:13:44 -0700 (PDT) In-Reply-To: (Scott Jaderholm's message of "Tue, 23 Oct 2007 15:54:22 -0600") 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: emacs-orgmode@gnu.org --=-=-= "Scott Jaderholm" writes: > As of 5.13 I am unable to schedule or set deadlines other than > tomorrow. I thought this must be something in my settings but running > emacs with -q and loading org without any special settings yields the > same bug. Is anyone else having this problem? Same here -- fixed in the patch below. This was a problem with the new function: `org-read-date-get-relative' I didn't manage to fix the problem with inserting relative dates like "++2d" though. It looks like Org doesn't default to the date at point anymore. > A more minor bug: if I create a file and add a heading without entering > a newline and then try to schedule or set a deadline it will just say > End of buffer and not set anything, except it does add a newline. Then > if I try again the command will work. Fixed in the patch below. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch diff -u /home/guerry/elisp/testing/org/org.el /home/guerry/elisp/testing/bzg/org.el --- /home/guerry/elisp/testing/org/org.el 2007-10-24 03:09:10.000000000 +0100 +++ /home/guerry/elisp/testing/bzg/org.el 2007-10-24 03:08:00.000000000 +0100 @@ -13748,7 +13748,8 @@ (goto-char (match-end 1)) (setq col (current-column)) (goto-char (match-end 0)) - (if (eobp) (insert "\n") (forward-char 1)) + (if (eobp) (insert "\n")) + (forward-char 1) (if (and (not (looking-at outline-regexp)) (looking-at (concat "[^\r\n]*?" org-keyword-time-regexp "[^\r\n]*")) @@ -16474,7 +16475,7 @@ (defun org-read-date-get-relative (s today default) "Check string S for special relative date string. -TODAY and DEFAULT are ionternal times, for today and for a default. +TODAY and DEFAULT are internal times, for today and for a default. Return shift list (N what def-flag) WHAT is \"d\", \"w\", \"m\", or \"y\" for day. week, month, year. N is the number if WHATs to shift @@ -16482,7 +16483,7 @@ the DEFAULT date rather than TODAY." (when (string-match (concat - "\\`[ \t]*\\([-+]\\{1,2\\}\\)?" + "\\`[ \t]*[-+]+\\(\\{1,2\\}\\)?" "\\([0-9]+\\)?" "\\([dwmy]\\|\\(" (mapconcat 'car parse-time-weekdays "\\|") "\\)\\)?" "\\([ \t]\\|$\\)") s) Diff finished. Wed Oct 24 03:09:29 2007 --=-=-= -- Bastien --=-=-= 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 --=-=-=--