Release 5.10b

This commit is contained in:
Carsten Dominik 2008-01-31 11:36:23 +01:00
parent 70b6cc5da4
commit 52c4f74b5f
3 changed files with 30 additions and 23 deletions

37
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.10a ;; Version: 5.10b
;; ;;
;; This file is part of GNU Emacs. ;; This file is part of GNU Emacs.
;; ;;
@ -83,7 +83,7 @@
;;; Version ;;; Version
(defconst org-version "5.10a" (defconst org-version "5.10b"
"The version number of the file org.el.") "The version number of the file org.el.")
(defun org-version () (defun org-version ()
(interactive) (interactive)
@ -16651,14 +16651,15 @@ the returned times will be formatted strings."
(defun org-dblock-write:clocktable (params) (defun org-dblock-write:clocktable (params)
"Write the standard clocktable." "Write the standard clocktable."
(let ((hlchars '((1 . "*") (2 . ?/))) (let ((hlchars '((1 . "*") (2 . "/")))
(emph nil) (emph nil)
(ins (make-marker)) (ins (make-marker))
(total-time nil) (total-time nil)
ipos time h m p level hlc hdl maxlevel ipos time h m p level hlc hdl maxlevel
ts te cc block beg end pos scope tbl tostring) ts te cc block beg end pos scope tbl tostring multifile)
(setq scope (plist-get params :scope) (setq scope (plist-get params :scope)
tostring (plist-get params :tostring) tostring (plist-get params :tostring)
multifile (plist-get params :multifile)
maxlevel (or (plist-get params :maxlevel) 3) maxlevel (or (plist-get params :maxlevel) 3)
emph (plist-get params :emphasize) emph (plist-get params :emphasize)
ts (plist-get params :tstart) ts (plist-get params :tstart)
@ -16699,13 +16700,15 @@ the returned times will be formatted strings."
(p1 (copy-sequence params)) (p1 (copy-sequence params))
file) file)
(plist-put p1 :tostring t) (plist-put p1 :tostring t)
(plist-put p1 :multifile t)
(plist-put p1 :scope 'file) (plist-put p1 :scope 'file)
(org-prepare-agenda-buffers files) (org-prepare-agenda-buffers files)
(setq total-time (+ (or total-time 0) org-clock-file-total-minutes))
(while (setq file (pop files)) (while (setq file (pop files))
(with-current-buffer (find-buffer-visiting file) (with-current-buffer (find-buffer-visiting file)
(push (org-clocktable-add-file (push (org-clocktable-add-file
file(org-dblock-write:clocktable p1)) tbl)))))) file (org-dblock-write:clocktable p1)) tbl)
(setq total-time (+ (or total-time 0)
org-clock-file-total-minutes)))))))
(goto-char pos) (goto-char pos)
(unless (eq scope 'agenda) (unless (eq scope 'agenda)
@ -16717,21 +16720,22 @@ the returned times will be formatted strings."
(save-excursion (save-excursion
(beginning-of-line 1) (beginning-of-line 1)
(when (and (looking-at (org-re "\\(\\*+\\)[ \t]+\\(.*?\\)\\([ \t]+:[[:alnum:]_@:]+:\\)?[ \t]*$")) (when (and (looking-at (org-re "\\(\\*+\\)[ \t]+\\(.*?\\)\\([ \t]+:[[:alnum:]_@:]+:\\)?[ \t]*$"))
(setq level (- (match-end 1) (match-beginning 1))) (setq level (org-reduced-level
(- (match-end 1) (match-beginning 1))))
(<= level maxlevel)) (<= level maxlevel))
(setq hlc (if emph (or (cdr (assoc level hlchars)) "") "") (setq hlc (if emph (or (cdr (assoc level hlchars)) "") "")
hdl (match-string 2) hdl (match-string 2)
h (/ time 60) h (/ time 60)
m (- time (* 60 h))) m (- time (* 60 h)))
(if (= level 1) (push "|-\n" tbl)) (if (and (not multifile) (= level 1)) (push "|-" tbl))
(push (concat (push (concat
"| " (int-to-string level) "|" hlc hdl hlc " |" "| " (int-to-string level) "|" hlc hdl hlc " |"
(make-string (1- level) ?|) (make-string (1- level) ?|)
hlc (format "%d:%02d" h m) hlc hlc (format "%d:%02d" h m) hlc
" |\n") tbl)))))) " |") tbl))))))
(setq tbl (nreverse tbl)) (setq tbl (nreverse tbl))
(if tostring (if tostring
(mapconcat 'identity tbl "") (if tbl (mapconcat 'identity tbl "\n") nil)
(goto-char ins) (goto-char ins)
(insert-before-markers (insert-before-markers
"Clock summary at [" "Clock summary at ["
@ -16754,15 +16758,17 @@ the returned times will be formatted strings."
"|" "|"
"*Total time*| " "*Total time*| "
(format "*%d:%02d*" h m) (format "*%d:%02d*" h m)
"|\n") "|\n|-\n")
(insert-before-markers (mapconcat 'identity (nreverse tbl) (insert-before-markers (mapconcat
(if (eq scope 'agenda) "|-\n" ""))) 'identity (delq nil (nreverse tbl))
(if (eq scope 'agenda) "\n|-\n" "\n")))
(backward-delete-char 1) (backward-delete-char 1)
(goto-char ipos) (goto-char ipos)
(skip-chars-forward "^|") (skip-chars-forward "^|")
(org-table-align))))) (org-table-align)))))
(defun org-clocktable-add-file (file table) (defun org-clocktable-add-file (file table)
(if table
(let ((lines (org-split-string table "\n")) (let ((lines (org-split-string table "\n"))
(ff (file-name-nondirectory file))) (ff (file-name-nondirectory file)))
(mapconcat 'identity (mapconcat 'identity
@ -16771,7 +16777,7 @@ the returned times will be formatted strings."
(concat "|" ff x) (concat "|" ff x)
x)) x))
lines) lines)
"\n"))) "\n"))))
;; FIXME: I don't think anybody uses this, ask David ;; FIXME: I don't think anybody uses this, ask David
(defun org-collect-clock-time-entries () (defun org-collect-clock-time-entries ()
@ -24112,7 +24118,8 @@ This command does many different things, depending on context:
(call-interactively 'org-maybe-renumber-ordered-list)) (call-interactively 'org-maybe-renumber-ordered-list))
((save-excursion (beginning-of-line 1) (looking-at "#\\+BEGIN:")) ((save-excursion (beginning-of-line 1) (looking-at "#\\+BEGIN:"))
;; Dynamic block ;; Dynamic block
(call-interactively 'org-update-dblock)) (beginning-of-line 1)
(org-update-dblock))
((save-excursion (beginning-of-line 1) (looking-at "#\\+\\([A-Z]+\\)")) ((save-excursion (beginning-of-line 1) (looking-at "#\\+\\([A-Z]+\\)"))
(cond (cond
((equal (match-string 1) "TBLFM") ((equal (match-string 1) "TBLFM")

BIN
org.pdf

Binary file not shown.

Binary file not shown.