diff options
| author | Bastien Guerry | 2013-01-08 19:49:37 +0100 |
|---|---|---|
| committer | Bastien Guerry | 2013-01-08 19:49:37 +0100 |
| commit | 2e3c2398e324b26d69f4cc997e29b5cfe5870cd5 (patch) | |
| tree | 1a880fa9fd8ef2d33644dee9fc0fa7f61f4a93cf | |
| parent | d576dd9bde77c398779645ff7f369f7c345106c0 (diff) | |
| download | emacs-2e3c2398e324b26d69f4cc997e29b5cfe5870cd5.tar.gz emacs-2e3c2398e324b26d69f4cc997e29b5cfe5870cd5.zip | |
Merge Org up to commit 4cac75153. Some ChangeLog formatting fixes.
| -rw-r--r-- | lisp/org/ChangeLog | 60 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 87 | ||||
| -rw-r--r-- | lisp/org/org-src.el | 19 | ||||
| -rw-r--r-- | lisp/org/org-version.el | 2 |
4 files changed, 73 insertions, 95 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 57b9a4b14c0..b87b580aeba 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -44,22 +44,8 @@ | |||
| 44 | * org-src.el (org-edit-src-code): Fix bug when trying to edit a | 44 | * org-src.el (org-edit-src-code): Fix bug when trying to edit a |
| 45 | table.el table. | 45 | table.el table. |
| 46 | 46 | ||
| 47 | * org-agenda.el (org-agenda-finalize): Don't remove tag alignment | 47 | * org-agenda.el (org-agenda-finalize): Inhibit readonly for the |
| 48 | depending on `org-prefix-has-tag', this should depend on | 48 | whole function. |
| 49 | `org-agenda-remove-tags'. | ||
| 50 | |||
| 51 | * org-agenda.el (org-agenda-finalize): Don't remove tag alignment | ||
| 52 | depending on `org-prefix-has-tag', this should depend on | ||
| 53 | `org-agenda-remove-tags'. | ||
| 54 | |||
| 55 | * org-agenda.el (org-agenda-finalize): Downcase tags when readding | ||
| 56 | them after agenda generation. | ||
| 57 | |||
| 58 | * org.el (org-setup-filling): Set `auto-fill-inhibit-regexp' from | ||
| 59 | `org-outline-regexp'. | ||
| 60 | |||
| 61 | * org-agenda.el (org-agenda-use-tag-inheritance): Fix custom | ||
| 62 | definition. | ||
| 63 | 49 | ||
| 64 | * org.el (org-entry-get): Speed up by let-binding some variables | 50 | * org.el (org-entry-get): Speed up by let-binding some variables |
| 65 | only if needed. Also fix a bug: consider an empty drawer as no | 51 | only if needed. Also fix a bug: consider an empty drawer as no |
| @@ -98,14 +84,12 @@ | |||
| 98 | (org-agenda-get-sexps, org-agenda-get-deadlines) | 84 | (org-agenda-get-sexps, org-agenda-get-deadlines) |
| 99 | (org-agenda-get-scheduled): Ditto. | 85 | (org-agenda-get-scheduled): Ditto. |
| 100 | 86 | ||
| 101 | * org.el (org-adaptive-fill-function): Fix checking of | 87 | * org.el (org-id-link-to-org-use-id): Fix compiler warning. |
| 102 | post-affiliated. | ||
| 103 | (org-id-link-to-org-use-id): Fix compiler warning. | ||
| 104 | 88 | ||
| 105 | * org-agenda.el (org-agenda-format-item): Do not use | 89 | * org-agenda.el (org-agenda-format-item): Do not use |
| 106 | org-get-effort to get the effort text property. | 90 | `org-get-effort' to get the effort text property. |
| 107 | (org-agenda-get-sexps): Use `org-back-to-heading' when setting | 91 | (org-agenda-get-sexps): Use `org-back-to-heading' when setting the |
| 108 | the tags. | 92 | tags. |
| 109 | 93 | ||
| 110 | * org-clock.el (org-clock-in): Refresh effort properties. | 94 | * org-clock.el (org-clock-in): Refresh effort properties. |
| 111 | 95 | ||
| @@ -136,11 +120,11 @@ | |||
| 136 | * org.el (org-get-priority): Save match data even when using | 120 | * org.el (org-get-priority): Save match data even when using |
| 137 | `org-get-priority-function'. | 121 | `org-get-priority-function'. |
| 138 | 122 | ||
| 139 | * org-mobile.el (org-mobile-create-index-file): Possibly | 123 | * org-mobile.el (org-mobile-create-index-file): Possibly normalize |
| 140 | normalize `org-todo-keywords'. | 124 | `org-todo-keywords'. |
| 141 | 125 | ||
| 142 | * org-mobile.el (org-mobile-push): Use the correct agenda | 126 | * org-mobile.el (org-mobile-push): Use the correct agenda buffer |
| 143 | buffer names. | 127 | names. |
| 144 | 128 | ||
| 145 | * org.el (org-store-link): Use `org-id-link-to-org-use-id' instead | 129 | * org.el (org-store-link): Use `org-id-link-to-org-use-id' instead |
| 146 | of the obsolete variable name. | 130 | of the obsolete variable name. |
| @@ -186,9 +170,8 @@ | |||
| 186 | 170 | ||
| 187 | * org-agenda.el (org-agenda-open-link): Fix bug when no link is | 171 | * org-agenda.el (org-agenda-open-link): Fix bug when no link is |
| 188 | matched. Return a message instead of an error. | 172 | matched. Return a message instead of an error. |
| 189 | 173 | (org-agenda-priority): Remove useless parameter and fix showing | |
| 190 | * org-agenda.el (org-agenda-priority): Remove useless parameter | 174 | priority in agenda buffers. |
| 191 | and fix showing priority in agenda buffers. | ||
| 192 | 175 | ||
| 193 | * org-macs.el (org-with-buffer-modified-unmodified): New macro. | 176 | * org-macs.el (org-with-buffer-modified-unmodified): New macro. |
| 194 | 177 | ||
| @@ -231,16 +214,14 @@ | |||
| 231 | compatibility function. | 214 | compatibility function. |
| 232 | 215 | ||
| 233 | * org.el (org-table-map-tables): Fix allowed blocks. | 216 | * org.el (org-table-map-tables): Fix allowed blocks. |
| 234 | (org-edit-special): Fix regression: allow editing HTML and | 217 | (org-edit-special): Fix regression: allow editing HTML and LaTeX |
| 235 | LaTeX source blocks again. | 218 | source blocks again. |
| 236 | 219 | ||
| 237 | * org-src.el (org-edit-src-code): Ditto. | 220 | * org-src.el (org-edit-src-code): Ditto. |
| 238 | 221 | ||
| 239 | * org.el (org-nonsticky-props): Add `htmlize-link'. | 222 | * org.el (org-nonsticky-props): Add `htmlize-link'. |
| 240 | 223 | (org-nonsticky-props): Add `htmlize-link'. | |
| 241 | * org.el (org-nonsticky-props): Add `htmlize-link'. | 224 | (org-edit-special): Don't edit in verbatim blocks. |
| 242 | |||
| 243 | * org.el (org-edit-special): Don't edit in verbatim blocks. | ||
| 244 | 225 | ||
| 245 | * org-src.el (org-edit-src-code): Ditto. | 226 | * org-src.el (org-edit-src-code): Ditto. |
| 246 | 227 | ||
| @@ -275,8 +256,7 @@ | |||
| 275 | 256 | ||
| 276 | * org.el (org-todo): Ignore the comment string when changing the | 257 | * org.el (org-todo): Ignore the comment string when changing the |
| 277 | TODO state of a headline. | 258 | TODO state of a headline. |
| 278 | 259 | (org-edit-special): Fix docstring. | |
| 279 | * org.el (org-edit-special): Fix docstring. | ||
| 280 | (org-in-src-block-p): Small enhancement. | 260 | (org-in-src-block-p): Small enhancement. |
| 281 | 261 | ||
| 282 | * org-publish.el (org-publish-org-to): Call `org-export-as-*' | 262 | * org-publish.el (org-publish-org-to): Call `org-export-as-*' |
| @@ -392,9 +372,9 @@ | |||
| 392 | 372 | ||
| 393 | 2013-01-08 Nicolas Goaziou <n.goaziou@gmail.com> | 373 | 2013-01-08 Nicolas Goaziou <n.goaziou@gmail.com> |
| 394 | 374 | ||
| 395 | * org.el (org-setup-filling): Ignore `auto-fill-inhibit-regexp'. | 375 | * org.el (org-setup-filling): Set `auto-fill-inhibit-regexp' to |
| 396 | The idea behind this is that `org-adaptive-fill-function' already | 376 | nil because `org-adaptive-fill-function' already determines which |
| 397 | determines which lines should be filled. | 377 | lines should be filled. |
| 398 | 378 | ||
| 399 | * org.el (org-fill-paragraph): Small refactoring. | 379 | * org.el (org-fill-paragraph): Small refactoring. |
| 400 | 380 | ||
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index d74444c5a8e..2eb96c2510b 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -3544,50 +3544,49 @@ generating a new one." | |||
| 3544 | (unless (eq org-agenda-remove-tags t) | 3544 | (unless (eq org-agenda-remove-tags t) |
| 3545 | (org-agenda-align-tags)) | 3545 | (org-agenda-align-tags)) |
| 3546 | (unless org-agenda-with-colors | 3546 | (unless org-agenda-with-colors |
| 3547 | (remove-text-properties (point-min) (point-max) '(face nil)))) | 3547 | (remove-text-properties (point-min) (point-max) '(face nil))) |
| 3548 | (if (and (boundp 'org-agenda-overriding-columns-format) | 3548 | (if (and (boundp 'org-agenda-overriding-columns-format) |
| 3549 | org-agenda-overriding-columns-format) | 3549 | org-agenda-overriding-columns-format) |
| 3550 | (org-set-local 'org-agenda-overriding-columns-format | 3550 | (org-set-local 'org-agenda-overriding-columns-format |
| 3551 | org-agenda-overriding-columns-format)) | 3551 | org-agenda-overriding-columns-format)) |
| 3552 | (if (and (boundp 'org-agenda-view-columns-initially) | 3552 | (if (and (boundp 'org-agenda-view-columns-initially) |
| 3553 | org-agenda-view-columns-initially) | 3553 | org-agenda-view-columns-initially) |
| 3554 | (org-agenda-columns)) | 3554 | (org-agenda-columns)) |
| 3555 | (when org-agenda-fontify-priorities | 3555 | (when org-agenda-fontify-priorities |
| 3556 | (org-agenda-fontify-priorities)) | 3556 | (org-agenda-fontify-priorities)) |
| 3557 | (when (and org-agenda-dim-blocked-tasks org-blocker-hook) | 3557 | (when (and org-agenda-dim-blocked-tasks org-blocker-hook) |
| 3558 | (org-agenda-dim-blocked-tasks)) | 3558 | (org-agenda-dim-blocked-tasks)) |
| 3559 | ;; We need to widen when `org-agenda-finalize' is called from | 3559 | ;; We need to widen when `org-agenda-finalize' is called from |
| 3560 | ;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in') | 3560 | ;; `org-agenda-change-all-lines' (e.g. in `org-agenda-clock-in') |
| 3561 | (when org-clock-current-task | 3561 | (when org-clock-current-task |
| 3562 | (save-restriction | 3562 | (save-restriction |
| 3563 | (widen) | 3563 | (widen) |
| 3564 | (org-agenda-mark-clocking-task))) | 3564 | (org-agenda-mark-clocking-task))) |
| 3565 | (when org-agenda-entry-text-mode | 3565 | (when org-agenda-entry-text-mode |
| 3566 | (org-agenda-entry-text-hide) | 3566 | (org-agenda-entry-text-hide) |
| 3567 | (org-agenda-entry-text-show)) | 3567 | (org-agenda-entry-text-show)) |
| 3568 | (if (and (functionp 'org-habit-insert-consistency-graphs) | 3568 | (if (and (functionp 'org-habit-insert-consistency-graphs) |
| 3569 | (save-excursion (next-single-property-change (point-min) 'org-habit-p))) | 3569 | (save-excursion (next-single-property-change (point-min) 'org-habit-p))) |
| 3570 | (org-habit-insert-consistency-graphs)) | 3570 | (org-habit-insert-consistency-graphs)) |
| 3571 | (setq org-agenda-type (org-get-at-bol 'org-agenda-type)) | 3571 | (setq org-agenda-type (org-get-at-bol 'org-agenda-type)) |
| 3572 | (when (delq nil (mapcar (lambda (tp) (org-agenda-check-type nil tp)) | 3572 | (when (delq nil (mapcar (lambda (tp) (org-agenda-check-type nil tp)) |
| 3573 | org-agenda-use-tag-inheritance)) | 3573 | org-agenda-use-tag-inheritance)) |
| 3574 | (let (mrk) | 3574 | (let (mrk) |
| 3575 | (save-excursion | 3575 | (save-excursion |
| 3576 | (goto-char (point-min)) | 3576 | (goto-char (point-min)) |
| 3577 | (while (equal (forward-line) 0) | 3577 | (while (equal (forward-line) 0) |
| 3578 | (when (setq mrk (or (get-text-property (point) 'org-hd-marker) | 3578 | (when (setq mrk (or (get-text-property (point) 'org-hd-marker) |
| 3579 | (get-text-property (point) 'org-hd-marker))) | 3579 | (get-text-property (point) 'org-hd-marker))) |
| 3580 | (put-text-property (point-at-bol) (point-at-eol) | 3580 | (put-text-property (point-at-bol) (point-at-eol) |
| 3581 | 'tags (org-with-point-at mrk | 3581 | 'tags (org-with-point-at mrk |
| 3582 | (delete-dups | 3582 | (delete-dups |
| 3583 | (mapcar 'downcase (org-get-tags-at)))))))))) | 3583 | (mapcar 'downcase (org-get-tags-at)))))))))) |
| 3584 | (let ((inhibit-read-only t)) | 3584 | (run-hooks 'org-agenda-finalize-hook) |
| 3585 | (run-hooks 'org-agenda-finalize-hook)) | 3585 | (when (or org-agenda-tag-filter (get 'org-agenda-tag-filter :preset-filter)) |
| 3586 | (when (or org-agenda-tag-filter (get 'org-agenda-tag-filter :preset-filter)) | 3586 | (org-agenda-filter-apply org-agenda-tag-filter 'tag)) |
| 3587 | (org-agenda-filter-apply org-agenda-tag-filter 'tag)) | 3587 | (when (or org-agenda-category-filter (get 'org-agenda-category-filter :preset-filter)) |
| 3588 | (when (or org-agenda-category-filter (get 'org-agenda-category-filter :preset-filter)) | 3588 | (org-agenda-filter-apply org-agenda-category-filter 'category)) |
| 3589 | (org-agenda-filter-apply org-agenda-category-filter 'category)) | 3589 | (org-add-hook 'kill-buffer-hook 'org-agenda-reset-markers 'append 'local))))) |
| 3590 | (org-add-hook 'kill-buffer-hook 'org-agenda-reset-markers 'append 'local)))) | ||
| 3591 | 3590 | ||
| 3592 | (defun org-agenda-mark-clocking-task () | 3591 | (defun org-agenda-mark-clocking-task () |
| 3593 | "Mark the current clock entry in the agenda if it is present." | 3592 | "Mark the current clock entry in the agenda if it is present." |
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el index 277196bb768..501d30ab1d7 100644 --- a/lisp/org/org-src.el +++ b/lisp/org/org-src.el | |||
| @@ -528,6 +528,14 @@ the language, a switch telling if the content should be in a single line." | |||
| 528 | (pos (point)) | 528 | (pos (point)) |
| 529 | re1 re2 single beg end lang lfmt match-re1 ind entry) | 529 | re1 re2 single beg end lang lfmt match-re1 ind entry) |
| 530 | (catch 'exit | 530 | (catch 'exit |
| 531 | (when (org-at-table.el-p) | ||
| 532 | (re-search-backward "^[\t]*[^ \t|\\+]" nil t) | ||
| 533 | (setq beg (1+ (point-at-eol))) | ||
| 534 | (goto-char beg) | ||
| 535 | (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t) | ||
| 536 | (progn (goto-char (point-max)) (newline))) | ||
| 537 | (setq end (1- (point-at-bol))) | ||
| 538 | (throw 'exit (list beg end 'table.el nil nil 0))) | ||
| 531 | (while (setq entry (pop re-list)) | 539 | (while (setq entry (pop re-list)) |
| 532 | (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry) | 540 | (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry) |
| 533 | single (nth 3 entry)) | 541 | single (nth 3 entry)) |
| @@ -558,16 +566,7 @@ the language, a switch telling if the content should be in a single line." | |||
| 558 | (throw 'exit | 566 | (throw 'exit |
| 559 | (list (match-end 0) end | 567 | (list (match-end 0) end |
| 560 | (org-edit-src-get-lang lang) | 568 | (org-edit-src-get-lang lang) |
| 561 | single lfmt ind))))))))) | 569 | single lfmt ind)))))))))))) |
| 562 | (when (org-at-table.el-p) | ||
| 563 | (re-search-backward "^[\t]*[^ \t|\\+]" nil t) | ||
| 564 | (setq beg (1+ (point-at-eol))) | ||
| 565 | (goto-char beg) | ||
| 566 | (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t) | ||
| 567 | (progn (goto-char (point-max)) (newline))) | ||
| 568 | (setq end (point-at-bol)) | ||
| 569 | (setq ind (org-edit-src-get-indentation beg)) | ||
| 570 | (throw 'exit (list beg end 'table.el nil nil ind)))))) | ||
| 571 | 570 | ||
| 572 | (defun org-edit-src-get-lang (lang) | 571 | (defun org-edit-src-get-lang (lang) |
| 573 | "Extract the src language." | 572 | "Extract the src language." |
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el index f4f4bfb7651..f638e57ad94 100644 --- a/lisp/org/org-version.el +++ b/lisp/org/org-version.el | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | (defun org-git-version () | 11 | (defun org-git-version () |
| 12 | "The Git version of org-mode. | 12 | "The Git version of org-mode. |
| 13 | Inserted by installing org-mode or when a release is made." | 13 | Inserted by installing org-mode or when a release is made." |
| 14 | (let ((org-git-version "7.9.3+-GNU-Emacs-24-3 (commit c8c217aa)")) | 14 | (let ((org-git-version "7.9.3+-GNU-Emacs-24-3 (commit 4cac75153)")) |
| 15 | org-git-version)) | 15 | org-git-version)) |
| 16 | ;;;###autoload | 16 | ;;;###autoload |
| 17 | (defvar org-odt-data-dir "/usr/share/emacs/etc/org" | 17 | (defvar org-odt-data-dir "/usr/share/emacs/etc/org" |