# HG changeset patch # User Juanma Barranquero # Date 1225820030 0 # Node ID e9a50f67e0c768036cbf945d991923357bd7fbde # Parent 7b5dc289401404b809cf3a2f981441c0e72dcb05 * org.el (org-columns-modify-value-for-display-function): * org-table.el (org-table-convert-region): Fix typos in docstrings. diff -r 7b5dc2894014 -r e9a50f67e0c7 lisp/org/ChangeLog --- a/lisp/org/ChangeLog Tue Nov 04 17:11:58 2008 +0000 +++ b/lisp/org/ChangeLog Tue Nov 04 17:33:50 2008 +0000 @@ -1,3 +1,8 @@ +2008-11-04 Juanma Barranquero + + * org.el (org-columns-modify-value-for-display-function): + * org-table.el (org-table-convert-region): Fix typos in docstrings. + 2008-10-28 Glenn Morris * org-agenda.el (org-agenda-align-tags): Replace use of cl `adjoin'. diff -r 7b5dc2894014 -r e9a50f67e0c7 lisp/org/org-table.el --- a/lisp/org/org-table.el Tue Nov 04 17:11:58 2008 +0000 +++ b/lisp/org/org-table.el Tue Nov 04 17:33:50 2008 +0000 @@ -379,7 +379,7 @@ separator in the following way: - when each line contains a TAB, assume TAB-separated material - when each line contains a comme, assume CSV material - - else, assume one or more SPACE charcters as separator." + - else, assume one or more SPACE characters as separator." (interactive "rP") (let* ((beg (min beg0 end0)) (end (max beg0 end0)) @@ -3490,7 +3490,7 @@ (self-insert-command N)) (setq org-table-may-need-update t) (let (orgtbl-mode a) - (call-interactively + (call-interactively (key-binding (or (and (listp function-key-map) (setq a (assoc last-input-event function-key-map)) @@ -3569,7 +3569,7 @@ (unless txt (unless (org-at-table-p) (error "No table at point"))) - (let* ((txt (or txt + (let* ((txt (or txt (buffer-substring-no-properties (org-table-begin) (org-table-end)))) (lines (org-split-string txt "[ \t]*\n[ \t]*"))) diff -r 7b5dc2894014 -r e9a50f67e0c7 lisp/org/org.el --- a/lisp/org/org.el Tue Nov 04 17:11:58 2008 +0000 +++ b/lisp/org/org.el Tue Nov 04 17:33:50 2008 +0000 @@ -1666,7 +1666,7 @@ org-mode generates a time duration." :group 'org-time :type 'string) - + (defcustom org-deadline-warning-days 14 "No. of days before expiration during which a deadline becomes active. This variable governs the display in sparse trees and in the agenda. @@ -1938,7 +1938,7 @@ (defcustom org-columns-modify-value-for-display-function nil "Function that modifies values for display in column view. For example, it can be used to cut out a certain part from a time stamp. -The function must take 2 argments: +The function must take 2 arguments: column-title The tite of the column (*not* the property name) value The value that should be modified. @@ -2532,7 +2532,7 @@ (<= org-clock-marker (point-at-eol))) ;; The clock is running here (setq org-clock-start-time - (apply 'encode-time + (apply 'encode-time (org-parse-time-string (match-string 1)))) (org-update-mode-line))) (t @@ -2705,8 +2705,8 @@ ;; Autoload ID code (org-autoload "org-id" - '(org-id-get-create org-id-new org-id-copy org-id-get - org-id-get-with-outline-path-completion + '(org-id-get-create org-id-new org-id-copy org-id-get + org-id-get-with-outline-path-completion org-id-get-with-outline-drilling org-id-goto org-id-find)) @@ -5624,7 +5624,7 @@ (string-match "\\\n\n") ("e" "#+begin_example\n?\n#+end_example" "\n?\n") @@ -7553,7 +7553,7 @@ (t (newline)))) (setq start (point)) (if (string-match "%file" rpl) - (setq rpl (replace-match + (setq rpl (replace-match (concat "\"" (save-match-data @@ -7562,7 +7562,7 @@ t t rpl))) (insert rpl) (if (re-search-backward "\\?" start t) (delete-char 1)))) - + (defun org-complete (&optional arg) "Perform completion on word at point. @@ -7962,7 +7962,7 @@ (condition-case nil (org-forward-same-level 1) (error (end-of-line 1))))) - (replace-match + (replace-match (if is-percent (format "[%d%%]" (/ (* 100 cnt-done) (max 1 cnt-all))) (format "[%d/%d]" cnt-done cnt-all))) @@ -7999,7 +7999,7 @@ (setq changes (append changes (cdr (assoc 'done l))))) (dolist (c changes) (org-toggle-tag (car c) (if (cdr c) 'on 'off))))) - + (defun org-local-logging (value) "Get logging settings from a property VALUE." (let* (words w a) @@ -8401,7 +8401,7 @@ (save-excursion (when findpos (org-back-to-heading t) - (narrow-to-region (point) (save-excursion + (narrow-to-region (point) (save-excursion (outline-next-heading) (point))) (looking-at (concat outline-regexp "\\( *\\)[^\r\n]*" "\\(\n[^\r\n]*?" org-keyword-time-not-clock-regexp @@ -9628,12 +9628,12 @@ ((eq match t) (setq matcher t)) ((eq match nil) (setq matcher t)) (t (setq matcher (if match (org-make-tags-matcher match) t)))) - + (when (eq scope 'tree) (org-back-to-heading t) (org-narrow-to-subtree) (setq scope nil)) - + (if (not scope) (progn (org-prepare-agenda-buffers @@ -9968,7 +9968,7 @@ (move-marker org-entry-property-inherited-from (point)) (throw 'ex tmp)) (or (org-up-heading-safe) (throw 'ex nil))))) - (or tmp + (or tmp (cdr (assoc property org-file-properties)) (cdr (assoc property org-global-properties)) (cdr (assoc property org-global-properties-fixed)))))) @@ -11488,11 +11488,11 @@ (lambda (b) (string-match "\*Org .*Export" (buffer-name b)))) ((eq predicate 'agenda) (lambda (b) - (with-current-buffer b + (with-current-buffer b (and (eq major-mode 'org-mode) (setq bfn (buffer-file-name b)) (member (file-truename bfn) agenda-files))))) - (t (lambda (b) (with-current-buffer b + (t (lambda (b) (with-current-buffer b (or (eq major-mode 'org-mode) (string-match "\*Org .*Export" (buffer-name b))))))))) @@ -11710,7 +11710,7 @@ (append org-done-keywords-for-agenda org-done-keywords)) (setq org-todo-keyword-alist-for-agenda (append org-todo-keyword-alist-for-agenda org-todo-key-alist)) - (setq org-tag-alist-for-agenda + (setq org-tag-alist-for-agenda (append org-tag-alist-for-agenda org-tag-alist)) (save-excursion