diff options
| author | Carsten Dominik | 2009-01-27 11:39:48 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2009-01-27 11:39:48 +0000 |
| commit | 65c439fd68997aa8f44cad817d09f97c35b0635c (patch) | |
| tree | 4317105206b2f28e0b6f97e16c709face4ad5e87 | |
| parent | e6c815ae0953136a01aef0d5321b9c78ffcfbdfb (diff) | |
| download | emacs-65c439fd68997aa8f44cad817d09f97c35b0635c.tar.gz emacs-65c439fd68997aa8f44cad817d09f97c35b0635c.zip | |
2009-01-27 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-todo): Return correct state type even if the blocker
throws an error.
(org-modifier-cursor-error): Renamed from
`org-shiftcursor-error'.
(org-shiftmetaleft, org-shiftmetaright, org-shiftmetaup)
(org-shiftmetadown): Call `org-modifier-cursor-error'.
* org-agenda.el (org-agenda-todo): Call `org-todo' interactively,
to get real errors from the blocker hook.
* org.el (org-shiftselect-error, org-call-for-shift-select): New
functions.
(org-set-visibility-according-to-property): Turn off the setting
of `org-show-entry-below', to avoid overruling a FOLDED visibility
property.
* org.el (org-support-shift-select): New option.
(org-shiftup, org-shiftdown, org-shiftright, org-shiftleft)
(org-shiftcontrolright, org-shiftcontrolleft): Support for shift
selection outside contexts.
* org-list.el (org-at-item-bullet-p): New function.
* org-jsinfo.el (org-infojs-handle-options): Remove unnecessary
variables.
* org-footnote.el (org-footnote-normalize): Remove unnecessary
variable.
(org-insert-footnote-reference-near-definition): Remove
unnecessary let form.
35 files changed, 268 insertions, 120 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index f46514d2173..81bd01e7664 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-01-27 Carsten Dominik <dominik@science.uva.nl> | ||
| 2 | |||
| 3 | * org.texi (Plain lists, TODO basics, Priorities) | ||
| 4 | (Multiple sets in one file, Conflicts): Document interaction with | ||
| 5 | `shift-selection-mode'. | ||
| 6 | |||
| 1 | 2009-01-27 Jay Belanger <jay.p.belanger@gmail.com> | 7 | 2009-01-27 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 8 | ||
| 3 | * calc.texi (Embedded Mode, Algebraic-Style Calculations): | 9 | * calc.texi (Embedded Mode, Algebraic-Style Calculations): |
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 61852f6b37f..846dcabf26e 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2009-01-27 Carsten Dominik <carsten.dominik@gmail.com> | ||
| 2 | |||
| 3 | * org.el (org-todo): Return correct state type even if the blocker | ||
| 4 | throws an error. | ||
| 5 | (org-modifier-cursor-error): Renamed from | ||
| 6 | `org-shiftcursor-error'. | ||
| 7 | (org-shiftmetaleft, org-shiftmetaright, org-shiftmetaup) | ||
| 8 | (org-shiftmetadown): Call `org-modifier-cursor-error'. | ||
| 9 | |||
| 10 | * org-agenda.el (org-agenda-todo): Call `org-todo' interactively, | ||
| 11 | to get real errors from the blocker hook. | ||
| 12 | |||
| 13 | * org.el (org-shiftselect-error, org-call-for-shift-select): New | ||
| 14 | functions. | ||
| 15 | (org-set-visibility-according-to-property): Turn off the setting | ||
| 16 | of `org-show-entry-below', to avoid overruling a FOLDED visibility | ||
| 17 | property. | ||
| 18 | |||
| 19 | * org.el (org-support-shift-select): New option. | ||
| 20 | (org-shiftup, org-shiftdown, org-shiftright, org-shiftleft) | ||
| 21 | (org-shiftcontrolright, org-shiftcontrolleft): Support for shift | ||
| 22 | selection outside contexts. | ||
| 23 | |||
| 24 | * org-list.el (org-at-item-bullet-p): New function. | ||
| 25 | |||
| 26 | * org-jsinfo.el (org-infojs-handle-options): Remove unnecessary | ||
| 27 | variables. | ||
| 28 | |||
| 29 | * org-footnote.el (org-footnote-normalize): Remove unnecessary | ||
| 30 | variable. | ||
| 31 | (org-insert-footnote-reference-near-definition): Remove | ||
| 32 | unnecessary let form. | ||
| 33 | |||
| 1 | 2009-01-26 Carsten Dominik <dominik@science.uva.nl> | 34 | 2009-01-26 Carsten Dominik <dominik@science.uva.nl> |
| 2 | 35 | ||
| 3 | * org-export-latex.el (org-export-as-latex): Call | 36 | * org-export-latex.el (org-export-as-latex): Call |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 698c6244ac4..97d68d5aa9f 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -2612,7 +2612,7 @@ in `org-agenda-text-search-extra-files'." | |||
| 2612 | 'keymap org-agenda-keymap | 2612 | 'keymap org-agenda-keymap |
| 2613 | 'help-echo (format "mouse-2 or RET jump to location"))) | 2613 | 'help-echo (format "mouse-2 or RET jump to location"))) |
| 2614 | regexp rtn rtnall files file pos | 2614 | regexp rtn rtnall files file pos |
| 2615 | marker priority category tags c neg re | 2615 | marker category tags c neg re |
| 2616 | ee txt beg end words regexps+ regexps- hdl-only buffer beg1 str) | 2616 | ee txt beg end words regexps+ regexps- hdl-only buffer beg1 str) |
| 2617 | (unless (and (not edit-at) | 2617 | (unless (and (not edit-at) |
| 2618 | (stringp string) | 2618 | (stringp string) |
| @@ -3715,7 +3715,7 @@ FRACTION is what fraction of the head-warning time has passed." | |||
| 3715 | (regexp org-tr-regexp) | 3715 | (regexp org-tr-regexp) |
| 3716 | (d0 (calendar-absolute-from-gregorian date)) | 3716 | (d0 (calendar-absolute-from-gregorian date)) |
| 3717 | marker hdmarker ee txt d1 d2 s1 s2 timestr category todo-state tags pos | 3717 | marker hdmarker ee txt d1 d2 s1 s2 timestr category todo-state tags pos |
| 3718 | donep head) | 3718 | head) |
| 3719 | (goto-char (point-min)) | 3719 | (goto-char (point-min)) |
| 3720 | (while (re-search-forward regexp nil t) | 3720 | (while (re-search-forward regexp nil t) |
| 3721 | (catch :skip | 3721 | (catch :skip |
| @@ -4324,7 +4324,7 @@ to switch to narrowing." | |||
| 4324 | (effort-prompt "") | 4324 | (effort-prompt "") |
| 4325 | (inhibit-read-only t) | 4325 | (inhibit-read-only t) |
| 4326 | (current org-agenda-filter) | 4326 | (current org-agenda-filter) |
| 4327 | char a n tag tags) | 4327 | char a n tag) |
| 4328 | (unless char | 4328 | (unless char |
| 4329 | (message | 4329 | (message |
| 4330 | "%s by tag [%s ], [TAB], [/]:off, [+-]:narrow, [>=<]:effort: " | 4330 | "%s by tag [%s ], [TAB], [/]:off, [+-]:narrow, [>=<]:effort: " |
| @@ -4423,7 +4423,7 @@ If the line does not have an effort defined, return nil." | |||
| 4423 | (while (not (eobp)) | 4423 | (while (not (eobp)) |
| 4424 | (if (get-text-property (point) 'org-marker) | 4424 | (if (get-text-property (point) 'org-marker) |
| 4425 | (progn | 4425 | (progn |
| 4426 | (setq tags (get-text-property (point) 'tags)) | 4426 | (setq tags (get-text-property (point) 'tags)) ; used in eval |
| 4427 | (if (not (eval org-agenda-filter-form)) | 4427 | (if (not (eval org-agenda-filter-form)) |
| 4428 | (org-agenda-filter-by-tag-hide-line)) | 4428 | (org-agenda-filter-by-tag-hide-line)) |
| 4429 | (beginning-of-line 2)) | 4429 | (beginning-of-line 2)) |
| @@ -5084,7 +5084,7 @@ the same tree node, and the headline of the tree node in the Org-mode file." | |||
| 5084 | (save-excursion | 5084 | (save-excursion |
| 5085 | (and (outline-next-heading) | 5085 | (and (outline-next-heading) |
| 5086 | (org-flag-heading nil))) ; show the next heading | 5086 | (org-flag-heading nil))) ; show the next heading |
| 5087 | (org-todo arg) | 5087 | (call-interactively 'org-todo) |
| 5088 | (and (bolp) (forward-char 1)) | 5088 | (and (bolp) (forward-char 1)) |
| 5089 | (setq newhead (org-get-heading)) | 5089 | (setq newhead (org-get-heading)) |
| 5090 | (when (and (org-bound-and-true-p | 5090 | (when (and (org-bound-and-true-p |
| @@ -5419,7 +5419,7 @@ TAB Visit marked entry in other window | |||
| 5419 | 5419 | ||
| 5420 | The cursor may be at a date in the calendar, or in the Org agenda." | 5420 | The cursor may be at a date in the calendar, or in the Org agenda." |
| 5421 | (interactive) | 5421 | (interactive) |
| 5422 | (let (pos ans) | 5422 | (let (ans) |
| 5423 | (message "Select action: [m]ark | [s]chedule [d]eadline [r]emember [ ]show") | 5423 | (message "Select action: [m]ark | [s]chedule [d]eadline [r]emember [ ]show") |
| 5424 | (setq ans (read-char-exclusive)) | 5424 | (setq ans (read-char-exclusive)) |
| 5425 | (cond | 5425 | (cond |
diff --git a/lisp/org/org-archive.el b/lisp/org/org-archive.el index 8c2ef988030..045a505e45f 100644 --- a/lisp/org/org-archive.el +++ b/lisp/org/org-archive.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-attach.el b/lisp/org/org-attach.el index 9ee6af64efe..d68fe410c9b 100644 --- a/lisp/org/org-attach.el +++ b/lisp/org/org-attach.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: John Wiegley <johnw@newartisans.com> | 5 | ;; Author: John Wiegley <johnw@newartisans.com> |
| 6 | ;; Keywords: org data task | 6 | ;; Keywords: org data task |
| 7 | ;; Version: 6.19a | 7 | ;; Version: 6.19e |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | ;; | 10 | ;; |
diff --git a/lisp/org/org-bbdb.el b/lisp/org/org-bbdb.el index b925151743f..5656ba5f5e7 100644 --- a/lisp/org/org-bbdb.el +++ b/lisp/org/org-bbdb.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Thomas Baumann <thomas dot baumann at ch dot tum dot de> | 7 | ;; Thomas Baumann <thomas dot baumann at ch dot tum dot de> |
| 8 | ;; Keywords: outlines, hypermedia, calendar, wp | 8 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 9 | ;; Homepage: http://orgmode.org | 9 | ;; Homepage: http://orgmode.org |
| 10 | ;; Version: 6.19a | 10 | ;; Version: 6.19e |
| 11 | ;; | 11 | ;; |
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | ;; | 13 | ;; |
| @@ -292,7 +292,7 @@ This is used by Org to re-create the anniversary hash table." | |||
| 292 | (y (nth 2 date)) ; year | 292 | (y (nth 2 date)) ; year |
| 293 | (annivs (gethash (list m d) org-bbdb-anniv-hash)) | 293 | (annivs (gethash (list m d) org-bbdb-anniv-hash)) |
| 294 | (text ()) | 294 | (text ()) |
| 295 | split class form rec recs) | 295 | rec recs) |
| 296 | 296 | ||
| 297 | ;; we don't want to miss people born on Feb. 29th | 297 | ;; we don't want to miss people born on Feb. 29th |
| 298 | (when (and (= m 3) (= d 1) | 298 | (when (and (= m 3) (= d 1) |
diff --git a/lisp/org/org-bibtex.el b/lisp/org/org-bibtex.el index 0df5d4a05ac..968da0044a8 100644 --- a/lisp/org/org-bibtex.el +++ b/lisp/org/org-bibtex.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Bastien Guerry <bzg at altern dot org> | 5 | ;; Author: Bastien Guerry <bzg at altern dot org> |
| 6 | ;; Carsten Dominik <carsten dot dominik at gmail dot com> | 6 | ;; Carsten Dominik <carsten dot dominik at gmail dot com> |
| 7 | ;; Keywords: org, wp, remember | 7 | ;; Keywords: org, wp, remember |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 3703b52d1cb..44118471625 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -188,7 +188,7 @@ of a different task.") | |||
| 188 | (defun org-clock-select-task (&optional prompt) | 188 | (defun org-clock-select-task (&optional prompt) |
| 189 | "Select a task that recently was associated with clocking." | 189 | "Select a task that recently was associated with clocking." |
| 190 | (interactive) | 190 | (interactive) |
| 191 | (let (sel-list rpl file task (i 0) s) | 191 | (let (sel-list rpl (i 0) s) |
| 192 | (save-window-excursion | 192 | (save-window-excursion |
| 193 | (org-switch-to-buffer-other-window | 193 | (org-switch-to-buffer-other-window |
| 194 | (get-buffer-create "*Clock Task Select*")) | 194 | (get-buffer-create "*Clock Task Select*")) |
diff --git a/lisp/org/org-colview.el b/lisp/org/org-colview.el index 1de46fef303..3de6ec95844 100644 --- a/lisp/org/org-colview.el +++ b/lisp/org/org-colview.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -149,7 +149,7 @@ This is the compiled version of the format.") | |||
| 149 | (face1 (list color 'org-agenda-column-dateline ref-face)) | 149 | (face1 (list color 'org-agenda-column-dateline ref-face)) |
| 150 | (pl (or (get-text-property (point-at-bol) 'prefix-length) 0)) | 150 | (pl (or (get-text-property (point-at-bol) 'prefix-length) 0)) |
| 151 | (cphr (get-text-property (point-at-bol) 'org-complex-heading-regexp)) | 151 | (cphr (get-text-property (point-at-bol) 'org-complex-heading-regexp)) |
| 152 | pom property ass width f string ov column val modval s1 s2 title) | 152 | pom property ass width f string ov column val modval s2 title) |
| 153 | ;; Check if the entry is in another buffer. | 153 | ;; Check if the entry is in another buffer. |
| 154 | (unless props | 154 | (unless props |
| 155 | (if (eq major-mode 'org-agenda-mode) | 155 | (if (eq major-mode 'org-agenda-mode) |
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el index cc4a2fa9d6a..e9e750437b5 100644 --- a/lisp/org/org-compat.el +++ b/lisp/org/org-compat.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-exp.el b/lisp/org/org-exp.el index 14abae40507..89cbd95d61b 100644 --- a/lisp/org/org-exp.el +++ b/lisp/org/org-exp.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -981,7 +981,7 @@ modified) list.") | |||
| 981 | "LINK_UP" "LINK_HOME" "SETUPFILE" "STYLE" "LATEX_HEADER" | 981 | "LINK_UP" "LINK_HOME" "SETUPFILE" "STYLE" "LATEX_HEADER" |
| 982 | "EXPORT_SELECT_TAGS" "EXPORT_EXCLUDE_TAGS") | 982 | "EXPORT_SELECT_TAGS" "EXPORT_EXCLUDE_TAGS") |
| 983 | (mapcar 'car org-export-inbuffer-options-extra)))) | 983 | (mapcar 'car org-export-inbuffer-options-extra)))) |
| 984 | p key val text options js-up js-main js-css js-opt a pr style | 984 | p key val text options a pr style |
| 985 | latex-header | 985 | latex-header |
| 986 | ext-setup-or-nil setup-contents (start 0)) | 986 | ext-setup-or-nil setup-contents (start 0)) |
| 987 | (while (or (and ext-setup-or-nil | 987 | (while (or (and ext-setup-or-nil |
| @@ -1040,7 +1040,7 @@ modified) list.") | |||
| 1040 | "Parse an OPTIONS line and set values in the property list P." | 1040 | "Parse an OPTIONS line and set values in the property list P." |
| 1041 | (let (o) | 1041 | (let (o) |
| 1042 | (when options | 1042 | (when options |
| 1043 | (let ((op org-export-plist-vars) a) | 1043 | (let ((op org-export-plist-vars)) |
| 1044 | (while (setq o (pop op)) | 1044 | (while (setq o (pop op)) |
| 1045 | (if (and (nth 1 o) | 1045 | (if (and (nth 1 o) |
| 1046 | (string-match (concat (regexp-quote (nth 1 o)) | 1046 | (string-match (concat (regexp-quote (nth 1 o)) |
| @@ -1640,7 +1640,7 @@ on this string to produce the exported version." | |||
| 1640 | 1640 | ||
| 1641 | (defun org-export-kill-licensed-text () | 1641 | (defun org-export-kill-licensed-text () |
| 1642 | "Remove all text that is marked with a :org-license-to-kill property." | 1642 | "Remove all text that is marked with a :org-license-to-kill property." |
| 1643 | (let (p q) | 1643 | (let (p) |
| 1644 | (while (setq p (text-property-any (point-min) (point-max) | 1644 | (while (setq p (text-property-any (point-min) (point-max) |
| 1645 | :org-license-to-kill t)) | 1645 | :org-license-to-kill t)) |
| 1646 | (delete-region | 1646 | (delete-region |
| @@ -1849,7 +1849,7 @@ from the buffer." | |||
| 1849 | (tags (plist-get opts :tags)) | 1849 | (tags (plist-get opts :tags)) |
| 1850 | (pri (plist-get opts :priority)) | 1850 | (pri (plist-get opts :priority)) |
| 1851 | (elts '(1 2 3 4 5)) | 1851 | (elts '(1 2 3 4 5)) |
| 1852 | rpl props) | 1852 | rpl) |
| 1853 | (setq elts (delq nil (list 1 (if todo 2) (if pri 3) 4 (if tags 5)))) | 1853 | (setq elts (delq nil (list 1 (if todo 2) (if pri 3) 4 (if tags 5)))) |
| 1854 | (when (or (not todo) (not tags) (not pri)) | 1854 | (when (or (not todo) (not tags) (not pri)) |
| 1855 | (goto-char (point-min)) | 1855 | (goto-char (point-min)) |
| @@ -1898,7 +1898,7 @@ from the buffer." | |||
| 1898 | (defun org-export-protect-colon-examples () | 1898 | (defun org-export-protect-colon-examples () |
| 1899 | "Protect lines starting with a colon." | 1899 | "Protect lines starting with a colon." |
| 1900 | (goto-char (point-min)) | 1900 | (goto-char (point-min)) |
| 1901 | (let ((re "^[ \t]*:\\([ \t]\\|$\\)") beg end) | 1901 | (let ((re "^[ \t]*:\\([ \t]\\|$\\)") beg) |
| 1902 | (while (re-search-forward re nil t) | 1902 | (while (re-search-forward re nil t) |
| 1903 | (beginning-of-line 1) | 1903 | (beginning-of-line 1) |
| 1904 | (setq beg (point)) | 1904 | (setq beg (point)) |
| @@ -2133,7 +2133,7 @@ can work correctly." | |||
| 2133 | 2133 | ||
| 2134 | (defun org-export-get-title-from-subtree () | 2134 | (defun org-export-get-title-from-subtree () |
| 2135 | "Return subtree title and exclude it from export." | 2135 | "Return subtree title and exclude it from export." |
| 2136 | (let (title (m (mark)) (rbeg (region-beginning)) (rend (region-end))) | 2136 | (let (title (rbeg (region-beginning)) (rend (region-end))) |
| 2137 | (save-excursion | 2137 | (save-excursion |
| 2138 | (goto-char rbeg) | 2138 | (goto-char rbeg) |
| 2139 | (when (and (org-at-heading-p) | 2139 | (when (and (org-at-heading-p) |
| @@ -2160,7 +2160,7 @@ can work correctly." | |||
| 2160 | 2160 | ||
| 2161 | (defun org-get-min-level (lines) | 2161 | (defun org-get-min-level (lines) |
| 2162 | "Get the minimum level in LINES." | 2162 | "Get the minimum level in LINES." |
| 2163 | (let ((re "^\\(\\*+\\) ") l min) | 2163 | (let ((re "^\\(\\*+\\) ") l) |
| 2164 | (catch 'exit | 2164 | (catch 'exit |
| 2165 | (while (setq l (pop lines)) | 2165 | (while (setq l (pop lines)) |
| 2166 | (if (string-match re l) | 2166 | (if (string-match re l) |
| @@ -2363,7 +2363,7 @@ and `+n' for continuing previous numering. | |||
| 2363 | Code formatting according to language currently only works for HTML. | 2363 | Code formatting according to language currently only works for HTML. |
| 2364 | Numbering lines works for all three major backends (html, latex, and ascii)." | 2364 | Numbering lines works for all three major backends (html, latex, and ascii)." |
| 2365 | (save-match-data | 2365 | (save-match-data |
| 2366 | (let (num cont rtn named rpllbl keepp textareap cols rows fmt) | 2366 | (let (num cont rtn rpllbl keepp textareap cols rows fmt) |
| 2367 | (setq opts (or opts "") | 2367 | (setq opts (or opts "") |
| 2368 | num (string-match "[-+]n\\>" opts) | 2368 | num (string-match "[-+]n\\>" opts) |
| 2369 | cont (string-match "\\+n\\>" opts) | 2369 | cont (string-match "\\+n\\>" opts) |
| @@ -4445,9 +4445,8 @@ If there are links in the string, don't modify these." | |||
| 4445 | "Apply all active conversions to translate special ASCII to HTML." | 4445 | "Apply all active conversions to translate special ASCII to HTML." |
| 4446 | (setq s (org-html-protect s)) | 4446 | (setq s (org-html-protect s)) |
| 4447 | (if org-export-html-expand | 4447 | (if org-export-html-expand |
| 4448 | (let ((start 0)) | 4448 | (while (string-match "@<\\([^&]*\\)>" s) |
| 4449 | (while (string-match "@<\\([^&]*\\)>" s) | 4449 | (setq s (replace-match "<\\1>" t nil s)))) |
| 4450 | (setq s (replace-match "<\\1>" t nil s))))) | ||
| 4451 | (if org-export-with-emphasize | 4450 | (if org-export-with-emphasize |
| 4452 | (setq s (org-export-html-convert-emphasize s))) | 4451 | (setq s (org-export-html-convert-emphasize s))) |
| 4453 | (if org-export-with-special-strings | 4452 | (if org-export-with-special-strings |
| @@ -4747,7 +4746,7 @@ When COMBINE is non nil, add the category to each line." | |||
| 4747 | "DTSTART")) | 4746 | "DTSTART")) |
| 4748 | hd ts ts2 state status (inc t) pos b sexp rrule | 4747 | hd ts ts2 state status (inc t) pos b sexp rrule |
| 4749 | scheduledp deadlinep todo prefix due start | 4748 | scheduledp deadlinep todo prefix due start |
| 4750 | tmp pri categories entry location summary desc uid | 4749 | tmp pri categories location summary desc uid |
| 4751 | (sexp-buffer (get-buffer-create "*ical-tmp*"))) | 4750 | (sexp-buffer (get-buffer-create "*ical-tmp*"))) |
| 4752 | (org-refresh-category-properties) | 4751 | (org-refresh-category-properties) |
| 4753 | (save-excursion | 4752 | (save-excursion |
diff --git a/lisp/org/org-export-latex.el b/lisp/org/org-export-latex.el index a6958860276..ce79337b4f6 100644 --- a/lisp/org/org-export-latex.el +++ b/lisp/org/org-export-latex.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; | 4 | ;; |
| 5 | ;; Emacs Lisp Archive Entry | 5 | ;; Emacs Lisp Archive Entry |
| 6 | ;; Filename: org-export-latex.el | 6 | ;; Filename: org-export-latex.el |
| 7 | ;; Version: 6.19a | 7 | ;; Version: 6.19e |
| 8 | ;; Author: Bastien Guerry <bzg AT altern DOT org> | 8 | ;; Author: Bastien Guerry <bzg AT altern DOT org> |
| 9 | ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> | 9 | ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> |
| 10 | ;; Keywords: org, wp, tex | 10 | ;; Keywords: org, wp, tex |
| @@ -434,7 +434,8 @@ when PUB-DIR is set, use this as the publishing directory." | |||
| 434 | (region-p nil) | 434 | (region-p nil) |
| 435 | (t (plist-get opt-plist :skip-before-1st-heading)))) | 435 | (t (plist-get opt-plist :skip-before-1st-heading)))) |
| 436 | (text (plist-get opt-plist :text)) | 436 | (text (plist-get opt-plist :text)) |
| 437 | (first-lines (if skip "" (org-export-latex-first-lines opt-plist rbeg))) | 437 | (first-lines (if skip "" (org-export-latex-first-lines |
| 438 | opt-plist rbeg))) | ||
| 438 | (coding-system (and (boundp 'buffer-file-coding-system) | 439 | (coding-system (and (boundp 'buffer-file-coding-system) |
| 439 | buffer-file-coding-system)) | 440 | buffer-file-coding-system)) |
| 440 | (coding-system-for-write (or org-export-latex-coding-system | 441 | (coding-system-for-write (or org-export-latex-coding-system |
| @@ -1306,7 +1307,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." | |||
| 1306 | 1307 | ||
| 1307 | ;; Convert LaTeX to \LaTeX{} | 1308 | ;; Convert LaTeX to \LaTeX{} |
| 1308 | (goto-char (point-min)) | 1309 | (goto-char (point-min)) |
| 1309 | (let ((case-fold-search nil) rpl) | 1310 | (let ((case-fold-search nil)) |
| 1310 | (while (re-search-forward "\\([^+_]\\)LaTeX" nil t) | 1311 | (while (re-search-forward "\\([^+_]\\)LaTeX" nil t) |
| 1311 | (org-if-unprotected | 1312 | (org-if-unprotected |
| 1312 | (replace-match (org-export-latex-protect-string | 1313 | (replace-match (org-export-latex-protect-string |
diff --git a/lisp/org/org-faces.el b/lisp/org/org-faces.el index eb415a4a154..2ba13d2e965 100644 --- a/lisp/org/org-faces.el +++ b/lisp/org/org-faces.el | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | ;;; org-faces.el --- Face definitions for Org-mode. | 1 | ;;; org-faces.el --- Face definitions for Org-mode. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009; | 3 | ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-footnote.el b/lisp/org/org-footnote.el index 05ebce54c0b..4372411c06d 100644 --- a/lisp/org/org-footnote.el +++ b/lisp/org/org-footnote.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -255,7 +255,7 @@ or new, let the user edit the definition of the footnote." | |||
| 255 | "Start the definition of a footnote with label LABEL." | 255 | "Start the definition of a footnote with label LABEL." |
| 256 | (interactive "sLabel: ") | 256 | (interactive "sLabel: ") |
| 257 | (setq label (org-footnote-normalize-label label)) | 257 | (setq label (org-footnote-normalize-label label)) |
| 258 | (let (re p) | 258 | (let (re) |
| 259 | (cond | 259 | (cond |
| 260 | ((org-mode-p) | 260 | ((org-mode-p) |
| 261 | (if (not org-footnote-section) | 261 | (if (not org-footnote-section) |
| @@ -322,7 +322,7 @@ Org-mode exporters. | |||
| 322 | When SORT-ONLY is set, only sort the footnote definitions into the | 322 | When SORT-ONLY is set, only sort the footnote definitions into the |
| 323 | referenced sequence." | 323 | referenced sequence." |
| 324 | ;; This is based on Paul's function, but rewritten. | 324 | ;; This is based on Paul's function, but rewritten. |
| 325 | (let ((count 0) ref def idef ref-table liste beg beg1 marker a before | 325 | (let ((count 0) ref def idef ref-table beg beg1 marker a before |
| 326 | ins-point) | 326 | ins-point) |
| 327 | (save-excursion | 327 | (save-excursion |
| 328 | ;; Now find footnote references, and extract the definitions | 328 | ;; Now find footnote references, and extract the definitions |
| @@ -443,12 +443,11 @@ referenced sequence." | |||
| 443 | "Find first reference of footnote ENTRY and insert the definition there. | 443 | "Find first reference of footnote ENTRY and insert the definition there. |
| 444 | ENTRY is (fn-label num-mark definition)." | 444 | ENTRY is (fn-label num-mark definition)." |
| 445 | (when (car entry) | 445 | (when (car entry) |
| 446 | (let ((pos (point))) | 446 | (goto-char (point-min)) |
| 447 | (goto-char (point-min)) | 447 | (when (re-search-forward (format ".\\[%s[]:]" (regexp-quote (car entry))) |
| 448 | (when (re-search-forward (format ".\\[%s[]:]" (regexp-quote (car entry))) | 448 | nil t) |
| 449 | nil t) | 449 | (org-footnote-goto-local-insertion-point) |
| 450 | (org-footnote-goto-local-insertion-point) | 450 | (insert (format "\n\n[%s] %s" (car entry) (nth 2 entry)))))) |
| 451 | (insert (format "\n\n[%s] %s" (car entry) (nth 2 entry))))))) | ||
| 452 | 451 | ||
| 453 | (defun org-footnote-goto-local-insertion-point () | 452 | (defun org-footnote-goto-local-insertion-point () |
| 454 | "Find insertion point for footnote, just before next outline heading." | 453 | "Find insertion point for footnote, just before next outline heading." |
diff --git a/lisp/org/org-gnus.el b/lisp/org/org-gnus.el index 3c56e7f6bc4..393d47b25c9 100644 --- a/lisp/org/org-gnus.el +++ b/lisp/org/org-gnus.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Tassilo Horn <tassilo at member dot fsf dot org> | 7 | ;; Tassilo Horn <tassilo at member dot fsf dot org> |
| 8 | ;; Keywords: outlines, hypermedia, calendar, wp | 8 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 9 | ;; Homepage: http://orgmode.org | 9 | ;; Homepage: http://orgmode.org |
| 10 | ;; Version: 6.19a | 10 | ;; Version: 6.19e |
| 11 | ;; | 11 | ;; |
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | ;; | 13 | ;; |
diff --git a/lisp/org/org-id.el b/lisp/org/org-id.el index 0623c6071a8..659142b7191 100644 --- a/lisp/org/org-id.el +++ b/lisp/org/org-id.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -499,7 +499,7 @@ When CHECK is given, prepare detailed information about duplicate IDs." | |||
| 499 | (let ((res (make-hash-table | 499 | (let ((res (make-hash-table |
| 500 | :test 'equal | 500 | :test 'equal |
| 501 | :size (apply '+ (mapcar 'length list)))) | 501 | :size (apply '+ (mapcar 'length list)))) |
| 502 | f i) | 502 | f) |
| 503 | (mapc | 503 | (mapc |
| 504 | (lambda (x) | 504 | (lambda (x) |
| 505 | (setq f (car x)) | 505 | (setq f (car x)) |
| @@ -540,7 +540,7 @@ If that files does not exist, or if it does not contain this ID, | |||
| 540 | return nil. | 540 | return nil. |
| 541 | The position is returned as a cons cell (file-name . position). With | 541 | The position is returned as a cons cell (file-name . position). With |
| 542 | optional argument MARKERP, return the position as a new marker." | 542 | optional argument MARKERP, return the position as a new marker." |
| 543 | (let (org-agenda-new-buffers m buf pos) | 543 | (let (org-agenda-new-buffers buf pos) |
| 544 | (cond | 544 | (cond |
| 545 | ((not file) nil) | 545 | ((not file) nil) |
| 546 | ((not (file-exists-p file)) nil) | 546 | ((not (file-exists-p file)) nil) |
diff --git a/lisp/org/org-info.el b/lisp/org/org-info.el index a2c8acffbd1..388ae9d8212 100644 --- a/lisp/org/org-info.el +++ b/lisp/org/org-info.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-irc.el b/lisp/org/org-irc.el index 596f6a9d8e7..ddf9e3bc635 100644 --- a/lisp/org/org-irc.el +++ b/lisp/org/org-irc.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Philip Jackson <emacs@shellarchive.co.uk> | 5 | ;; Author: Philip Jackson <emacs@shellarchive.co.uk> |
| 6 | ;; Keywords: erc, irc, link, org | 6 | ;; Keywords: erc, irc, link, org |
| 7 | ;; Version: 6.19a | 7 | ;; Version: 6.19e |
| 8 | ;; | 8 | ;; |
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | ;; | 10 | ;; |
diff --git a/lisp/org/org-jsinfo.el b/lisp/org/org-jsinfo.el index 39462cf3266..d2b49a007d4 100644 --- a/lisp/org/org-jsinfo.el +++ b/lisp/org/org-jsinfo.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -130,7 +130,7 @@ Option settings will replace the %MANAGER-OPTIONS cookie." | |||
| 130 | (let ((template org-infojs-template) | 130 | (let ((template org-infojs-template) |
| 131 | (ptoc (plist-get exp-plist :table-of-contents)) | 131 | (ptoc (plist-get exp-plist :table-of-contents)) |
| 132 | (hlevels (plist-get exp-plist :headline-levels)) | 132 | (hlevels (plist-get exp-plist :headline-levels)) |
| 133 | tdepth sdepth p1 s p v a1 tmp e opt var val table default) | 133 | tdepth sdepth s v e opt var val table default) |
| 134 | (setq sdepth hlevels | 134 | (setq sdepth hlevels |
| 135 | tdepth hlevels) | 135 | tdepth hlevels) |
| 136 | (if (integerp ptoc) (setq tdepth (min ptoc tdepth))) | 136 | (if (integerp ptoc) (setq tdepth (min ptoc tdepth))) |
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el index bf5bbdf234d..08140a34803 100644 --- a/lisp/org/org-list.el +++ b/lisp/org/org-list.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Bastien Guerry <bzg AT altern DOT org> | 7 | ;; Bastien Guerry <bzg AT altern DOT org> |
| 8 | ;; Keywords: outlines, hypermedia, calendar, wp | 8 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 9 | ;; Homepage: http://orgmode.org | 9 | ;; Homepage: http://orgmode.org |
| 10 | ;; Version: 6.19a | 10 | ;; Version: 6.19e |
| 11 | ;; | 11 | ;; |
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | ;; | 13 | ;; |
| @@ -162,6 +162,12 @@ list, obtained by prompting the user." | |||
| 162 | ((= llt ?\)) "\\([ \t]*\\([-+]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\( \\|$\\)") | 162 | ((= llt ?\)) "\\([ \t]*\\([-+]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\( \\|$\\)") |
| 163 | (t (error "Invalid value of `org-plain-list-ordered-item-terminator'"))))))) | 163 | (t (error "Invalid value of `org-plain-list-ordered-item-terminator'"))))))) |
| 164 | 164 | ||
| 165 | (defun org-at-item-bullet-p () | ||
| 166 | "Is point at the bullet of a plain list item?" | ||
| 167 | (and (org-at-item-p) | ||
| 168 | (not (member (char-after) '(?\ ?\t))) | ||
| 169 | (< (point) (match-end 0)))) | ||
| 170 | |||
| 165 | (defun org-in-item-p () | 171 | (defun org-in-item-p () |
| 166 | "It the cursor inside a plain list item. | 172 | "It the cursor inside a plain list item. |
| 167 | Does not have to be the first line." | 173 | Does not have to be the first line." |
diff --git a/lisp/org/org-mac-message.el b/lisp/org/org-mac-message.el index b65bc20eae8..3a94d2feafa 100644 --- a/lisp/org/org-mac-message.el +++ b/lisp/org/org-mac-message.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: John Wiegley <johnw@gnu.org> | 5 | ;; Author: John Wiegley <johnw@gnu.org> |
| 6 | ;; Version: 6.19a | 6 | ;; Version: 6.19e |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
diff --git a/lisp/org/org-macs.el b/lisp/org/org-macs.el index 2055fcf7c8b..70c9fc390a8 100644 --- a/lisp/org/org-macs.el +++ b/lisp/org/org-macs.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-mew.el b/lisp/org/org-mew.el index 20a0f08fdcd..afbbe9a88f1 100644 --- a/lisp/org/org-mew.el +++ b/lisp/org/org-mew.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Tokuya Kameshima <kames at fa2 dot so-net dot ne dot jp> | 5 | ;; Author: Tokuya Kameshima <kames at fa2 dot so-net dot ne dot jp> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
diff --git a/lisp/org/org-mhe.el b/lisp/org/org-mhe.el index ef32397ea28..d8276f09e53 100644 --- a/lisp/org/org-mhe.el +++ b/lisp/org/org-mhe.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Thomas Baumann <thomas dot baumann at ch dot tum dot de> | 6 | ;; Author: Thomas Baumann <thomas dot baumann at ch dot tum dot de> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-mouse.el b/lisp/org/org-mouse.el index c04acb2bf30..a0597fec6ee 100644 --- a/lisp/org/org-mouse.el +++ b/lisp/org/org-mouse.el | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | ;;; org-mouse.el --- Better mouse support for org-mode | 1 | ;;; org-mouse.el --- Better mouse support for org-mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Piotr Zielinski <piotr dot zielinski at gmail dot com> | 5 | ;; Author: Piotr Zielinski <piotr dot zielinski at gmail dot com> |
| 6 | ;; Maintainer: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Maintainer: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Version: 6.19a | 7 | ;; Version: 6.19e |
| 8 | ;; | 8 | ;; |
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | ;; | 10 | ;; |
diff --git a/lisp/org/org-plot.el b/lisp/org/org-plot.el index a0a79a82c39..fadd3541d0a 100644 --- a/lisp/org/org-plot.el +++ b/lisp/org/org-plot.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric Schulte <schulte dot eric at gmail dot com> | 5 | ;; Author: Eric Schulte <schulte dot eric at gmail dot com> |
| 6 | ;; Keywords: tables, plotting | 6 | ;; Keywords: tables, plotting |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
diff --git a/lisp/org/org-publish.el b/lisp/org/org-publish.el index 149975fac22..1ad5ae6820b 100644 --- a/lisp/org/org-publish.el +++ b/lisp/org/org-publish.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; Author: David O'Toole <dto@gnu.org> | 4 | ;; Author: David O'Toole <dto@gnu.org> |
| 5 | ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> | 5 | ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> |
| 6 | ;; Keywords: hypermedia, outlines, wp | 6 | ;; Keywords: hypermedia, outlines, wp |
| 7 | ;; Version: 6.19a | 7 | ;; Version: 6.19e |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | ;; | 10 | ;; |
diff --git a/lisp/org/org-remember.el b/lisp/org/org-remember.el index 8114d32dea7..74a7ada51db 100644 --- a/lisp/org/org-remember.el +++ b/lisp/org/org-remember.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-rmail.el b/lisp/org/org-rmail.el index 45990f0f4dc..927d49edac6 100644 --- a/lisp/org/org-rmail.el +++ b/lisp/org/org-rmail.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -35,6 +35,7 @@ | |||
| 35 | (require 'org) | 35 | (require 'org) |
| 36 | 36 | ||
| 37 | ;; Declare external functions and variables | 37 | ;; Declare external functions and variables |
| 38 | (declare-function rmail-narrow-to-non-pruned-header "rmail" ()) | ||
| 38 | (declare-function rmail-show-message "rmail" (&optional n no-summary)) | 39 | (declare-function rmail-show-message "rmail" (&optional n no-summary)) |
| 39 | (declare-function rmail-what-message "rmail" ()) | 40 | (declare-function rmail-what-message "rmail" ()) |
| 40 | (defvar rmail-current-message) | 41 | (defvar rmail-current-message) |
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index fbc7debe1b2..0c78685752c 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el index 3320f77d297..4c3584b4e7b 100644 --- a/lisp/org/org-timer.el +++ b/lisp/org/org-timer.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 5 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
diff --git a/lisp/org/org-vm.el b/lisp/org/org-vm.el index 225660b7da4..2f12d6de07f 100644 --- a/lisp/org/org-vm.el +++ b/lisp/org/org-vm.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org-w3m.el b/lisp/org/org-w3m.el index f1d2350b0ba..808199e4bba 100644 --- a/lisp/org/org-w3m.el +++ b/lisp/org/org-w3m.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Andy Stewart <lazycat dot manatee at gmail dot com> | 5 | ;; Author: Andy Stewart <lazycat dot manatee at gmail dot com> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://orgmode.org | 7 | ;; Homepage: http://orgmode.org |
| 8 | ;; Version: 6.19a | 8 | ;; Version: 6.19e |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
diff --git a/lisp/org/org-wl.el b/lisp/org/org-wl.el index 0863c7a4b48..91d29ff0d9c 100644 --- a/lisp/org/org-wl.el +++ b/lisp/org/org-wl.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Tokuya Kameshima <kames at fa2 dot so-net dot ne dot jp> | 6 | ;; Author: Tokuya Kameshima <kames at fa2 dot so-net dot ne dot jp> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 22db64a6ad6..5508b814f99 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 6 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 6.19a | 9 | ;; Version: 6.19e |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -94,7 +94,7 @@ | |||
| 94 | 94 | ||
| 95 | ;;; Version | 95 | ;;; Version |
| 96 | 96 | ||
| 97 | (defconst org-version "6.19a" | 97 | (defconst org-version "6.19e" |
| 98 | "The version number of the file org.el.") | 98 | "The version number of the file org.el.") |
| 99 | 99 | ||
| 100 | (defun org-version (&optional here) | 100 | (defun org-version (&optional here) |
| @@ -199,6 +199,48 @@ to add the symbol `xyz', and the package must have a call to | |||
| 199 | (const :tag "C sqlinsert: Convert Org-mode tables to SQL insertions" orgtbl-sqlinsert) | 199 | (const :tag "C sqlinsert: Convert Org-mode tables to SQL insertions" orgtbl-sqlinsert) |
| 200 | (repeat :tag "External packages" :inline t (symbol :tag "Package")))) | 200 | (repeat :tag "External packages" :inline t (symbol :tag "Package")))) |
| 201 | 201 | ||
| 202 | (defcustom org-support-shift-select nil | ||
| 203 | "Non-nil means, make shift-cursor commands select text when possible. | ||
| 204 | |||
| 205 | In Emacs 23, when `shift-select-mode' is on, shifted cursor keys start | ||
| 206 | selecting a region, or enlarge thusly regions started in this way. | ||
| 207 | In Org-mode, in special contexts, these same keys are used for other | ||
| 208 | purposes, important enough to compete with shift selection. Org tries | ||
| 209 | to balance these needs by supporting `shift-select-mode' outside these | ||
| 210 | special contexts, under control of this variable. | ||
| 211 | |||
| 212 | The default of this variable is nil, to avoid confusing behavior. Shifted | ||
| 213 | cursor keys will then execute Org commands in the following contexts: | ||
| 214 | - on a headline, changing TODO state (left/right) and priority (up/down) | ||
| 215 | - on a time stamp, changing the time | ||
| 216 | - in a plain list item, changing the bullet type | ||
| 217 | - in a property definition line, switching between allowed values | ||
| 218 | - in the BEGIN line of a clock table (changing the time block). | ||
| 219 | Outside these contexts, the commands will throw an error. | ||
| 220 | |||
| 221 | When this variable is t and the cursor is not in a special context, | ||
| 222 | Org-mode will support shift-selection for making and enlarging regions. | ||
| 223 | To make this more effective, the bullet cycling will no longer happen | ||
| 224 | anywhere in an item line, but only if the cursor is exactly on the bullet. | ||
| 225 | |||
| 226 | If you set this variable to the symbol `always', then the keys | ||
| 227 | will not be special in headlines, property lines, and item lines, to make | ||
| 228 | shift selection work there as well. If this is what you want, you can | ||
| 229 | use the following alternative commands: `C-c C-t' and `C-c ,' to | ||
| 230 | change TODO state and priority, `C-u C-u C-c C-t' can be used to switch | ||
| 231 | TODO sets, `C-c -' to cycle item bullet types, and properties can be | ||
| 232 | edited by hand or in column view. | ||
| 233 | |||
| 234 | However, when the cursor is on a timestamp, shift-cursor commands | ||
| 235 | will still edit the time stamp - this is just too good to give up. | ||
| 236 | |||
| 237 | XEmacs user should have this variable set to nil, because shift-select-mode | ||
| 238 | is Emacs 23 only." | ||
| 239 | :group 'org | ||
| 240 | :type '(choice | ||
| 241 | (const :tag "Never" nil) | ||
| 242 | (const :tag "When outside special context" t) | ||
| 243 | (const :tag "Everywhere except timestamps" always))) | ||
| 202 | 244 | ||
| 203 | (defgroup org-startup nil | 245 | (defgroup org-startup nil |
| 204 | "Options concerning startup of Org-mode." | 246 | "Options concerning startup of Org-mode." |
| @@ -2341,7 +2383,6 @@ Changing this variable requires a restart of Emacs to take effect." | |||
| 2341 | (border (nth 2 e)) | 2383 | (border (nth 2 e)) |
| 2342 | (body (nth 3 e)) | 2384 | (body (nth 3 e)) |
| 2343 | (nl (nth 4 e)) | 2385 | (nl (nth 4 e)) |
| 2344 | (stacked (and nil (nth 5 e))) ; stacked is no longer allowed, forced to nil | ||
| 2345 | (body1 (concat body "*?")) | 2386 | (body1 (concat body "*?")) |
| 2346 | (markers (mapconcat 'car org-emphasis-alist "")) | 2387 | (markers (mapconcat 'car org-emphasis-alist "")) |
| 2347 | (vmarkers (mapconcat | 2388 | (vmarkers (mapconcat |
| @@ -2361,17 +2402,17 @@ Changing this variable requires a restart of Emacs to take effect." | |||
| 2361 | (int-to-string nl) "\\}"))) | 2402 | (int-to-string nl) "\\}"))) |
| 2362 | ;; Make the regexp | 2403 | ;; Make the regexp |
| 2363 | (setq org-emph-re | 2404 | (setq org-emph-re |
| 2364 | (concat "\\([" pre (if (and nil stacked) markers) "]\\|^\\)" | 2405 | (concat "\\([" pre "]\\|^\\)" |
| 2365 | "\\(" | 2406 | "\\(" |
| 2366 | "\\([" markers "]\\)" | 2407 | "\\([" markers "]\\)" |
| 2367 | "\\(" | 2408 | "\\(" |
| 2368 | "[^" border "]\\|" | 2409 | "[^" border "]\\|" |
| 2369 | "[^" border (if (and nil stacked) markers) "]" | 2410 | "[^" border "]" |
| 2370 | body1 | 2411 | body1 |
| 2371 | "[^" border (if (and nil stacked) markers) "]" | 2412 | "[^" border "]" |
| 2372 | "\\)" | 2413 | "\\)" |
| 2373 | "\\3\\)" | 2414 | "\\3\\)" |
| 2374 | "\\([" post (if (and nil stacked) markers) "]\\|$\\)")) | 2415 | "\\([" post "]\\|$\\)")) |
| 2375 | (setq org-verbatim-re | 2416 | (setq org-verbatim-re |
| 2376 | (concat "\\([" pre "]\\|^\\)" | 2417 | (concat "\\([" pre "]\\|^\\)" |
| 2377 | "\\(" | 2418 | "\\(" |
| @@ -4404,7 +4445,7 @@ With a numeric prefix, show all headlines up to that level." | |||
| 4404 | (defun org-set-visibility-according-to-property (&optional no-cleanup) | 4445 | (defun org-set-visibility-according-to-property (&optional no-cleanup) |
| 4405 | "Switch subtree visibilities according to :VISIBILITY: property." | 4446 | "Switch subtree visibilities according to :VISIBILITY: property." |
| 4406 | (interactive) | 4447 | (interactive) |
| 4407 | (let (state) | 4448 | (let (org-show-entry-below state) |
| 4408 | (save-excursion | 4449 | (save-excursion |
| 4409 | (goto-char (point-min)) | 4450 | (goto-char (point-min)) |
| 4410 | (while (re-search-forward | 4451 | (while (re-search-forward |
| @@ -4482,16 +4523,16 @@ This function is the default value of the hook `org-cycle-hook'." | |||
| 4482 | ((eq state 'subtree) (or (org-subtree-end-visible-p) (recenter 1)))))) | 4523 | ((eq state 'subtree) (or (org-subtree-end-visible-p) (recenter 1)))))) |
| 4483 | 4524 | ||
| 4484 | (defun org-compact-display-after-subtree-move () | 4525 | (defun org-compact-display-after-subtree-move () |
| 4485 | (let (beg end) | 4526 | "Show a compacter version of the tree of the entry's parent." |
| 4486 | (save-excursion | 4527 | (save-excursion |
| 4487 | (if (org-up-heading-safe) | 4528 | (if (org-up-heading-safe) |
| 4488 | (progn | 4529 | (progn |
| 4489 | (hide-subtree) | 4530 | (hide-subtree) |
| 4490 | (show-entry) | 4531 | (show-entry) |
| 4491 | (show-children) | 4532 | (show-children) |
| 4492 | (org-cycle-show-empty-lines 'children) | 4533 | (org-cycle-show-empty-lines 'children) |
| 4493 | (org-cycle-hide-drawers 'children)) | 4534 | (org-cycle-hide-drawers 'children)) |
| 4494 | (org-overview))))) | 4535 | (org-overview)))) |
| 4495 | 4536 | ||
| 4496 | (defun org-cycle-show-empty-lines (state) | 4537 | (defun org-cycle-show-empty-lines (state) |
| 4497 | "Show empty lines above all visible headlines. | 4538 | "Show empty lines above all visible headlines. |
| @@ -5846,7 +5887,7 @@ exit by killing the buffer with \\[org-edit-src-exit]." | |||
| 5846 | (msg (substitute-command-keys | 5887 | (msg (substitute-command-keys |
| 5847 | "Edit, then exit with C-c ' (C-c and single quote)")) | 5888 | "Edit, then exit with C-c ' (C-c and single quote)")) |
| 5848 | (org-mode-p (eq major-mode 'org-mode)) | 5889 | (org-mode-p (eq major-mode 'org-mode)) |
| 5849 | beg end lang lang-f) | 5890 | beg end) |
| 5850 | (beginning-of-line 1) | 5891 | (beginning-of-line 1) |
| 5851 | (if (looking-at "[ \t]*[^:\n \t]") | 5892 | (if (looking-at "[ \t]*[^:\n \t]") |
| 5852 | nil | 5893 | nil |
| @@ -5913,7 +5954,7 @@ the language, a switch telling of the content should be in a single line." | |||
| 5913 | ("^#\\+ascii:" "\n" "ascii" single-line) | 5954 | ("^#\\+ascii:" "\n" "ascii" single-line) |
| 5914 | ))) | 5955 | ))) |
| 5915 | (pos (point)) | 5956 | (pos (point)) |
| 5916 | re re1 re2 single beg end lang lfmt match-re1) | 5957 | re1 re2 single beg end lang lfmt match-re1) |
| 5917 | (catch 'exit | 5958 | (catch 'exit |
| 5918 | (while (setq entry (pop re-list)) | 5959 | (while (setq entry (pop re-list)) |
| 5919 | (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry) | 5960 | (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry) |
| @@ -7836,7 +7877,7 @@ operation has put the subtree." | |||
| 7836 | (apply | 7877 | (apply |
| 7837 | 'org-ido-completing-read prompt | 7878 | 'org-ido-completing-read prompt |
| 7838 | (lambda (string predicate &optional flag) | 7879 | (lambda (string predicate &optional flag) |
| 7839 | (let (rtn r s f (l (length string))) | 7880 | (let (rtn r f (l (length string))) |
| 7840 | (cond | 7881 | (cond |
| 7841 | ((eq flag nil) | 7882 | ((eq flag nil) |
| 7842 | ;; try completion | 7883 | ;; try completion |
| @@ -8275,6 +8316,7 @@ DONE are present, add TODO at the beginning of the heading. | |||
| 8275 | 8316 | ||
| 8276 | With C-u prefix arg, use completion to determine the new state. | 8317 | With C-u prefix arg, use completion to determine the new state. |
| 8277 | With numeric prefix arg, switch to that state. | 8318 | With numeric prefix arg, switch to that state. |
| 8319 | With a double C-u prefix, switch to the next set of TODO keywords (nextset). | ||
| 8278 | 8320 | ||
| 8279 | For calling through lisp, arg is also interpreted in the following way: | 8321 | For calling through lisp, arg is also interpreted in the following way: |
| 8280 | 'none -> empty state | 8322 | 'none -> empty state |
| @@ -8285,6 +8327,7 @@ For calling through lisp, arg is also interpreted in the following way: | |||
| 8285 | \"WAITING\" -> switch to the specified keyword, but only if it | 8327 | \"WAITING\" -> switch to the specified keyword, but only if it |
| 8286 | really is a member of `org-todo-keywords'." | 8328 | really is a member of `org-todo-keywords'." |
| 8287 | (interactive "P") | 8329 | (interactive "P") |
| 8330 | (if (equal arg '(16)) (setq arg 'nextset)) | ||
| 8288 | (save-excursion | 8331 | (save-excursion |
| 8289 | (catch 'exit | 8332 | (catch 'exit |
| 8290 | (org-back-to-heading) | 8333 | (org-back-to-heading) |
| @@ -8368,6 +8411,8 @@ For calling through lisp, arg is also interpreted in the following way: | |||
| 8368 | :position startpos)) | 8411 | :position startpos)) |
| 8369 | dolog now-done-p) | 8412 | dolog now-done-p) |
| 8370 | (when org-blocker-hook | 8413 | (when org-blocker-hook |
| 8414 | (setq org-last-todo-state-is-todo | ||
| 8415 | (not (member this org-done-keywords))) | ||
| 8371 | (unless (save-excursion | 8416 | (unless (save-excursion |
| 8372 | (save-match-data | 8417 | (save-match-data |
| 8373 | (run-hook-with-args-until-failure | 8418 | (run-hook-with-args-until-failure |
| @@ -8659,7 +8704,7 @@ This function is run automatically after each state change to a DONE state." | |||
| 8659 | (org-log-done nil) | 8704 | (org-log-done nil) |
| 8660 | (org-todo-log-states nil) | 8705 | (org-todo-log-states nil) |
| 8661 | (nshiftmax 10) (nshift 0) | 8706 | (nshiftmax 10) (nshift 0) |
| 8662 | re type n what ts mb0 time) | 8707 | re type n what ts time) |
| 8663 | (when repeat | 8708 | (when repeat |
| 8664 | (if (eq org-log-repeat t) (setq org-log-repeat 'state)) | 8709 | (if (eq org-log-repeat t) (setq org-log-repeat 'state)) |
| 8665 | (org-todo (if (eq interpret 'type) last-state head)) | 8710 | (org-todo (if (eq interpret 'type) last-state head)) |
| @@ -8682,8 +8727,7 @@ This function is run automatically after each state change to a DONE state." | |||
| 8682 | re (save-excursion (outline-next-heading) (point)) t) | 8727 | re (save-excursion (outline-next-heading) (point)) t) |
| 8683 | (setq type (if (match-end 1) org-scheduled-string | 8728 | (setq type (if (match-end 1) org-scheduled-string |
| 8684 | (if (match-end 3) org-deadline-string "Plain:")) | 8729 | (if (match-end 3) org-deadline-string "Plain:")) |
| 8685 | ts (match-string (if (match-end 2) 2 (if (match-end 4) 4 0))) | 8730 | ts (match-string (if (match-end 2) 2 (if (match-end 4) 4 0)))) |
| 8686 | mb0 (match-beginning 0)) | ||
| 8687 | (when (string-match "\\([.+]\\)?\\(\\+[0-9]+\\)\\([dwmy]\\)" ts) | 8731 | (when (string-match "\\([.+]\\)?\\(\\+[0-9]+\\)\\([dwmy]\\)" ts) |
| 8688 | (setq n (string-to-number (match-string 2 ts)) | 8732 | (setq n (string-to-number (match-string 2 ts)) |
| 8689 | what (match-string 3 ts)) | 8733 | what (match-string 3 ts)) |
| @@ -10166,7 +10210,7 @@ the scanner. The following items can be given here: | |||
| 10166 | (org-agenda-skip-function | 10210 | (org-agenda-skip-function |
| 10167 | (car (org-delete-all '(comment archive) skip))) | 10211 | (car (org-delete-all '(comment archive) skip))) |
| 10168 | (org-tags-match-list-sublevels t) | 10212 | (org-tags-match-list-sublevels t) |
| 10169 | matcher pos file res | 10213 | matcher file res |
| 10170 | org-todo-keywords-for-agenda | 10214 | org-todo-keywords-for-agenda |
| 10171 | org-done-keywords-for-agenda | 10215 | org-done-keywords-for-agenda |
| 10172 | org-todo-keyword-alist-for-agenda | 10216 | org-todo-keyword-alist-for-agenda |
| @@ -10190,7 +10234,6 @@ the scanner. The following items can be given here: | |||
| 10190 | (list (buffer-file-name (current-buffer)))) | 10234 | (list (buffer-file-name (current-buffer)))) |
| 10191 | (setq res (org-scan-tags func matcher))) | 10235 | (setq res (org-scan-tags func matcher))) |
| 10192 | ;; Get the right scope | 10236 | ;; Get the right scope |
| 10193 | (setq pos (point)) | ||
| 10194 | (cond | 10237 | (cond |
| 10195 | ((and scope (listp scope) (symbolp (car scope))) | 10238 | ((and scope (listp scope) (symbolp (car scope))) |
| 10196 | (setq scope (eval scope))) | 10239 | (setq scope (eval scope))) |
| @@ -10588,7 +10631,7 @@ With INCLUDE-DEFAULTS, also include properties that has special meaning | |||
| 10588 | internally: ARCHIVE, CATEGORY, SUMMARY, DESCRIPTION, LOCATION, and LOGGING. | 10631 | internally: ARCHIVE, CATEGORY, SUMMARY, DESCRIPTION, LOCATION, and LOGGING. |
| 10589 | With INCLUDE-COLUMNS, also include property names given in COLUMN | 10632 | With INCLUDE-COLUMNS, also include property names given in COLUMN |
| 10590 | formats in the current buffer." | 10633 | formats in the current buffer." |
| 10591 | (let (rtn range cfmt cols s p) | 10634 | (let (rtn range cfmt s p) |
| 10592 | (save-excursion | 10635 | (save-excursion |
| 10593 | (save-restriction | 10636 | (save-restriction |
| 10594 | (widen) | 10637 | (widen) |
| @@ -12898,9 +12941,19 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names." | |||
| 12898 | 'delete-backward-char 'org-delete-backward-char) | 12941 | 'delete-backward-char 'org-delete-backward-char) |
| 12899 | (org-defkey org-mode-map "|" 'org-force-self-insert)) | 12942 | (org-defkey org-mode-map "|" 'org-force-self-insert)) |
| 12900 | 12943 | ||
| 12901 | (defun org-shiftcursor-error () | 12944 | (defun org-modifier-cursor-error () |
| 12945 | "Throw an error, a modified cursor command was applied in wrong context." | ||
| 12946 | (error "This command is active in special context like tables, headlines or items")) | ||
| 12947 | |||
| 12948 | (defun org-shiftselect-error () | ||
| 12902 | "Throw an error because Shift-Cursor command was applied in wrong context." | 12949 | "Throw an error because Shift-Cursor command was applied in wrong context." |
| 12903 | (error "This command is active in special context like tables, headlines or timestamps")) | 12950 | (if (and (boundp 'shift-select-mode) shift-select-mode) |
| 12951 | (error "To use shift-selection with Org-mode, customize `org-support-shift-select'.") | ||
| 12952 | (error "This command works only in special context like headlines or timestamps."))) | ||
| 12953 | |||
| 12954 | (defun org-call-for-shift-select (cmd) | ||
| 12955 | (let ((this-command-keys-shift-translated t)) | ||
| 12956 | (call-interactively cmd))) | ||
| 12904 | 12957 | ||
| 12905 | (defun org-shifttab (&optional arg) | 12958 | (defun org-shifttab (&optional arg) |
| 12906 | "Global visibility cycling or move to previous table field. | 12959 | "Global visibility cycling or move to previous table field. |
| @@ -12926,7 +12979,7 @@ See the individual commands for more information." | |||
| 12926 | ((org-at-table-p) (call-interactively 'org-table-delete-column)) | 12979 | ((org-at-table-p) (call-interactively 'org-table-delete-column)) |
| 12927 | ((org-on-heading-p) (call-interactively 'org-promote-subtree)) | 12980 | ((org-on-heading-p) (call-interactively 'org-promote-subtree)) |
| 12928 | ((org-at-item-p) (call-interactively 'org-outdent-item)) | 12981 | ((org-at-item-p) (call-interactively 'org-outdent-item)) |
| 12929 | (t (org-shiftcursor-error)))) | 12982 | (t (org-modifier-cursor-error)))) |
| 12930 | 12983 | ||
| 12931 | (defun org-shiftmetaright () | 12984 | (defun org-shiftmetaright () |
| 12932 | "Demote subtree or insert table column. | 12985 | "Demote subtree or insert table column. |
| @@ -12938,7 +12991,7 @@ See the individual commands for more information." | |||
| 12938 | ((org-at-table-p) (call-interactively 'org-table-insert-column)) | 12991 | ((org-at-table-p) (call-interactively 'org-table-insert-column)) |
| 12939 | ((org-on-heading-p) (call-interactively 'org-demote-subtree)) | 12992 | ((org-on-heading-p) (call-interactively 'org-demote-subtree)) |
| 12940 | ((org-at-item-p) (call-interactively 'org-indent-item)) | 12993 | ((org-at-item-p) (call-interactively 'org-indent-item)) |
| 12941 | (t (org-shiftcursor-error)))) | 12994 | (t (org-modifier-cursor-error)))) |
| 12942 | 12995 | ||
| 12943 | (defun org-shiftmetaup (&optional arg) | 12996 | (defun org-shiftmetaup (&optional arg) |
| 12944 | "Move subtree up or kill table row. | 12997 | "Move subtree up or kill table row. |
| @@ -12950,7 +13003,7 @@ for more information." | |||
| 12950 | ((org-at-table-p) (call-interactively 'org-table-kill-row)) | 13003 | ((org-at-table-p) (call-interactively 'org-table-kill-row)) |
| 12951 | ((org-on-heading-p) (call-interactively 'org-move-subtree-up)) | 13004 | ((org-on-heading-p) (call-interactively 'org-move-subtree-up)) |
| 12952 | ((org-at-item-p) (call-interactively 'org-move-item-up)) | 13005 | ((org-at-item-p) (call-interactively 'org-move-item-up)) |
| 12953 | (t (org-shiftcursor-error)))) | 13006 | (t (org-modifier-cursor-error)))) |
| 12954 | (defun org-shiftmetadown (&optional arg) | 13007 | (defun org-shiftmetadown (&optional arg) |
| 12955 | "Move subtree down or insert table row. | 13008 | "Move subtree down or insert table row. |
| 12956 | Calls `org-move-subtree-down' or `org-table-insert-row' or | 13009 | Calls `org-move-subtree-down' or `org-table-insert-row' or |
| @@ -12961,7 +13014,7 @@ commands for more information." | |||
| 12961 | ((org-at-table-p) (call-interactively 'org-table-insert-row)) | 13014 | ((org-at-table-p) (call-interactively 'org-table-insert-row)) |
| 12962 | ((org-on-heading-p) (call-interactively 'org-move-subtree-down)) | 13015 | ((org-on-heading-p) (call-interactively 'org-move-subtree-down)) |
| 12963 | ((org-at-item-p) (call-interactively 'org-move-item-down)) | 13016 | ((org-at-item-p) (call-interactively 'org-move-item-down)) |
| 12964 | (t (org-shiftcursor-error)))) | 13017 | (t (org-modifier-cursor-error)))) |
| 12965 | 13018 | ||
| 12966 | (defun org-metaleft (&optional arg) | 13019 | (defun org-metaleft (&optional arg) |
| 12967 | "Promote heading or move table column to left. | 13020 | "Promote heading or move table column to left. |
| @@ -13019,13 +13072,20 @@ Calls `org-timestamp-up' or `org-priority-up', or `org-previous-item', | |||
| 13019 | depending on context. See the individual commands for more information." | 13072 | depending on context. See the individual commands for more information." |
| 13020 | (interactive "P") | 13073 | (interactive "P") |
| 13021 | (cond | 13074 | (cond |
| 13075 | ((and org-support-shift-select (org-region-active-p)) | ||
| 13076 | (org-call-for-shift-select 'previous-line)) | ||
| 13022 | ((org-at-timestamp-p t) | 13077 | ((org-at-timestamp-p t) |
| 13023 | (call-interactively (if org-edit-timestamp-down-means-later | 13078 | (call-interactively (if org-edit-timestamp-down-means-later |
| 13024 | 'org-timestamp-down 'org-timestamp-up))) | 13079 | 'org-timestamp-down 'org-timestamp-up))) |
| 13025 | ((org-on-heading-p) (call-interactively 'org-priority-up)) | 13080 | ((and (not (eq org-support-shift-select 'always)) |
| 13026 | ((org-at-item-p) (call-interactively 'org-previous-item)) | 13081 | (org-on-heading-p)) |
| 13082 | (call-interactively 'org-priority-up)) | ||
| 13083 | ((and (not org-support-shift-select) (org-at-item-p)) | ||
| 13084 | (call-interactively 'org-previous-item)) | ||
| 13027 | ((org-clocktable-try-shift 'up arg)) | 13085 | ((org-clocktable-try-shift 'up arg)) |
| 13028 | (t (call-interactively 'org-beginning-of-item) (beginning-of-line 1)))) | 13086 | (org-support-shift-select |
| 13087 | (org-call-for-shift-select 'previous-line)) | ||
| 13088 | (t (org-shiftselect-error)))) | ||
| 13029 | 13089 | ||
| 13030 | (defun org-shiftdown (&optional arg) | 13090 | (defun org-shiftdown (&optional arg) |
| 13031 | "Decrease item in timestamp or decrease priority of current headline. | 13091 | "Decrease item in timestamp or decrease priority of current headline. |
| @@ -13033,12 +13093,20 @@ Calls `org-timestamp-down' or `org-priority-down', or `org-next-item' | |||
| 13033 | depending on context. See the individual commands for more information." | 13093 | depending on context. See the individual commands for more information." |
| 13034 | (interactive "P") | 13094 | (interactive "P") |
| 13035 | (cond | 13095 | (cond |
| 13096 | ((and org-support-shift-select (org-region-active-p)) | ||
| 13097 | (org-call-for-shift-select 'next-line)) | ||
| 13036 | ((org-at-timestamp-p t) | 13098 | ((org-at-timestamp-p t) |
| 13037 | (call-interactively (if org-edit-timestamp-down-means-later | 13099 | (call-interactively (if org-edit-timestamp-down-means-later |
| 13038 | 'org-timestamp-up 'org-timestamp-down))) | 13100 | 'org-timestamp-up 'org-timestamp-down))) |
| 13039 | ((org-on-heading-p) (call-interactively 'org-priority-down)) | 13101 | ((and (not (eq org-support-shift-select 'always)) |
| 13102 | (org-on-heading-p)) | ||
| 13103 | (call-interactively 'org-priority-down)) | ||
| 13104 | ((and (not org-support-shift-select) (org-at-item-p)) | ||
| 13105 | (call-interactively 'org-next-item)) | ||
| 13040 | ((org-clocktable-try-shift 'down arg)) | 13106 | ((org-clocktable-try-shift 'down arg)) |
| 13041 | (t (call-interactively 'org-next-item)))) | 13107 | (org-support-shift-select |
| 13108 | (org-call-for-shift-select 'next-line)) | ||
| 13109 | (t (org-shiftselect-error)))) | ||
| 13042 | 13110 | ||
| 13043 | (defun org-shiftright (&optional arg) | 13111 | (defun org-shiftright (&optional arg) |
| 13044 | "Cycle the thing at point or in the current line, depending on context. | 13112 | "Cycle the thing at point or in the current line, depending on context. |
| @@ -13051,12 +13119,24 @@ Depending on context, this does one of the following: | |||
| 13051 | - on a clocktable definition line, move time block into the future" | 13119 | - on a clocktable definition line, move time block into the future" |
| 13052 | (interactive "P") | 13120 | (interactive "P") |
| 13053 | (cond | 13121 | (cond |
| 13122 | ((and org-support-shift-select (org-region-active-p)) | ||
| 13123 | (org-call-for-shift-select 'forward-char)) | ||
| 13054 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-up-day)) | 13124 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-up-day)) |
| 13055 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'right)) | 13125 | ((and (not (eq org-support-shift-select 'always)) |
| 13056 | ((org-at-item-p) (org-call-with-arg 'org-cycle-list-bullet nil)) | 13126 | (org-on-heading-p)) |
| 13057 | ((org-at-property-p) (call-interactively 'org-property-next-allowed-value)) | 13127 | (org-call-with-arg 'org-todo 'right)) |
| 13128 | ((or (and org-support-shift-select | ||
| 13129 | (not (eq org-support-shift-select 'always)) | ||
| 13130 | (org-at-item-bullet-p)) | ||
| 13131 | (and (not org-support-shift-select) (org-at-item-p))) | ||
| 13132 | (org-call-with-arg 'org-cycle-list-bullet nil)) | ||
| 13133 | ((and (not (eq org-support-shift-select 'always)) | ||
| 13134 | (org-at-property-p)) | ||
| 13135 | (call-interactively 'org-property-next-allowed-value)) | ||
| 13058 | ((org-clocktable-try-shift 'right arg)) | 13136 | ((org-clocktable-try-shift 'right arg)) |
| 13059 | (t (org-shiftcursor-error)))) | 13137 | (org-support-shift-select |
| 13138 | (org-call-for-shift-select 'forward-char)) | ||
| 13139 | (t (org-shiftselect-error)))) | ||
| 13060 | 13140 | ||
| 13061 | (defun org-shiftleft (&optional arg) | 13141 | (defun org-shiftleft (&optional arg) |
| 13062 | "Cycle the thing at point or in the current line, depending on context. | 13142 | "Cycle the thing at point or in the current line, depending on context. |
| @@ -13069,27 +13149,50 @@ Depending on context, this does one of the following: | |||
| 13069 | - on a clocktable definition line, move time block into the past" | 13149 | - on a clocktable definition line, move time block into the past" |
| 13070 | (interactive "P") | 13150 | (interactive "P") |
| 13071 | (cond | 13151 | (cond |
| 13152 | ((and org-support-shift-select (org-region-active-p)) | ||
| 13153 | (org-call-for-shift-select 'backward-char)) | ||
| 13072 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-down-day)) | 13154 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-down-day)) |
| 13073 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'left)) | 13155 | ((and (not (eq org-support-shift-select 'always)) |
| 13074 | ((org-at-item-p) (org-call-with-arg 'org-cycle-list-bullet 'previous)) | 13156 | (org-on-heading-p)) |
| 13075 | ((org-at-property-p) | 13157 | (org-call-with-arg 'org-todo 'left)) |
| 13158 | ((or (and org-support-shift-select | ||
| 13159 | (not (eq org-support-shift-select 'always)) | ||
| 13160 | (org-at-item-bullet-p)) | ||
| 13161 | (and (not org-support-shift-select) (org-at-item-p))) | ||
| 13162 | (org-call-with-arg 'org-cycle-list-bullet 'previous)) | ||
| 13163 | ((and (not (eq org-support-shift-select 'always)) | ||
| 13164 | (org-at-property-p)) | ||
| 13076 | (call-interactively 'org-property-previous-allowed-value)) | 13165 | (call-interactively 'org-property-previous-allowed-value)) |
| 13077 | ((org-clocktable-try-shift 'left arg)) | 13166 | ((org-clocktable-try-shift 'left arg)) |
| 13078 | (t (org-shiftcursor-error)))) | 13167 | (org-support-shift-select |
| 13168 | (org-call-for-shift-select 'backward-char)) | ||
| 13169 | (t (org-shiftselect-error)))) | ||
| 13079 | 13170 | ||
| 13080 | (defun org-shiftcontrolright () | 13171 | (defun org-shiftcontrolright () |
| 13081 | "Switch to next TODO set." | 13172 | "Switch to next TODO set." |
| 13082 | (interactive) | 13173 | (interactive) |
| 13083 | (cond | 13174 | (cond |
| 13084 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'nextset)) | 13175 | ((and org-support-shift-select (org-region-active-p)) |
| 13085 | (t (org-shiftcursor-error)))) | 13176 | (org-call-for-shift-select 'forward-word)) |
| 13177 | ((and (not (eq org-support-shift-select 'always)) | ||
| 13178 | (org-on-heading-p)) | ||
| 13179 | (org-call-with-arg 'org-todo 'nextset)) | ||
| 13180 | (org-support-shift-select | ||
| 13181 | (org-call-for-shift-select 'forward-word)) | ||
| 13182 | (t (org-shiftselect-error)))) | ||
| 13086 | 13183 | ||
| 13087 | (defun org-shiftcontrolleft () | 13184 | (defun org-shiftcontrolleft () |
| 13088 | "Switch to previous TODO set." | 13185 | "Switch to previous TODO set." |
| 13089 | (interactive) | 13186 | (interactive) |
| 13090 | (cond | 13187 | (cond |
| 13091 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'previousset)) | 13188 | ((and org-support-shift-select (org-region-active-p)) |
| 13092 | (t (org-shiftcursor-error)))) | 13189 | (org-call-for-shift-select 'backward-word)) |
| 13190 | ((and (not (eq org-support-shift-select 'always)) | ||
| 13191 | (org-on-heading-p)) | ||
| 13192 | (org-call-with-arg 'org-todo 'previousset)) | ||
| 13193 | (org-support-shift-select | ||
| 13194 | (org-call-for-shift-select 'backward-word)) | ||
| 13195 | (t (org-shiftselect-error)))) | ||
| 13093 | 13196 | ||
| 13094 | (defun org-ctrl-c-ret () | 13197 | (defun org-ctrl-c-ret () |
| 13095 | "Call `org-table-hline-and-move' or `org-insert-heading' dep. on context." | 13198 | "Call `org-table-hline-and-move' or `org-insert-heading' dep. on context." |
| @@ -14846,7 +14949,7 @@ Show the heading too, if it is currently invisible." | |||
| 14846 | (re (concat "^" outline-regexp)) | 14949 | (re (concat "^" outline-regexp)) |
| 14847 | (subs (make-vector (1+ n) nil)) | 14950 | (subs (make-vector (1+ n) nil)) |
| 14848 | (last-level 0) | 14951 | (last-level 0) |
| 14849 | m tree level head) | 14952 | m level head) |
| 14850 | (save-excursion | 14953 | (save-excursion |
| 14851 | (save-restriction | 14954 | (save-restriction |
| 14852 | (widen) | 14955 | (widen) |
| @@ -14899,7 +15002,7 @@ if no description is present" | |||
| 14899 | To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]." | 15002 | To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]." |
| 14900 | (interactive) | 15003 | (interactive) |
| 14901 | (require 'org-agenda) | 15004 | (require 'org-agenda) |
| 14902 | (let (p m tp np dir txt w) | 15005 | (let (p m tp np dir txt) |
| 14903 | (cond | 15006 | (cond |
| 14904 | ((setq p (text-property-any (point-at-bol) (point-at-eol) | 15007 | ((setq p (text-property-any (point-at-bol) (point-at-eol) |
| 14905 | 'org-imenu t)) | 15008 | 'org-imenu t)) |