From cd70915e26a0708cae4422f4d837d95207a8bdc5 Mon Sep 17 00:00:00 2001 From: James TD Smith Date: Thu, 7 May 2009 02:31:08 +0100 Subject: [PATCH] Add an option to sort tags automatically. --- lisp/ChangeLog | 19 ++++++++++++++++++- lisp/org.el | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d14932ebb..f758b20d5 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -307,6 +307,23 @@ * org-exp.el (org-export-format-source-code-or-example): Fix bad line numbering when exporting examples in HTML. +2009-07-12 James TD Smith + + * org-colview.el (org-format-time-period): Formats a time in + fractional days as days, hours, mins, seconds. + (org-columns-display-here): Add special handling for SINCE and + SINCE_IA to format for display. + + * org.el (org-time-since): Add a function to get the time since an + org timestamp. + (org-entry-properties): Add two new special properties: SINCE and + SINCE_IA. These give the time since any active or inactive + timestamp in an entry. + (org-special-properties): Add SINCE, SINCE_IA. + (org-tags-sort-function): Add custom declaration for tags + sorting function. + (org-set-tags): Sort tags if org-tags-sort-function is set + 2009-07-08 Carsten Dominik * org-clock.el (org-clock-goto): Find hidden headlines as well. @@ -870,7 +887,7 @@ `org-export-push-to-kill-ring'. * org-exp.el (org-export-show-temporary-export-buffer): New - option. + option. * org-latex.el (org-export-as-latex): Use `org-export-show-temporary-export-buffer'. diff --git a/lisp/org.el b/lisp/org.el index c642209a2..c780e9b04 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11014,7 +11014,7 @@ With prefix ARG, realign all tags in headings in the current buffer." org-tags-sort-function) ":"))) (if (string-match "\\`[\t ]*\\'" tags) - (setq tags "") + (setq tags "") (unless (string-match ":$" tags) (setq tags (concat tags ":"))) (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) -- 2.11.4.GIT