Release 5.13d

This commit is contained in:
Carsten Dominik 2008-01-31 11:37:19 +01:00
parent 6baed5bdc9
commit a96fd7707c
5 changed files with 52 additions and 19 deletions

View File

@ -1,14 +1,14 @@
2007-10-20 Carsten Dominik <dominik@science.uva.nl>
* org.el (org-agenda-file-regexp): New variable. -----------------------------------------------------------------------
2007-10-19 Carsten Dominik <dominik@science.uva.nl> Installed as 5.13d
2007-10-22 Carsten Dominik <dominik@science.uva.nl>
* org.el (org-agenda-files): Allow directories in the variable. * org.el (org-read-date-get-relative): New function.
(org-agenda-file-regexp): New variable.
2007-10-18 Carsten Dominik <dominik@science.uva.nl> (org-agenda-files): Allow directories in the variable.
(org-agenda-get-restriction-and-command): New function.
* org.el (org-agenda-get-restriction-and-command): New function.
(org-agenda): Use `org-agenda-get-restriction-and-command'. (org-agenda): Use `org-agenda-get-restriction-and-command'.
(org-todo-blocker-hook, org-todo-trigger-hook): New hook. (org-todo-blocker-hook, org-todo-trigger-hook): New hook.
(org-entry-is-todo-p, org-entry-is-done-p, org-get-todo-state): (org-entry-is-todo-p, org-entry-is-done-p, org-get-todo-state):

2
org
View File

@ -1,4 +1,4 @@
This is org, produced by makeinfo version 4.7 from org.texi. This is org, produced by makeinfo version 4.8 from org.texi.
INFO-DIR-SECTION Emacs INFO-DIR-SECTION Emacs
START-INFO-DIR-ENTRY START-INFO-DIR-ENTRY

53
org.el
View File

@ -5,7 +5,7 @@
;; Author: Carsten Dominik <carsten at orgmode dot org> ;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp ;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.org ;; Homepage: http://orgmode.org
;; Version: 5.13c ;; Version: 5.13d
;; ;;
;; This file is part of GNU Emacs. ;; This file is part of GNU Emacs.
;; ;;
@ -83,7 +83,7 @@
;;; Version ;;; Version
(defconst org-version "5.13c" (defconst org-version "5.13d"
"The version number of the file org.el.") "The version number of the file org.el.")
(defun org-version () (defun org-version ()
(interactive) (interactive)
@ -16330,7 +16330,7 @@ user."
(if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def))
(prompt (concat (if prompt (concat prompt " ") "") (prompt (concat (if prompt (concat prompt " ") "")
(format "Date and/or time (default [%s]): " timestr))) (format "Date and/or time (default [%s]): " timestr)))
ans (org-ans0 "") org-ans1 org-ans2 deltan deltaw deltarel ans (org-ans0 "") org-ans1 org-ans2 delta deltan deltaw deltadef
second minute hour day month year tl wday wday1 pm h2 m2) second minute hour day month year tl wday wday1 pm h2 m2)
(cond (cond
@ -16388,12 +16388,11 @@ user."
(setq ans (read-string prompt "" nil timestr)))) (setq ans (read-string prompt "" nil timestr))))
(org-detach-overlay org-date-ovl) (org-detach-overlay org-date-ovl)
(when (string-match (when (setq delta (org-read-date-get-relative ans (current-time) def))
"\\`[ \t]*\\([-+]\\)?\\([-+][0-9]+\\)\\([dwmy]?\\)\\([ \t\n]\\|$\\)" (setq ans (replace-match "" t t ans)
org-ans0) deltan (car delta)
(setq deltan (string-to-number (match-string 2 ans)) deltaw (nth 1 delta)
deltaw (match-string 3 ans) deltadef (nth 2 delta)))
deltarel (match-end 1)))
;; Help matching ISO dates with single digit month ot day, like 2006-8-11. ;; Help matching ISO dates with single digit month ot day, like 2006-8-11.
(when (string-match (when (string-match
@ -16449,7 +16448,7 @@ user."
second (or (nth 0 tl) 0) second (or (nth 0 tl) 0)
wday (nth 6 tl)) wday (nth 6 tl))
(when deltan (when deltan
(unless deltarel (unless deltadef
(let ((now (decode-time (current-time)))) (let ((now (decode-time (current-time))))
(setq day (nth 3 now) month (nth 4 now) year (nth 5 now)))) (setq day (nth 3 now) month (nth 4 now) year (nth 5 now))))
(cond ((member deltaw '("d" "")) (setq day (+ day deltan))) (cond ((member deltaw '("d" "")) (setq day (+ day deltan)))
@ -16472,6 +16471,40 @@ user."
(format "%04d-%02d-%02d %02d:%02d" year month day hour minute) (format "%04d-%02d-%02d %02d:%02d" year month day hour minute)
(format "%04d-%02d-%02d" year month day))))) (format "%04d-%02d-%02d" year month day)))))
(defvar parse-time-weekdays)
(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.
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
DEF-FLAG is t when a double ++ or -- indicates shift relative to
the DEFAULT date rather than TODAY."
(when (string-match
(concat
"\\`[ \t]*\\([-+]\\{1,2\\}\\)?"
"\\([0-9]+\\)?"
"\\([dwmy]\\|\\(" (mapconcat 'car parse-time-weekdays "\\|") "\\)\\)?"
"\\([ \t]\\|$\\)") s)
(let* ((dir (if (match-end 1)
(string-to-char (substring (match-string 1 s) -1))
?+))
(rel (and (match-end 1) (= 2 (- (match-end 1) (match-beginning 1)))))
(n (if (match-end 2) (string-to-number (match-string 2 s)) 1))
(what (if (match-end 3) (match-string 3 s) "d"))
(wday1 (cdr (assoc (downcase what) parse-time-weekdays)))
(date (if rel default today))
(wday (nth 6 (decode-time date)))
delta)
(if wday1
(progn
(setq delta (mod (+ 7 (- wday1 wday)) 7))
(if (= dir ?-) (setq delta (- delta 7)))
(if (> n 1) (setq delta (+ delta (* (1- n) (if (= dir ?-) -7 7)))))
(list delta "d" rel))
(list (* n (if (= dir ?-) -1 1)) what rel)))))
(defun org-eval-in-calendar (form &optional keepdate) (defun org-eval-in-calendar (form &optional keepdate)
"Eval FORM in the calendar window and return to current window. "Eval FORM in the calendar window and return to current window.
Also, store the cursor date in variable org-ans2." Also, store the cursor date in variable org-ans2."

BIN
org.pdf

Binary file not shown.

Binary file not shown.