diff options
| author | Carsten Dominik | 2008-12-20 14:32:06 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2008-12-20 14:32:06 +0000 |
| commit | fdf730ed29c68aecf4634392fc30b12eb77170d9 (patch) | |
| tree | 4d6f16defc0ce2b915e4dbd52b99d7c36010000a | |
| parent | a11ac4ae05cf7736d575b511c078f3a3c4ef9ec1 (diff) | |
| download | emacs-fdf730ed29c68aecf4634392fc30b12eb77170d9.tar.gz emacs-fdf730ed29c68aecf4634392fc30b12eb77170d9.zip | |
2008-12-20 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-get-refile-targets, org-refile-get-location): Use
expanded file name to improve comparison.
2008-12-20 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-scan-tags): Rescan for tags, to get the correct
upcase/downcase stuff. This slows things down for now, but it
works.
(org-mode): Make sure the tag-faces regexp is initialized.
* org-export-latex.el (org-export-latex-links): Fix bug with
undefined label.
* org-table.el (org-table-get-specials): Set
`org-table-current-last-data-line'.
(org-table-current-last-data-line): New variable.
(org-table-insert-column, org-table-delete-column)
(org-table-move-column, org-table-fix-formulas): Call
`org-table-fix-formulas' a second time to fix the $LR references.
(org-table-get-specials): Add the $LR references to the tables.
(org-table-get-formula): Do not offer last-row names as LHS of
formulas.
* org.el (org-store-link): Capture link description from
`org-id-store-link'.
* org-exp.el (org-export-html-format-image): Add the / to the end
of the <img> tag.
(org-export-format-source-code): Surround example by empty lines,
to make sure it will not be inside a paragraph.
* org.el (org-ido-switchb): New function.
2008-12-20 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-agenda-show): New prefix argument
FULL-ENTRY.
* org.el (org-sort-entries-or-items): Add a COMPARE-FUNC
argument.
32 files changed, 112 insertions, 60 deletions
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 89f7c038f03..cf4d6ab78f2 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.15d | 9 | ;; Version: 6.16 |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -4945,11 +4945,16 @@ If this information is not given, the function uses the tree at point." | |||
| 4945 | (mouse-set-point ev) | 4945 | (mouse-set-point ev) |
| 4946 | (org-agenda-goto)) | 4946 | (org-agenda-goto)) |
| 4947 | 4947 | ||
| 4948 | (defun org-agenda-show () | 4948 | (defun org-agenda-show (&optional full-entry) |
| 4949 | "Display the Org-mode file which contains the item at point." | 4949 | "Display the Org-mode file which contains the item at point. |
| 4950 | (interactive) | 4950 | With prefix argument FULL-ENTRY, make the entire entry visible |
| 4951 | if it was hidden in the outline." | ||
| 4952 | (interactive "P") | ||
| 4951 | (let ((win (selected-window))) | 4953 | (let ((win (selected-window))) |
| 4952 | (org-agenda-goto t) | 4954 | (if full-entry |
| 4955 | (let ((org-show-entry-below t)) | ||
| 4956 | (org-agenda-goto t)) | ||
| 4957 | (org-agenda-goto t)) | ||
| 4953 | (select-window win))) | 4958 | (select-window win))) |
| 4954 | 4959 | ||
| 4955 | (defun org-agenda-recenter (arg) | 4960 | (defun org-agenda-recenter (arg) |
| @@ -5079,12 +5084,10 @@ If JUST-THIS is non-nil, change just the current line, not all. | |||
| 5079 | If FORCE-TAGS is non nil, the car of it returns the new tags." | 5084 | If FORCE-TAGS is non nil, the car of it returns the new tags." |
| 5080 | (let* ((inhibit-read-only t) | 5085 | (let* ((inhibit-read-only t) |
| 5081 | (line (org-current-line)) | 5086 | (line (org-current-line)) |
| 5082 | (thetags | 5087 | (thetags (with-current-buffer (marker-buffer hdmarker) |
| 5083 | (and hdmarker (markerp hdmarker) | ||
| 5084 | (with-current-buffer (marker-buffer hdmarker) | ||
| 5085 | (save-excursion (save-restriction (widen) | 5088 | (save-excursion (save-restriction (widen) |
| 5086 | (goto-char hdmarker) | 5089 | (goto-char hdmarker) |
| 5087 | (org-get-tags-at)))))) | 5090 | (org-get-tags-at))))) |
| 5088 | props m pl undone-face done-face finish new dotime cat tags) | 5091 | props m pl undone-face done-face finish new dotime cat tags) |
| 5089 | (save-excursion | 5092 | (save-excursion |
| 5090 | (goto-char (point-max)) | 5093 | (goto-char (point-max)) |
diff --git a/lisp/org/org-archive.el b/lisp/org/org-archive.el index 59906e8d68c..32aa05cae0c 100644 --- a/lisp/org/org-archive.el +++ b/lisp/org/org-archive.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.15d | 8 | ;; Version: 6.16 |
| 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-attach.el b/lisp/org/org-attach.el index bff61dc7bfa..f3f7a8a2ddb 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.15d | 7 | ;; Version: 6.16 |
| 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 4ab9b1aa54e..aaa699900d8 100644 --- a/lisp/org/org-bbdb.el +++ b/lisp/org/org-bbdb.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Thomas Baumann <thomas dot baumann at ch dot tum dot de> | 6 | ;; 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.15d | 9 | ;; Version: 6.16 |
| 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-bibtex.el b/lisp/org/org-bibtex.el index 53701b0d972..7236a9147cb 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.15d | 8 | ;; Version: 6.16 |
| 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 9ab943adb00..ab975d3e719 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.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.15d | 8 | ;; Version: 6.16 |
| 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-colview.el b/lisp/org/org-colview.el index 392fae90a46..baa3f57e0ba 100644 --- a/lisp/org/org-colview.el +++ b/lisp/org/org-colview.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.15d | 8 | ;; Version: 6.16 |
| 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-compat.el b/lisp/org/org-compat.el index c354d7158c3..b578ad301f9 100644 --- a/lisp/org/org-compat.el +++ b/lisp/org/org-compat.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.15d | 8 | ;; Version: 6.16 |
| 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-exp.el b/lisp/org/org-exp.el index 0fe635f7330..bb50029a881 100644 --- a/lisp/org/org-exp.el +++ b/lisp/org/org-exp.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.15d | 8 | ;; Version: 6.16 |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -2260,9 +2260,9 @@ backends, it converts the segment into an EXAMPLE segment." | |||
| 2260 | (point-min) (point-max))))) | 2260 | (point-min) (point-max))))) |
| 2261 | (if (string-match "<pre\\([^>]*\\)>\n?" htmltext) | 2261 | (if (string-match "<pre\\([^>]*\\)>\n?" htmltext) |
| 2262 | (setq htmltext (replace-match | 2262 | (setq htmltext (replace-match |
| 2263 | (format "<pre class=\"src src-%s\">" lang) | 2263 | (format "<pre class=\"src src-%s\">\n" lang) |
| 2264 | t t htmltext))) | 2264 | t t htmltext))) |
| 2265 | (concat "#+BEGIN_HTML\n" htmltext "\n#+END_HTML\n")))) | 2265 | (concat "\n#+BEGIN_HTML\n" htmltext "\n#+END_HTML\n\n")))) |
| 2266 | (t | 2266 | (t |
| 2267 | ;; This is not HTML, so just make it an example. | 2267 | ;; This is not HTML, so just make it an example. |
| 2268 | (when (equal lang "org") | 2268 | (when (equal lang "org") |
| @@ -3716,7 +3716,7 @@ lang=\"%s\" xml:lang=\"%s\"> | |||
| 3716 | (attr (org-find-text-property-in-string 'org-attributes src)) | 3716 | (attr (org-find-text-property-in-string 'org-attributes src)) |
| 3717 | (label (org-find-text-property-in-string 'org-label src))) | 3717 | (label (org-find-text-property-in-string 'org-label src))) |
| 3718 | (format "<div %sclass=\"figure\"> | 3718 | (format "<div %sclass=\"figure\"> |
| 3719 | <p><img src=\"%s\"%s></p>%s | 3719 | <p><img src=\"%s\"%s /></p>%s |
| 3720 | </div>" | 3720 | </div>" |
| 3721 | (if label (format "id=\"%s\" " label) "") | 3721 | (if label (format "id=\"%s\" " label) "") |
| 3722 | src | 3722 | src |
diff --git a/lisp/org/org-export-latex.el b/lisp/org/org-export-latex.el index c46caffe5e5..d23652df29c 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.15d | 7 | ;; Version: 6.16 |
| 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 |
| @@ -1207,7 +1207,7 @@ If TIMESTAMPS, convert timestamps, otherwise delete them." | |||
| 1207 | (expand-file-name raw-path)) | 1207 | (expand-file-name raw-path)) |
| 1208 | (if floatp | 1208 | (if floatp |
| 1209 | (format "\\caption{%s%s}\n" | 1209 | (format "\\caption{%s%s}\n" |
| 1210 | (if label (concat "\\label{" label "}")) | 1210 | (if label (concat "\\label{" label "}") "") |
| 1211 | (or caption ""))) | 1211 | (or caption ""))) |
| 1212 | (if floatp "\\end{figure}\n")))) | 1212 | (if floatp "\\end{figure}\n")))) |
| 1213 | (radiop (insert (format "\\hyperref[%s]{%s}" | 1213 | (radiop (insert (format "\\hyperref[%s]{%s}" |
diff --git a/lisp/org/org-faces.el b/lisp/org/org-faces.el index 8200f27d80e..3c02ab77e29 100644 --- a/lisp/org/org-faces.el +++ b/lisp/org/org-faces.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.15d | 8 | ;; Version: 6.16 |
| 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-gnus.el b/lisp/org/org-gnus.el index f73d677963f..d3f57111a00 100644 --- a/lisp/org/org-gnus.el +++ b/lisp/org/org-gnus.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Tassilo Horn <tassilo at member dot fsf dot org> | 6 | ;; Tassilo Horn <tassilo at member dot fsf 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.15d | 9 | ;; Version: 6.16 |
| 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-id.el b/lisp/org/org-id.el index 7c3b3aab18b..6af76ae038c 100644 --- a/lisp/org/org-id.el +++ b/lisp/org/org-id.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;; Author: Carsten Dominik <carsten at orgmode dot org> | 4 | ;; Author: Carsten Dominik <carsten at orgmode dot org> |
| 5 | ;; Keywords: outlines, hypermedia, calendar, wp | 5 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 6 | ;; Homepage: http://orgmode.org | 6 | ;; Homepage: http://orgmode.org |
| 7 | ;; Version: 6.15d | 7 | ;; Version: 6.16 |
| 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-info.el b/lisp/org/org-info.el index 6eadf6d14ff..3b7bc4b0165 100644 --- a/lisp/org/org-info.el +++ b/lisp/org/org-info.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.15d | 8 | ;; Version: 6.16 |
| 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-irc.el b/lisp/org/org-irc.el index bd2536763f7..26f37db0e76 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.15d | 7 | ;; Version: 6.16 |
| 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 d26ed7fba23..f240ff636da 100644 --- a/lisp/org/org-jsinfo.el +++ b/lisp/org/org-jsinfo.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.15d | 8 | ;; Version: 6.16 |
| 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-list.el b/lisp/org/org-list.el index 383640a6cd7..2c36786e76e 100644 --- a/lisp/org/org-list.el +++ b/lisp/org/org-list.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Bastien Guerry <bzg AT altern DOT org> | 6 | ;; Bastien Guerry <bzg AT altern 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.15d | 9 | ;; Version: 6.16 |
| 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-mac-message.el b/lisp/org/org-mac-message.el index fa38ed78568..a7cf8f40c3c 100644 --- a/lisp/org/org-mac-message.el +++ b/lisp/org/org-mac-message.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2008 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: John Wiegley <johnw@gnu.org> | 5 | ;; Author: John Wiegley <johnw@gnu.org> |
| 6 | ;; Version: 6.15d | 6 | ;; Version: 6.16 |
| 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 1710017a951..173e0515022 100644 --- a/lisp/org/org-macs.el +++ b/lisp/org/org-macs.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.15d | 8 | ;; Version: 6.16 |
| 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-mew.el b/lisp/org/org-mew.el index bc181a6762b..5f666d21e11 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.15d | 8 | ;; Version: 6.16 |
| 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 43dd6ce0567..01065681203 100644 --- a/lisp/org/org-mhe.el +++ b/lisp/org/org-mhe.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Thomas Baumann <thomas dot baumann at ch dot tum dot de> | 5 | ;; Author: Thomas Baumann <thomas dot baumann at ch dot tum dot de> |
| 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.15d | 8 | ;; Version: 6.16 |
| 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-mouse.el b/lisp/org/org-mouse.el index 19fce9aee61..71fb8dc3d6b 100644 --- a/lisp/org/org-mouse.el +++ b/lisp/org/org-mouse.el | |||
| @@ -4,7 +4,7 @@ | |||
| 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.15d | 7 | ;; Version: 6.16 |
| 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 96e7f1157e5..1eecd7a7090 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.15d | 8 | ;; Version: 6.16 |
| 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 b7547353b7e..b8b3a4855fd 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.15d | 7 | ;; Version: 6.16 |
| 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 db9ff004c73..c9575e4b852 100644 --- a/lisp/org/org-remember.el +++ b/lisp/org/org-remember.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.15d | 8 | ;; Version: 6.16 |
| 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-rmail.el b/lisp/org/org-rmail.el index 795a52fe4b2..feb22368280 100644 --- a/lisp/org/org-rmail.el +++ b/lisp/org/org-rmail.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.15d | 8 | ;; Version: 6.16 |
| 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-table.el b/lisp/org/org-table.el index 12d2e6ef98f..ad07a390a19 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.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.15d | 8 | ;; Version: 6.16 |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -1060,7 +1060,8 @@ However, when FORCE is non-nil, create new columns if necessary." | |||
| 1060 | (goto-line linepos) | 1060 | (goto-line linepos) |
| 1061 | (org-table-goto-column colpos) | 1061 | (org-table-goto-column colpos) |
| 1062 | (org-table-align) | 1062 | (org-table-align) |
| 1063 | (org-table-fix-formulas "$" nil (1- col) 1))) | 1063 | (org-table-fix-formulas "$" nil (1- col) 1) |
| 1064 | (org-table-fix-formulas "$LR" nil (1- col) 1))) | ||
| 1064 | 1065 | ||
| 1065 | (defun org-table-find-dataline () | 1066 | (defun org-table-find-dataline () |
| 1066 | "Find a dataline in the current table, which is needed for column commands." | 1067 | "Find a dataline in the current table, which is needed for column commands." |
| @@ -1107,6 +1108,8 @@ However, when FORCE is non-nil, create new columns if necessary." | |||
| 1107 | (org-table-goto-column colpos) | 1108 | (org-table-goto-column colpos) |
| 1108 | (org-table-align) | 1109 | (org-table-align) |
| 1109 | (org-table-fix-formulas "$" (list (cons (number-to-string col) "INVALID")) | 1110 | (org-table-fix-formulas "$" (list (cons (number-to-string col) "INVALID")) |
| 1111 | col -1 col) | ||
| 1112 | (org-table-fix-formulas "$LR" (list (cons (number-to-string col) "INVALID")) | ||
| 1110 | col -1 col))) | 1113 | col -1 col))) |
| 1111 | 1114 | ||
| 1112 | (defun org-table-move-column-right () | 1115 | (defun org-table-move-column-right () |
| @@ -1150,7 +1153,10 @@ However, when FORCE is non-nil, create new columns if necessary." | |||
| 1150 | (org-table-align) | 1153 | (org-table-align) |
| 1151 | (org-table-fix-formulas | 1154 | (org-table-fix-formulas |
| 1152 | "$" (list (cons (number-to-string col) (number-to-string colpos)) | 1155 | "$" (list (cons (number-to-string col) (number-to-string colpos)) |
| 1153 | (cons (number-to-string colpos) (number-to-string col)))))) | 1156 | (cons (number-to-string colpos) (number-to-string col)))) |
| 1157 | (org-table-fix-formulas | ||
| 1158 | "$LR" (list (cons (number-to-string col) (number-to-string colpos)) | ||
| 1159 | (cons (number-to-string colpos) (number-to-string col)))))) | ||
| 1154 | 1160 | ||
| 1155 | (defun org-table-move-row-down () | 1161 | (defun org-table-move-row-down () |
| 1156 | "Move table row down." | 1162 | "Move table row down." |
| @@ -1717,7 +1723,9 @@ When NAMED is non-nil, look for a named equation." | |||
| 1717 | (org-table-current-column))) | 1723 | (org-table-current-column))) |
| 1718 | (refass (assoc ref stored-list)) | 1724 | (refass (assoc ref stored-list)) |
| 1719 | (scol (if named | 1725 | (scol (if named |
| 1720 | (if name name ref) | 1726 | (if (and name (not (string-match "^LR[0-9]+$" name))) |
| 1727 | name | ||
| 1728 | ref) | ||
| 1721 | (int-to-string (org-table-current-column)))) | 1729 | (int-to-string (org-table-current-column)))) |
| 1722 | (dummy (and (or name refass) (not named) | 1730 | (dummy (and (or name refass) (not named) |
| 1723 | (not (y-or-n-p "Replace field formula with column formula? " )) | 1731 | (not (y-or-n-p "Replace field formula with column formula? " )) |
| @@ -1826,8 +1834,9 @@ For all numbers larger than LIMIT, shift them by DELTA." | |||
| 1826 | (let ((re (concat key "\\([0-9]+\\)")) | 1834 | (let ((re (concat key "\\([0-9]+\\)")) |
| 1827 | (re2 | 1835 | (re2 |
| 1828 | (when remove | 1836 | (when remove |
| 1829 | (if (equal key "$") | 1837 | (if (or (equal key "$") (equal key "$LR")) |
| 1830 | (format "\\(@[0-9]+\\)?\\$%d=.*?\\(::\\|$\\)" remove) | 1838 | (format "\\(@[0-9]+\\)?%s%d=.*?\\(::\\|$\\)" |
| 1839 | (regexp-quote key) remove) | ||
| 1831 | (format "@%d\\$[0-9]+=.*?\\(::\\|$\\)" remove)))) | 1840 | (format "@%d\\$[0-9]+=.*?\\(::\\|$\\)" remove)))) |
| 1832 | s n a) | 1841 | s n a) |
| 1833 | (when remove | 1842 | (when remove |
| @@ -1846,7 +1855,7 @@ For all numbers larger than LIMIT, shift them by DELTA." | |||
| 1846 | (save-excursion | 1855 | (save-excursion |
| 1847 | (let ((beg (org-table-begin)) (end (org-table-end)) | 1856 | (let ((beg (org-table-begin)) (end (org-table-end)) |
| 1848 | names name fields fields1 field cnt | 1857 | names name fields fields1 field cnt |
| 1849 | c v l line col types dlines hlines) | 1858 | c v l line col types dlines hlines last-dline) |
| 1850 | (setq org-table-column-names nil | 1859 | (setq org-table-column-names nil |
| 1851 | org-table-local-parameters nil | 1860 | org-table-local-parameters nil |
| 1852 | org-table-named-field-locations nil | 1861 | org-table-named-field-locations nil |
| @@ -1897,8 +1906,24 @@ For all numbers larger than LIMIT, shift them by DELTA." | |||
| 1897 | (beginning-of-line 2) | 1906 | (beginning-of-line 2) |
| 1898 | (setq l (1+ l))) | 1907 | (setq l (1+ l))) |
| 1899 | (setq org-table-current-line-types (apply 'vector (nreverse types)) | 1908 | (setq org-table-current-line-types (apply 'vector (nreverse types)) |
| 1909 | last-dline (car dlines) | ||
| 1900 | org-table-dlines (apply 'vector (cons nil (nreverse dlines))) | 1910 | org-table-dlines (apply 'vector (cons nil (nreverse dlines))) |
| 1901 | org-table-hlines (apply 'vector (cons nil (nreverse hlines))))))) | 1911 | org-table-hlines (apply 'vector (cons nil (nreverse hlines)))) |
| 1912 | (goto-line last-dline) | ||
| 1913 | (let* ((l last-dline) | ||
| 1914 | (fields (org-split-string | ||
| 1915 | (buffer-substring (point-at-bol) (point-at-eol)) | ||
| 1916 | "|")) | ||
| 1917 | (nfields (length fields)) | ||
| 1918 | al al2) | ||
| 1919 | (loop for i from 1 to nfields do | ||
| 1920 | (push (list (format "LR%d" i) l i) al) | ||
| 1921 | (push (cons (format "LR%d" i) (nth (1- i) fields)) al2)) | ||
| 1922 | (setq org-table-named-field-locations | ||
| 1923 | (append org-table-named-field-locations al)) | ||
| 1924 | (setq org-table-local-parameters | ||
| 1925 | (append org-table-local-parameters al2)))))) | ||
| 1926 | |||
| 1902 | 1927 | ||
| 1903 | (defun org-table-maybe-eval-formula () | 1928 | (defun org-table-maybe-eval-formula () |
| 1904 | "Check if the current field starts with \"=\" or \":=\". | 1929 | "Check if the current field starts with \"=\" or \":=\". |
diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el index 42ff020ec2c..790f69efb2f 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.15d | 8 | ;; Version: 6.16 |
| 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 b0a76f3334a..b87a9cace64 100644 --- a/lisp/org/org-vm.el +++ b/lisp/org/org-vm.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.15d | 8 | ;; Version: 6.16 |
| 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-w3m.el b/lisp/org/org-w3m.el index 8367ca61981..9b407103269 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.15d | 8 | ;; Version: 6.16 |
| 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 857a0b6ecd3..1f23feca022 100644 --- a/lisp/org/org-wl.el +++ b/lisp/org/org-wl.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.15d | 8 | ;; Version: 6.16 |
| 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.el b/lisp/org/org.el index 2461267e2bf..2e2f9533666 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.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.15d | 8 | ;; Version: 6.16 |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -92,7 +92,7 @@ | |||
| 92 | 92 | ||
| 93 | ;;; Version | 93 | ;;; Version |
| 94 | 94 | ||
| 95 | (defconst org-version "6.15d" | 95 | (defconst org-version "6.16" |
| 96 | "The version number of the file org.el.") | 96 | "The version number of the file org.el.") |
| 97 | 97 | ||
| 98 | (defun org-version (&optional here) | 98 | (defun org-version (&optional here) |
| @@ -1340,10 +1340,11 @@ are matched against file names, and values." | |||
| 1340 | This is list of cons cells. Each cell contains: | 1340 | This is list of cons cells. Each cell contains: |
| 1341 | - a specification of the files to be considered, either a list of files, | 1341 | - a specification of the files to be considered, either a list of files, |
| 1342 | or a symbol whose function or variable value will be used to retrieve | 1342 | or a symbol whose function or variable value will be used to retrieve |
| 1343 | a file name or a list of file names. Nil means, refile to a different | 1343 | a file name or a list of file names. If you use `org-agenda-files' for |
| 1344 | heading in the current buffer. | 1344 | that, all agenda files will be scanned for targets. Nil means, consider |
| 1345 | - A specification of how to find candidate refile targets. This may be | 1345 | headings in the current buffer. |
| 1346 | any of | 1346 | - A specification of how to select find candidate refile targets. This |
| 1347 | may be any of | ||
| 1347 | - a cons cell (:tag . \"TAG\") to identify refile targets by a tag. | 1348 | - a cons cell (:tag . \"TAG\") to identify refile targets by a tag. |
| 1348 | This tag has to be present in all target headlines, inheritance will | 1349 | This tag has to be present in all target headlines, inheritance will |
| 1349 | not be considered. | 1350 | not be considered. |
| @@ -3420,6 +3421,9 @@ The following commands are available: | |||
| 3420 | (if (stringp org-ellipsis) org-ellipsis "...")))) | 3421 | (if (stringp org-ellipsis) org-ellipsis "...")))) |
| 3421 | (setq buffer-display-table org-display-table)) | 3422 | (setq buffer-display-table org-display-table)) |
| 3422 | (org-set-regexps-and-options) | 3423 | (org-set-regexps-and-options) |
| 3424 | (when (and org-tag-faces (not org-tags-special-faces-re)) | ||
| 3425 | ;; tag faces set outside customize.... force initialization. | ||
| 3426 | (org-set-tag-faces 'org-tag-faces org-tag-faces)) | ||
| 3423 | ;; Calc embedded | 3427 | ;; Calc embedded |
| 3424 | (org-set-local 'calc-embedded-open-mode "# ") | 3428 | (org-set-local 'calc-embedded-open-mode "# ") |
| 3425 | (modify-syntax-entry ?# "<") | 3429 | (modify-syntax-entry ?# "<") |
| @@ -5434,7 +5438,8 @@ Optional argument WITH-CASE means sort case-sensitively." | |||
| 5434 | 5438 | ||
| 5435 | (defvar org-priority-regexp) ; defined later in the file | 5439 | (defvar org-priority-regexp) ; defined later in the file |
| 5436 | 5440 | ||
| 5437 | (defun org-sort-entries-or-items (&optional with-case sorting-type getkey-func property) | 5441 | (defun org-sort-entries-or-items |
| 5442 | (&optional with-case sorting-type getkey-func compare-func property) | ||
| 5438 | "Sort entries on a certain level of an outline tree. | 5443 | "Sort entries on a certain level of an outline tree. |
| 5439 | If there is an active region, the entries in the region are sorted. | 5444 | If there is an active region, the entries in the region are sorted. |
| 5440 | Else, if the cursor is before the first entry, sort the top-level items. | 5445 | Else, if the cursor is before the first entry, sort the top-level items. |
| @@ -5614,6 +5619,7 @@ WITH-CASE, the sorting considers case as well." | |||
| 5614 | (cond | 5619 | (cond |
| 5615 | ((= dcst ?a) 'string<) | 5620 | ((= dcst ?a) 'string<) |
| 5616 | ((= dcst ?t) 'time-less-p) | 5621 | ((= dcst ?t) 'time-less-p) |
| 5622 | ((= dcst ?f) compare-func) | ||
| 5617 | (t nil))))) | 5623 | (t nil))))) |
| 5618 | (message "Sorting entries...done"))) | 5624 | (message "Sorting entries...done"))) |
| 5619 | 5625 | ||
| @@ -6267,7 +6273,9 @@ For file links, arg negates `org-context-in-file-links'." | |||
| 6267 | (error nil))))) | 6273 | (error nil))))) |
| 6268 | ;; We can make a link using the ID. | 6274 | ;; We can make a link using the ID. |
| 6269 | (setq link (condition-case nil | 6275 | (setq link (condition-case nil |
| 6270 | (org-id-store-link) | 6276 | (prog1 (org-id-store-link) |
| 6277 | (setq desc (plist-get org-store-link-plist | ||
| 6278 | :description))) | ||
| 6271 | (error | 6279 | (error |
| 6272 | ;; probably before first headline, link to file only | 6280 | ;; probably before first headline, link to file only |
| 6273 | (concat "file:" | 6281 | (concat "file:" |
| @@ -7501,6 +7509,7 @@ on the system \"/user@host:\"." | |||
| 7501 | (save-excursion | 7509 | (save-excursion |
| 7502 | (set-buffer (if (bufferp f) f (org-get-agenda-file-buffer f))) | 7510 | (set-buffer (if (bufferp f) f (org-get-agenda-file-buffer f))) |
| 7503 | (if (bufferp f) (setq f (buffer-file-name (buffer-base-buffer f)))) | 7511 | (if (bufferp f) (setq f (buffer-file-name (buffer-base-buffer f)))) |
| 7512 | (setq f (expand-file-name f)) | ||
| 7504 | (save-excursion | 7513 | (save-excursion |
| 7505 | (save-restriction | 7514 | (save-restriction |
| 7506 | (widen) | 7515 | (widen) |
| @@ -7664,7 +7673,8 @@ operation has put the subtree." | |||
| 7664 | 'org-olpath-completing-read | 7673 | 'org-olpath-completing-read |
| 7665 | 'org-ido-completing-read)) | 7674 | 'org-ido-completing-read)) |
| 7666 | (extra (if org-refile-use-outline-path "/" "")) | 7675 | (extra (if org-refile-use-outline-path "/" "")) |
| 7667 | (filename (buffer-file-name (buffer-base-buffer cbuf))) | 7676 | (filename (expand-file-name |
| 7677 | (buffer-file-name (buffer-base-buffer cbuf)))) | ||
| 7668 | (tbl (mapcar | 7678 | (tbl (mapcar |
| 7669 | (lambda (x) | 7679 | (lambda (x) |
| 7670 | (if (not (equal filename (nth 1 x))) | 7680 | (if (not (equal filename (nth 1 x))) |
| @@ -9205,7 +9215,7 @@ only lines with a TODO keyword are included in the output." | |||
| 9205 | (if org-tags-match-list-sublevels | 9215 | (if org-tags-match-list-sublevels |
| 9206 | (make-string (1- level) ?.) "") | 9216 | (make-string (1- level) ?.) "") |
| 9207 | (org-get-heading)) | 9217 | (org-get-heading)) |
| 9208 | category tags-list) | 9218 | category (org-get-tags-at)) |
| 9209 | priority (org-get-priority txt)) | 9219 | priority (org-get-priority txt)) |
| 9210 | (goto-char lspos) | 9220 | (goto-char lspos) |
| 9211 | (setq marker (org-agenda-new-marker)) | 9221 | (setq marker (org-agenda-new-marker)) |
| @@ -11863,6 +11873,20 @@ Due to some yet unresolved reason, the global function | |||
| 11863 | "Switch-to: " nil t)) | 11873 | "Switch-to: " nil t)) |
| 11864 | (or enabled (iswitchb-mode -1)))))) | 11874 | (or enabled (iswitchb-mode -1)))))) |
| 11865 | 11875 | ||
| 11876 | ;;;###autoload | ||
| 11877 | (defun org-ido-switchb (&optional arg) | ||
| 11878 | "Use `org-ido-completing-read' to prompt for an Org buffer to switch to. | ||
| 11879 | With a prefix argument, restrict available to files. | ||
| 11880 | With two prefix arguments, restrict available buffers to agenda files." | ||
| 11881 | (interactive "P") | ||
| 11882 | (let ((blist (cond ((equal arg '(4)) (org-buffer-list 'files)) | ||
| 11883 | ((equal arg '(16)) (org-buffer-list 'agenda)) | ||
| 11884 | (t (org-buffer-list))))) | ||
| 11885 | (switch-to-buffer | ||
| 11886 | (org-ido-completing-read "Org buffer: " | ||
| 11887 | (mapcar 'buffer-name blist) | ||
| 11888 | nil t)))) | ||
| 11889 | |||
| 11866 | (defun org-buffer-list (&optional predicate exclude-tmp) | 11890 | (defun org-buffer-list (&optional predicate exclude-tmp) |
| 11867 | "Return a list of Org buffers. | 11891 | "Return a list of Org buffers. |
| 11868 | PREDICATE can be `export', `files' or `agenda'. | 11892 | PREDICATE can be `export', `files' or `agenda'. |