diff options
| author | Bastien Guerry | 2012-04-26 19:30:04 +0200 |
|---|---|---|
| committer | Bastien Guerry | 2012-04-26 19:30:04 +0200 |
| commit | 2f885dcacb7fdc09700705e15b7741988d2ad70f (patch) | |
| tree | 732aebeaaa8f884d077ec812e0ecb31285ab6845 | |
| parent | 2a12997ca97ac8cf0e44657e01c53ab51de497d0 (diff) | |
| download | emacs-2f885dcacb7fdc09700705e15b7741988d2ad70f.tar.gz emacs-2f885dcacb7fdc09700705e15b7741988d2ad70f.zip | |
Sync with Org git commit 374c56b.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/ChangeLog | 10 | ||||
| -rw-r--r-- | etc/org/OrgOdtStyles.xml | 20 | ||||
| -rw-r--r-- | lisp/org/ChangeLog | 69 | ||||
| -rw-r--r-- | lisp/org/ob-python.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-clock.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-ctags.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-faces.el | 10 | ||||
| -rw-r--r-- | lisp/org/org-footnote.el | 13 | ||||
| -rw-r--r-- | lisp/org/org-list.el | 77 | ||||
| -rw-r--r-- | lisp/org/org-mouse.el | 1 | ||||
| -rw-r--r-- | lisp/org/org-odt.el | 1 | ||||
| -rw-r--r-- | lisp/org/org-table.el | 4 | ||||
| -rw-r--r-- | lisp/org/org.el | 85 |
15 files changed, 220 insertions, 83 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index ea549e41b58..b2e34bac56d 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-26 Ippei Furuhashi <top.tuna+orgmode@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * org.texi (Agenda commands): Fix two typos: give corresponding | ||
| 4 | function names, according to `org-agenda-view-mode-dispatch'. | ||
| 5 | |||
| 1 | 2012-04-21 Glenn Morris <rgm@gnu.org> | 6 | 2012-04-21 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * faq.texi (Major packages and programs): Remove section. | 8 | * faq.texi (Major packages and programs): Remove section. |
diff --git a/etc/ChangeLog b/etc/ChangeLog index d69d066f292..6ca6017be98 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-04-26 Jambunathan K <kjambunathan@gmail.com> | ||
| 2 | |||
| 3 | * org/README: Update Copyright year. | ||
| 4 | |||
| 5 | 2012-04-26 Jambunathan K <kjambunathan@gmail.com> | ||
| 6 | |||
| 7 | * org/OrgOdtStyles.xml (OrgDescriptionList): Modify style. With | ||
| 8 | this change, in a description list, if the description paragraph | ||
| 9 | spawns multiple lines then it will correctly indented. | ||
| 10 | |||
| 1 | 2012-04-20 Glenn Morris <rgm@gnu.org> | 11 | 2012-04-20 Glenn Morris <rgm@gnu.org> |
| 2 | 12 | ||
| 3 | * CONTRIBUTE: Expand a bit on copyright assignments. | 13 | * CONTRIBUTE: Expand a bit on copyright assignments. |
diff --git a/etc/org/OrgOdtStyles.xml b/etc/org/OrgOdtStyles.xml index 470b7b134a7..84125c96d8a 100644 --- a/etc/org/OrgOdtStyles.xml +++ b/etc/org/OrgOdtStyles.xml | |||
| @@ -649,34 +649,34 @@ | |||
| 649 | <!-- Description List --> | 649 | <!-- Description List --> |
| 650 | <text:list-style style:name="OrgDescriptionList"> | 650 | <text:list-style style:name="OrgDescriptionList"> |
| 651 | <text:list-level-style-number text:level="1" style:num-format=""> | 651 | <text:list-level-style-number text:level="1" style:num-format=""> |
| 652 | <style:list-level-properties text:space-before="0.635cm" text:min-label-width="0.635cm"/> | 652 | <style:list-level-properties text:space-before="0.635cm"/> |
| 653 | </text:list-level-style-number> | 653 | </text:list-level-style-number> |
| 654 | <text:list-level-style-number text:level="2" style:num-format=""> | 654 | <text:list-level-style-number text:level="2" style:num-format=""> |
| 655 | <style:list-level-properties text:space-before="1.27cm" text:min-label-width="0.635cm"/> | 655 | <style:list-level-properties text:space-before="1.27cm"/> |
| 656 | </text:list-level-style-number> | 656 | </text:list-level-style-number> |
| 657 | <text:list-level-style-number text:level="3" style:num-format=""> | 657 | <text:list-level-style-number text:level="3" style:num-format=""> |
| 658 | <style:list-level-properties text:space-before="1.905cm" text:min-label-width="0.635cm"/> | 658 | <style:list-level-properties text:space-before="1.905cm"/> |
| 659 | </text:list-level-style-number> | 659 | </text:list-level-style-number> |
| 660 | <text:list-level-style-number text:level="4" style:num-format=""> | 660 | <text:list-level-style-number text:level="4" style:num-format=""> |
| 661 | <style:list-level-properties text:space-before="2.54cm" text:min-label-width="0.635cm"/> | 661 | <style:list-level-properties text:space-before="2.54cm"/> |
| 662 | </text:list-level-style-number> | 662 | </text:list-level-style-number> |
| 663 | <text:list-level-style-number text:level="5" style:num-format=""> | 663 | <text:list-level-style-number text:level="5" style:num-format=""> |
| 664 | <style:list-level-properties text:space-before="3.175cm" text:min-label-width="0.635cm"/> | 664 | <style:list-level-properties text:space-before="3.175cm"/> |
| 665 | </text:list-level-style-number> | 665 | </text:list-level-style-number> |
| 666 | <text:list-level-style-number text:level="6" style:num-format=""> | 666 | <text:list-level-style-number text:level="6" style:num-format=""> |
| 667 | <style:list-level-properties text:space-before="3.81cm" text:min-label-width="0.635cm"/> | 667 | <style:list-level-properties text:space-before="3.81cm"/> |
| 668 | </text:list-level-style-number> | 668 | </text:list-level-style-number> |
| 669 | <text:list-level-style-number text:level="7" style:num-format=""> | 669 | <text:list-level-style-number text:level="7" style:num-format=""> |
| 670 | <style:list-level-properties text:space-before="4.445cm" text:min-label-width="0.635cm"/> | 670 | <style:list-level-properties text:space-before="4.445cm"/> |
| 671 | </text:list-level-style-number> | 671 | </text:list-level-style-number> |
| 672 | <text:list-level-style-number text:level="8" style:num-format=""> | 672 | <text:list-level-style-number text:level="8" style:num-format=""> |
| 673 | <style:list-level-properties text:space-before="5.08cm" text:min-label-width="0.635cm"/> | 673 | <style:list-level-properties text:space-before="5.08cm"/> |
| 674 | </text:list-level-style-number> | 674 | </text:list-level-style-number> |
| 675 | <text:list-level-style-number text:level="9" style:num-format=""> | 675 | <text:list-level-style-number text:level="9" style:num-format=""> |
| 676 | <style:list-level-properties text:space-before="5.715cm" text:min-label-width="0.635cm"/> | 676 | <style:list-level-properties text:space-before="5.715cm"/> |
| 677 | </text:list-level-style-number> | 677 | </text:list-level-style-number> |
| 678 | <text:list-level-style-number text:level="10" style:num-format=""> | 678 | <text:list-level-style-number text:level="10" style:num-format=""> |
| 679 | <style:list-level-properties text:space-before="6.35cm" text:min-label-width="0.635cm"/> | 679 | <style:list-level-properties text:space-before="6.35cm"/> |
| 680 | </text:list-level-style-number> | 680 | </text:list-level-style-number> |
| 681 | </text:list-style> | 681 | </text:list-style> |
| 682 | 682 | ||
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 9c85a75d16a..806acd8f446 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,72 @@ | |||
| 1 | 2012-04-26 Nicolas Goaziou <n.goaziou@gmail.com> | ||
| 2 | |||
| 3 | * org-table.el (org-table-number-fraction): Fix typo. | ||
| 4 | |||
| 5 | 2012-04-26 Eric Schulte <eric.schulte@gmx.com> | ||
| 6 | |||
| 7 | * ob-python.el (org-babel-execute:python): Ensure newline precedes | ||
| 8 | automatically-added returns. | ||
| 9 | |||
| 10 | 2012-04-26 Nicolas Goaziou <n.goaziou@gmail.com> | ||
| 11 | |||
| 12 | * org-mouse.el (org-mode-hook): Do not move point when clicking on | ||
| 13 | a footnote reference. | ||
| 14 | |||
| 15 | 2012-04-26 Bastien Guerry <bzg@gnu.org> | ||
| 16 | |||
| 17 | * org-faces.el (org-date-selected): Fix docstring. | ||
| 18 | |||
| 19 | 2012-04-26 Bastien Guerry <bzg@gnu.org> | ||
| 20 | |||
| 21 | * org-ctags.el (org-ctags-new-topic-template): Remove * character | ||
| 22 | in front of variable docstring. | ||
| 23 | |||
| 24 | 2012-04-26 Nicolas Goaziou <n.goaziou@gmail.com> | ||
| 25 | |||
| 26 | * org-list.el (org-list-struct-indent): Follow | ||
| 27 | `org-list-demote-modify-bullet' specifications for ordered | ||
| 28 | bullets. | ||
| 29 | (org-list-indent-item-generic, org-indent-item-tree) | ||
| 30 | (org-outdent-item-tree): Fix bug when operating on a region. | ||
| 31 | (org-outdent-item, org-indent-item): Allow to operate on a region. | ||
| 32 | |||
| 33 | * org.el (org-shiftmetaleft, org-shiftmetaright): Allow to operate | ||
| 34 | on a region. | ||
| 35 | |||
| 36 | 2012-04-26 Nicolas Goaziou <n.goaziou@gmail.com> | ||
| 37 | |||
| 38 | * org-footnote.el (org-footnote-normalize): Fix positionning in | ||
| 39 | HTML export without a footnote section. | ||
| 40 | |||
| 41 | 2012-04-26 Madan Ramakrishnan <madanr79@gmail.com> (tiny change) | ||
| 42 | |||
| 43 | * org-agenda.el (org-agenda-bulk-mark): Truly make arg optional as | ||
| 44 | advertised by the function. | ||
| 45 | |||
| 46 | 2012-04-26 Zachary Kanfer <zkanfer@gmail.com> (tiny change) | ||
| 47 | |||
| 48 | * org.el (org-read-date-display): Fix bug when displaying the | ||
| 49 | overlay. | ||
| 50 | |||
| 51 | 2012-04-26 Bastien Guerry <bzg@gnu.org> | ||
| 52 | |||
| 53 | * org.el (org-mode): Don't use `buffer-face-mode' by default. | ||
| 54 | |||
| 55 | 2012-04-26 Bastien Guerry <bzg@gnu.org> | ||
| 56 | |||
| 57 | * org-faces.el (org-date-selected): New face. | ||
| 58 | |||
| 59 | 2012-04-26 Jambunathan K <kjambunathan@gmail.com> | ||
| 60 | |||
| 61 | * org-odt.el (org-odt-format-org-link): Pay no heed to whether the | ||
| 62 | internal links destined for headlines provide a description or | ||
| 63 | not. In fact, the `org-store-link' and `org-insert-link' create | ||
| 64 | internal links which do have a description. | ||
| 65 | |||
| 66 | 2012-04-26 Bastien Guerry <bzg@gnu.org> | ||
| 67 | |||
| 68 | * org-clock.el (org-program-exists): Fix docstring. | ||
| 69 | |||
| 1 | 2012-04-11 Bastien Guerry <bzg@gnu.org> | 70 | 2012-04-11 Bastien Guerry <bzg@gnu.org> |
| 2 | 71 | ||
| 3 | * org.el (org-point-at-end-of-empty-headline): Only try to match | 72 | * org.el (org-point-at-end-of-empty-headline): Only try to match |
diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el index 0dc744aaa73..348248f35cf 100644 --- a/lisp/org/ob-python.el +++ b/lisp/org/ob-python.el | |||
| @@ -64,7 +64,7 @@ This function is called by `org-babel-execute-src-block'." | |||
| 64 | (preamble (cdr (assoc :preamble params))) | 64 | (preamble (cdr (assoc :preamble params))) |
| 65 | (full-body | 65 | (full-body |
| 66 | (org-babel-expand-body:generic | 66 | (org-babel-expand-body:generic |
| 67 | (concat body (if return-val (format "return %s" return-val) "")) | 67 | (concat body (if return-val (format "\nreturn %s" return-val) "")) |
| 68 | params (org-babel-variable-assignments:python params))) | 68 | params (org-babel-variable-assignments:python params))) |
| 69 | (result (org-babel-python-evaluate | 69 | (result (org-babel-python-evaluate |
| 70 | session full-body result-type result-params preamble))) | 70 | session full-body result-type result-params preamble))) |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 3bb0fc84897..ddb56ca4bac 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -8294,7 +8294,7 @@ This is a command that has to be installed in `calendar-mode-map'." | |||
| 8294 | (defun org-agenda-bulk-mark (&optional arg) | 8294 | (defun org-agenda-bulk-mark (&optional arg) |
| 8295 | "Mark the entry at point for future bulk action." | 8295 | "Mark the entry at point for future bulk action." |
| 8296 | (interactive "p") | 8296 | (interactive "p") |
| 8297 | (dotimes (i (max arg 1)) | 8297 | (dotimes (i (or arg 1)) |
| 8298 | (unless (org-get-at-bol 'org-agenda-diary-link) | 8298 | (unless (org-get-at-bol 'org-agenda-diary-link) |
| 8299 | (let* ((m (org-get-at-bol 'org-hd-marker)) | 8299 | (let* ((m (org-get-at-bol 'org-hd-marker)) |
| 8300 | ov) | 8300 | ov) |
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 434f6a1d5f6..aabcfc187db 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el | |||
| @@ -664,7 +664,7 @@ Use alsa's aplay tool if available." | |||
| 664 | (error (beep t) (beep t))))))))) | 664 | (error (beep t) (beep t))))))))) |
| 665 | 665 | ||
| 666 | (defun org-program-exists (program-name) | 666 | (defun org-program-exists (program-name) |
| 667 | "Checks whenever we can locate program and launch it." | 667 | "Checks whenever we can locate PROGRAM-NAME using the `which' executable." |
| 668 | (if (member system-type '(gnu/linux darwin)) | 668 | (if (member system-type '(gnu/linux darwin)) |
| 669 | (= 0 (call-process "which" nil nil nil program-name)))) | 669 | (= 0 (call-process "which" nil nil nil program-name)))) |
| 670 | 670 | ||
diff --git a/lisp/org/org-ctags.el b/lisp/org/org-ctags.el index 48656190a0c..5874646ff48 100644 --- a/lisp/org/org-ctags.el +++ b/lisp/org/org-ctags.el | |||
| @@ -188,7 +188,7 @@ See the ctags documentation for more information.") | |||
| 188 | Created as a local variable in each buffer.") | 188 | Created as a local variable in each buffer.") |
| 189 | 189 | ||
| 190 | (defcustom org-ctags-new-topic-template | 190 | (defcustom org-ctags-new-topic-template |
| 191 | "* <<%t>>\n\n\n\n\n\n" | 191 | "<<%t>>\n\n\n\n\n\n" |
| 192 | "Text to insert when creating a new org file via opening a hyperlink. | 192 | "Text to insert when creating a new org file via opening a hyperlink. |
| 193 | The following patterns are replaced in the string: | 193 | The following patterns are replaced in the string: |
| 194 | `%t' - replaced with the capitalized title of the hyperlink" | 194 | `%t' - replaced with the capitalized title of the hyperlink" |
diff --git a/lisp/org/org-faces.el b/lisp/org/org-faces.el index 481d662eca1..58f879dd51a 100644 --- a/lisp/org/org-faces.el +++ b/lisp/org/org-faces.el | |||
| @@ -285,6 +285,16 @@ column view defines special faces for each outline level. See the file | |||
| 285 | "Face for date/time stamps." | 285 | "Face for date/time stamps." |
| 286 | :group 'org-faces) | 286 | :group 'org-faces) |
| 287 | 287 | ||
| 288 | (defface org-date-selected | ||
| 289 | (org-compatible-face nil | ||
| 290 | '((((class color) (min-colors 16) (background light)) (:foreground "Red1" :bold nil)) | ||
| 291 | (((class color) (min-colors 16) (background dark)) (:foreground "Pink" :bold nil)) | ||
| 292 | (((class color) (min-colors 8) (background light)) (:foreground "red" :bold nil)) | ||
| 293 | (((class color) (min-colors 8) (background dark)) (:foreground "red" :bold nil)) | ||
| 294 | (t (:inverse-video t)))) | ||
| 295 | "Face for highlighting the calendar day when using `org-read-date'." | ||
| 296 | :group 'org-faces) | ||
| 297 | |||
| 288 | (defface org-sexp-date | 298 | (defface org-sexp-date |
| 289 | '((((class color) (background light)) (:foreground "Purple")) | 299 | '((((class color) (background light)) (:foreground "Purple")) |
| 290 | (((class color) (background dark)) (:foreground "Cyan")) | 300 | (((class color) (background dark)) (:foreground "Cyan")) |
diff --git a/lisp/org/org-footnote.el b/lisp/org/org-footnote.el index 9319e0813c0..a9ba8d7510b 100644 --- a/lisp/org/org-footnote.el +++ b/lisp/org/org-footnote.el | |||
| @@ -716,8 +716,8 @@ Additional note on `org-footnote-insert-pos-for-preprocessor': | |||
| 716 | ((and org-footnote-section (eq major-mode 'org-mode)) | 716 | ((and org-footnote-section (eq major-mode 'org-mode)) |
| 717 | (goto-char (point-min)) | 717 | (goto-char (point-min)) |
| 718 | (if (re-search-forward | 718 | (if (re-search-forward |
| 719 | (concat "^\\*[ \t]+" (regexp-quote org-footnote-section) | 719 | (concat "^\\*[ \t]+" (regexp-quote org-footnote-section) |
| 720 | "[ \t]*$") nil t) | 720 | "[ \t]*$") nil t) |
| 721 | (delete-region (match-beginning 0) (org-end-of-subtree t t))) | 721 | (delete-region (match-beginning 0) (org-end-of-subtree t t))) |
| 722 | ;; A new footnote section is inserted by default at the end of | 722 | ;; A new footnote section is inserted by default at the end of |
| 723 | ;; the buffer. | 723 | ;; the buffer. |
| @@ -727,7 +727,14 @@ Additional note on `org-footnote-insert-pos-for-preprocessor': | |||
| 727 | (unless (bolp) (newline))) | 727 | (unless (bolp) (newline))) |
| 728 | ;; No footnote section set: Footnotes will be added at the end | 728 | ;; No footnote section set: Footnotes will be added at the end |
| 729 | ;; of the section containing their first reference. | 729 | ;; of the section containing their first reference. |
| 730 | ((eq major-mode 'org-mode)) | 730 | ;; Nevertheless, in an export situation, set insertion point to |
| 731 | ;; `point-max' by default. | ||
| 732 | ((eq major-mode 'org-mode) | ||
| 733 | (when export-props | ||
| 734 | (goto-char (point-max)) | ||
| 735 | (skip-chars-backward " \r\t\n") | ||
| 736 | (forward-line) | ||
| 737 | (delete-region (point) (point-max)))) | ||
| 731 | (t | 738 | (t |
| 732 | ;; Remove any left-over tag in the buffer, if one is set up. | 739 | ;; Remove any left-over tag in the buffer, if one is set up. |
| 733 | (when org-footnote-tag-for-non-org-mode-files | 740 | (when org-footnote-tag-for-non-org-mode-files |
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el index c3775888325..4498280ac77 100644 --- a/lisp/org/org-list.el +++ b/lisp/org/org-list.el | |||
| @@ -1484,8 +1484,19 @@ bullets between START and END." | |||
| 1484 | (change-bullet-maybe | 1484 | (change-bullet-maybe |
| 1485 | (function | 1485 | (function |
| 1486 | (lambda (item) | 1486 | (lambda (item) |
| 1487 | (let* ((bul (org-trim (org-list-get-bullet item struct))) | 1487 | (let ((new-bul-p |
| 1488 | (new-bul-p (cdr (assoc bul org-list-demote-modify-bullet)))) | 1488 | (cdr (assoc |
| 1489 | ;; Normalize ordered bullets. | ||
| 1490 | (let ((bul (org-trim | ||
| 1491 | (org-list-get-bullet item struct)))) | ||
| 1492 | (cond ((string-match "[A-Z]\\." bul) "A.") | ||
| 1493 | ((string-match "[A-Z])" bul) "A)") | ||
| 1494 | ((string-match "[a-z]\\." bul) "a.") | ||
| 1495 | ((string-match "[a-z])" bul) "a)") | ||
| 1496 | ((string-match "[0-9]\\." bul) "1.") | ||
| 1497 | ((string-match "[0-9])" bul) "1)") | ||
| 1498 | (t bul))) | ||
| 1499 | org-list-demote-modify-bullet)))) | ||
| 1489 | (when new-bul-p (org-list-set-bullet item struct new-bul-p)))))) | 1500 | (when new-bul-p (org-list-set-bullet item struct new-bul-p)))))) |
| 1490 | (ind | 1501 | (ind |
| 1491 | (lambda (cell) | 1502 | (lambda (cell) |
| @@ -2500,7 +2511,6 @@ STRUCT is the list structure. | |||
| 2500 | 2511 | ||
| 2501 | Return t if successful." | 2512 | Return t if successful." |
| 2502 | (save-excursion | 2513 | (save-excursion |
| 2503 | (beginning-of-line) | ||
| 2504 | (let* ((regionp (org-region-active-p)) | 2514 | (let* ((regionp (org-region-active-p)) |
| 2505 | (rbeg (and regionp (region-beginning))) | 2515 | (rbeg (and regionp (region-beginning))) |
| 2506 | (rend (and regionp (region-end))) | 2516 | (rend (and regionp (region-end))) |
| @@ -2509,7 +2519,8 @@ Return t if successful." | |||
| 2509 | (prevs (org-list-prevs-alist struct)) | 2519 | (prevs (org-list-prevs-alist struct)) |
| 2510 | ;; Are we going to move the whole list? | 2520 | ;; Are we going to move the whole list? |
| 2511 | (specialp | 2521 | (specialp |
| 2512 | (and (= top (point)) | 2522 | (and (not regionp) |
| 2523 | (= top (point-at-bol)) | ||
| 2513 | (cdr (assq 'indent org-list-automatic-rules)) | 2524 | (cdr (assq 'indent org-list-automatic-rules)) |
| 2514 | (if no-subtree | 2525 | (if no-subtree |
| 2515 | (error | 2526 | (error |
| @@ -2523,12 +2534,12 @@ Return t if successful." | |||
| 2523 | (progn | 2534 | (progn |
| 2524 | (set-marker org-last-indent-begin-marker rbeg) | 2535 | (set-marker org-last-indent-begin-marker rbeg) |
| 2525 | (set-marker org-last-indent-end-marker rend)) | 2536 | (set-marker org-last-indent-end-marker rend)) |
| 2526 | (set-marker org-last-indent-begin-marker (point)) | 2537 | (set-marker org-last-indent-begin-marker (point-at-bol)) |
| 2527 | (set-marker org-last-indent-end-marker | 2538 | (set-marker org-last-indent-end-marker |
| 2528 | (cond | 2539 | (cond |
| 2529 | (specialp (org-list-get-bottom-point struct)) | 2540 | (specialp (org-list-get-bottom-point struct)) |
| 2530 | (no-subtree (1+ (point))) | 2541 | (no-subtree (1+ (point-at-bol))) |
| 2531 | (t (org-list-get-item-end (point) struct)))))) | 2542 | (t (org-list-get-item-end (point-at-bol) struct)))))) |
| 2532 | (let* ((beg (marker-position org-last-indent-begin-marker)) | 2543 | (let* ((beg (marker-position org-last-indent-begin-marker)) |
| 2533 | (end (marker-position org-last-indent-end-marker))) | 2544 | (end (marker-position org-last-indent-end-marker))) |
| 2534 | (cond | 2545 | (cond |
| @@ -2583,19 +2594,35 @@ Return t if successful." | |||
| 2583 | "Outdent a local list item, but not its children. | 2594 | "Outdent a local list item, but not its children. |
| 2584 | If a region is active, all items inside will be moved." | 2595 | If a region is active, all items inside will be moved." |
| 2585 | (interactive) | 2596 | (interactive) |
| 2586 | (if (org-at-item-p) | 2597 | (let ((regionp (org-region-active-p))) |
| 2587 | (let ((struct (org-list-struct))) | 2598 | (cond |
| 2588 | (org-list-indent-item-generic -1 t struct)) | 2599 | ((or (org-at-item-p) |
| 2589 | (error "Not at an item"))) | 2600 | (and regionp |
| 2601 | (save-excursion (goto-char (region-beginning)) | ||
| 2602 | (org-at-item-p)))) | ||
| 2603 | (let ((struct (if (not regionp) (org-list-struct) | ||
| 2604 | (save-excursion (goto-char (region-beginning)) | ||
| 2605 | (org-list-struct))))) | ||
| 2606 | (org-list-indent-item-generic -1 t struct))) | ||
| 2607 | (regionp (error "Region not starting at an item")) | ||
| 2608 | (t (error "Not at an item"))))) | ||
| 2590 | 2609 | ||
| 2591 | (defun org-indent-item () | 2610 | (defun org-indent-item () |
| 2592 | "Indent a local list item, but not its children. | 2611 | "Indent a local list item, but not its children. |
| 2593 | If a region is active, all items inside will be moved." | 2612 | If a region is active, all items inside will be moved." |
| 2594 | (interactive) | 2613 | (interactive) |
| 2595 | (if (org-at-item-p) | 2614 | (let ((regionp (org-region-active-p))) |
| 2596 | (let ((struct (org-list-struct))) | 2615 | (cond |
| 2597 | (org-list-indent-item-generic 1 t struct)) | 2616 | ((or (org-at-item-p) |
| 2598 | (error "Not at an item"))) | 2617 | (and regionp |
| 2618 | (save-excursion (goto-char (region-beginning)) | ||
| 2619 | (org-at-item-p)))) | ||
| 2620 | (let ((struct (if (not regionp) (org-list-struct) | ||
| 2621 | (save-excursion (goto-char (region-beginning)) | ||
| 2622 | (org-list-struct))))) | ||
| 2623 | (org-list-indent-item-generic 1 t struct))) | ||
| 2624 | (regionp (error "Region not starting at an item")) | ||
| 2625 | (t (error "Not at an item"))))) | ||
| 2599 | 2626 | ||
| 2600 | (defun org-outdent-item-tree () | 2627 | (defun org-outdent-item-tree () |
| 2601 | "Outdent a local list item including its children. | 2628 | "Outdent a local list item including its children. |
| @@ -2604,10 +2631,12 @@ If a region is active, all items inside will be moved." | |||
| 2604 | (let ((regionp (org-region-active-p))) | 2631 | (let ((regionp (org-region-active-p))) |
| 2605 | (cond | 2632 | (cond |
| 2606 | ((or (org-at-item-p) | 2633 | ((or (org-at-item-p) |
| 2607 | (and (org-region-active-p) | 2634 | (and regionp |
| 2608 | (goto-char (region-beginning)) | 2635 | (save-excursion (goto-char (region-beginning)) |
| 2609 | (org-at-item-p))) | 2636 | (org-at-item-p)))) |
| 2610 | (let ((struct (org-list-struct))) | 2637 | (let ((struct (if (not regionp) (org-list-struct) |
| 2638 | (save-excursion (goto-char (region-beginning)) | ||
| 2639 | (org-list-struct))))) | ||
| 2611 | (org-list-indent-item-generic -1 nil struct))) | 2640 | (org-list-indent-item-generic -1 nil struct))) |
| 2612 | (regionp (error "Region not starting at an item")) | 2641 | (regionp (error "Region not starting at an item")) |
| 2613 | (t (error "Not at an item"))))) | 2642 | (t (error "Not at an item"))))) |
| @@ -2619,10 +2648,12 @@ If a region is active, all items inside will be moved." | |||
| 2619 | (let ((regionp (org-region-active-p))) | 2648 | (let ((regionp (org-region-active-p))) |
| 2620 | (cond | 2649 | (cond |
| 2621 | ((or (org-at-item-p) | 2650 | ((or (org-at-item-p) |
| 2622 | (and (org-region-active-p) | 2651 | (and regionp |
| 2623 | (goto-char (region-beginning)) | 2652 | (save-excursion (goto-char (region-beginning)) |
| 2624 | (org-at-item-p))) | 2653 | (org-at-item-p)))) |
| 2625 | (let ((struct (org-list-struct))) | 2654 | (let ((struct (if (not regionp) (org-list-struct) |
| 2655 | (save-excursion (goto-char (region-beginning)) | ||
| 2656 | (org-list-struct))))) | ||
| 2626 | (org-list-indent-item-generic 1 nil struct))) | 2657 | (org-list-indent-item-generic 1 nil struct))) |
| 2627 | (regionp (error "Region not starting at an item")) | 2658 | (regionp (error "Region not starting at an item")) |
| 2628 | (t (error "Not at an item"))))) | 2659 | (t (error "Not at an item"))))) |
diff --git a/lisp/org/org-mouse.el b/lisp/org/org-mouse.el index 5a87bd64697..b467064b888 100644 --- a/lisp/org/org-mouse.el +++ b/lisp/org/org-mouse.el | |||
| @@ -915,6 +915,7 @@ This means, between the beginning of line and the point." | |||
| 915 | ((assq :checkbox context) (org-toggle-checkbox)) | 915 | ((assq :checkbox context) (org-toggle-checkbox)) |
| 916 | ((assq :item-bullet context) | 916 | ((assq :item-bullet context) |
| 917 | (let ((org-cycle-include-plain-lists t)) (org-cycle))) | 917 | (let ((org-cycle-include-plain-lists t)) (org-cycle))) |
| 918 | ((org-footnote-at-reference-p) nil) | ||
| 918 | (t ad-do-it)))))) | 919 | (t ad-do-it)))))) |
| 919 | 920 | ||
| 920 | (defun org-mouse-move-tree-start (event) | 921 | (defun org-mouse-move-tree-start (event) |
diff --git a/lisp/org/org-odt.el b/lisp/org/org-odt.el index 234272a378d..2e984a575bd 100644 --- a/lisp/org/org-odt.el +++ b/lisp/org/org-odt.el | |||
| @@ -1689,7 +1689,6 @@ ATTR is a string of other attributes of the a element." | |||
| 1689 | (or (not thefile) (string= thefile "")) | 1689 | (or (not thefile) (string= thefile "")) |
| 1690 | (plist-get org-lparse-opt-plist :section-numbers) | 1690 | (plist-get org-lparse-opt-plist :section-numbers) |
| 1691 | (setq sec-frag fragment) | 1691 | (setq sec-frag fragment) |
| 1692 | (org-find-text-property-in-string 'org-no-description fragment) | ||
| 1693 | (or (string-match "\\`sec\\(\\(-[0-9]+\\)+\\)" sec-frag) | 1692 | (or (string-match "\\`sec\\(\\(-[0-9]+\\)+\\)" sec-frag) |
| 1694 | (and (setq sec-frag | 1693 | (and (setq sec-frag |
| 1695 | (loop for alias in org-export-target-aliases do | 1694 | (loop for alias in org-export-target-aliases do |
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index 08981b57e49..37e5c4f91a6 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el | |||
| @@ -135,8 +135,8 @@ Other options offered by the customize interface are more restrictive." | |||
| 135 | 135 | ||
| 136 | (defcustom org-table-number-fraction 0.5 | 136 | (defcustom org-table-number-fraction 0.5 |
| 137 | "Fraction of numbers in a column required to make the column align right. | 137 | "Fraction of numbers in a column required to make the column align right. |
| 138 | In a column all non-white fields are considered. If at least this | 138 | In a column all non-white fields are considered. If at least |
| 139 | fraction of fields is matched by `org-table-number-fraction', | 139 | this fraction of fields is matched by `org-table-number-regexp', |
| 140 | alignment to the right border applies." | 140 | alignment to the right border applies." |
| 141 | :group 'org-table-settings | 141 | :group 'org-table-settings |
| 142 | :type 'number) | 142 | :type 'number) |
diff --git a/lisp/org/org.el b/lisp/org/org.el index c2cc2354439..838a9a18ad4 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -5057,8 +5057,7 @@ The following commands are available: | |||
| 5057 | 'org-parse-arguments) | 5057 | 'org-parse-arguments) |
| 5058 | (set (make-local-variable 'pcomplete-termination-string) "") | 5058 | (set (make-local-variable 'pcomplete-termination-string) "") |
| 5059 | (when (>= emacs-major-version 23) | 5059 | (when (>= emacs-major-version 23) |
| 5060 | (set (make-local-variable 'buffer-face-mode-face) 'org-default) | 5060 | (set (make-local-variable 'buffer-face-mode-face) 'org-default)) |
| 5061 | (buffer-face-mode)) | ||
| 5062 | 5061 | ||
| 5063 | ;; If empty file that did not turn on org-mode automatically, make it to. | 5062 | ;; If empty file that did not turn on org-mode automatically, make it to. |
| 5064 | (if (and org-insert-mode-line-in-empty-file | 5063 | (if (and org-insert-mode-line-in-empty-file |
| @@ -14915,7 +14914,7 @@ So these are more for recording a certain time/date." | |||
| 14915 | (org-time-stamp arg 'inactive)) | 14914 | (org-time-stamp arg 'inactive)) |
| 14916 | 14915 | ||
| 14917 | (defvar org-date-ovl (make-overlay 1 1)) | 14916 | (defvar org-date-ovl (make-overlay 1 1)) |
| 14918 | (overlay-put org-date-ovl 'face 'org-warning) | 14917 | (overlay-put org-date-ovl 'face 'org-date-selected) |
| 14919 | (org-detach-overlay org-date-ovl) | 14918 | (org-detach-overlay org-date-ovl) |
| 14920 | 14919 | ||
| 14921 | (defvar org-ans1) ; dynamically scoped parameter | 14920 | (defvar org-ans1) ; dynamically scoped parameter |
| @@ -15131,35 +15130,35 @@ user." | |||
| 15131 | (when org-read-date-display-live | 15130 | (when org-read-date-display-live |
| 15132 | (when org-read-date-overlay | 15131 | (when org-read-date-overlay |
| 15133 | (delete-overlay org-read-date-overlay)) | 15132 | (delete-overlay org-read-date-overlay)) |
| 15134 | (let ((p (point))) | 15133 | (when (minibufferp (current-buffer)) |
| 15135 | (end-of-line 1) | 15134 | (save-excursion |
| 15136 | (while (not (equal (buffer-substring | 15135 | (end-of-line 1) |
| 15137 | (max (point-min) (- (point) 4)) (point)) | 15136 | (while (not (equal (buffer-substring |
| 15138 | " ")) | 15137 | (max (point-min) (- (point) 4)) (point)) |
| 15139 | (insert " ")) | 15138 | " ")) |
| 15140 | (goto-char p)) | 15139 | (insert " "))) |
| 15141 | (let* ((ans (concat (buffer-substring (point-at-bol) (point-max)) | 15140 | (let* ((ans (concat (buffer-substring (point-at-bol) (point-max)) |
| 15142 | " " (or org-ans1 org-ans2))) | 15141 | " " (or org-ans1 org-ans2))) |
| 15143 | (org-end-time-was-given nil) | 15142 | (org-end-time-was-given nil) |
| 15144 | (f (org-read-date-analyze ans org-def org-defdecode)) | 15143 | (f (org-read-date-analyze ans org-def org-defdecode)) |
| 15145 | (fmts (if org-dcst | 15144 | (fmts (if org-dcst |
| 15146 | org-time-stamp-custom-formats | 15145 | org-time-stamp-custom-formats |
| 15147 | org-time-stamp-formats)) | 15146 | org-time-stamp-formats)) |
| 15148 | (fmt (if (or org-with-time | 15147 | (fmt (if (or org-with-time |
| 15149 | (and (boundp 'org-time-was-given) org-time-was-given)) | 15148 | (and (boundp 'org-time-was-given) org-time-was-given)) |
| 15150 | (cdr fmts) | 15149 | (cdr fmts) |
| 15151 | (car fmts))) | 15150 | (car fmts))) |
| 15152 | (txt (concat "=> " (format-time-string fmt (apply 'encode-time f))))) | 15151 | (txt (concat "=> " (format-time-string fmt (apply 'encode-time f))))) |
| 15153 | (when (and org-end-time-was-given | 15152 | (when (and org-end-time-was-given |
| 15154 | (string-match org-plain-time-of-day-regexp txt)) | 15153 | (string-match org-plain-time-of-day-regexp txt)) |
| 15155 | (setq txt (concat (substring txt 0 (match-end 0)) "-" | 15154 | (setq txt (concat (substring txt 0 (match-end 0)) "-" |
| 15156 | org-end-time-was-given | 15155 | org-end-time-was-given |
| 15157 | (substring txt (match-end 0))))) | 15156 | (substring txt (match-end 0))))) |
| 15158 | (when org-read-date-analyze-futurep | 15157 | (when org-read-date-analyze-futurep |
| 15159 | (setq txt (concat txt " (=>F)"))) | 15158 | (setq txt (concat txt " (=>F)"))) |
| 15160 | (setq org-read-date-overlay | 15159 | (setq org-read-date-overlay |
| 15161 | (make-overlay (1- (point-at-eol)) (point-at-eol))) | 15160 | (make-overlay (1- (point-at-eol)) (point-at-eol))) |
| 15162 | (org-overlay-display org-read-date-overlay txt 'secondary-selection)))) | 15161 | (org-overlay-display org-read-date-overlay txt 'secondary-selection))))) |
| 15163 | 15162 | ||
| 15164 | (defun org-read-date-analyze (ans org-def org-defdecode) | 15163 | (defun org-read-date-analyze (ans org-def org-defdecode) |
| 15165 | "Analyze the combined answer of the date prompt." | 15164 | "Analyze the combined answer of the date prompt." |
| @@ -17969,28 +17968,34 @@ See the individual commands for more information." | |||
| 17969 | 17968 | ||
| 17970 | (defun org-shiftmetaleft () | 17969 | (defun org-shiftmetaleft () |
| 17971 | "Promote subtree or delete table column. | 17970 | "Promote subtree or delete table column. |
| 17972 | Calls `org-promote-subtree', `org-outdent-item', | 17971 | Calls `org-promote-subtree', `org-outdent-item-tree', or |
| 17973 | or `org-table-delete-column', depending on context. | 17972 | `org-table-delete-column', depending on context. See the |
| 17974 | See the individual commands for more information." | 17973 | individual commands for more information." |
| 17975 | (interactive) | 17974 | (interactive) |
| 17976 | (cond | 17975 | (cond |
| 17977 | ((run-hook-with-args-until-success 'org-shiftmetaleft-hook)) | 17976 | ((run-hook-with-args-until-success 'org-shiftmetaleft-hook)) |
| 17978 | ((org-at-table-p) (call-interactively 'org-table-delete-column)) | 17977 | ((org-at-table-p) (call-interactively 'org-table-delete-column)) |
| 17979 | ((org-at-heading-p) (call-interactively 'org-promote-subtree)) | 17978 | ((org-at-heading-p) (call-interactively 'org-promote-subtree)) |
| 17980 | ((org-at-item-p) (call-interactively 'org-outdent-item-tree)) | 17979 | ((if (not (org-region-active-p)) (org-at-item-p) |
| 17980 | (save-excursion (goto-char (region-beginning)) | ||
| 17981 | (org-at-item-p))) | ||
| 17982 | (call-interactively 'org-outdent-item-tree)) | ||
| 17981 | (t (org-modifier-cursor-error)))) | 17983 | (t (org-modifier-cursor-error)))) |
| 17982 | 17984 | ||
| 17983 | (defun org-shiftmetaright () | 17985 | (defun org-shiftmetaright () |
| 17984 | "Demote subtree or insert table column. | 17986 | "Demote subtree or insert table column. |
| 17985 | Calls `org-demote-subtree', `org-indent-item', | 17987 | Calls `org-demote-subtree', `org-indent-item-tree', or |
| 17986 | or `org-table-insert-column', depending on context. | 17988 | `org-table-insert-column', depending on context. See the |
| 17987 | See the individual commands for more information." | 17989 | individual commands for more information." |
| 17988 | (interactive) | 17990 | (interactive) |
| 17989 | (cond | 17991 | (cond |
| 17990 | ((run-hook-with-args-until-success 'org-shiftmetaright-hook)) | 17992 | ((run-hook-with-args-until-success 'org-shiftmetaright-hook)) |
| 17991 | ((org-at-table-p) (call-interactively 'org-table-insert-column)) | 17993 | ((org-at-table-p) (call-interactively 'org-table-insert-column)) |
| 17992 | ((org-at-heading-p) (call-interactively 'org-demote-subtree)) | 17994 | ((org-at-heading-p) (call-interactively 'org-demote-subtree)) |
| 17993 | ((org-at-item-p) (call-interactively 'org-indent-item-tree)) | 17995 | ((if (not (org-region-active-p)) (org-at-item-p) |
| 17996 | (save-excursion (goto-char (region-beginning)) | ||
| 17997 | (org-at-item-p))) | ||
| 17998 | (call-interactively 'org-indent-item-tree)) | ||
| 17994 | (t (org-modifier-cursor-error)))) | 17999 | (t (org-modifier-cursor-error)))) |
| 17995 | 18000 | ||
| 17996 | (defun org-shiftmetaup (&optional arg) | 18001 | (defun org-shiftmetaup (&optional arg) |