Replace links with their descriptions in when generating the items for imenus and the refile interface. ---
lisp/ChangeLog | 4 ++++ lisp/org.el | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e63503a..ea6e60e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2008-07-25 James TD Smith <[EMAIL PROTECTED]> + * org.el (org-get-refile-targets): Replace links with their + descriptions + (org-imenu-get-tree): Replace links with their descriptions + * org-agenda.el (org-agenda-get-closed): show durations of clocked items as well as the start and end times. diff --git a/lisp/org.el b/lisp/org.el index 77a859b..cbce370 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7740,7 +7740,10 @@ on the system \"/[EMAIL PROTECTED]:\"." (while (re-search-forward descre nil t) (goto-char (point-at-bol)) (when (looking-at org-complex-heading-regexp) - (setq txt (match-string 4) + (setq txt (save-match-data + (replace-regexp-in-string + org-bracket-link-analytic-regexp "\\5" + (match-string 4))) re (concat "^" (regexp-quote (buffer-substring (match-beginning 1) (match-end 4))))) @@ -14470,6 +14473,9 @@ Show the heading too, if it is currently invisible." (looking-at org-complex-heading-regexp) (setq head (org-match-string-no-properties 4) m (org-imenu-new-marker)) + (setq head (replace-regexp-in-string + org-bracket-link-analytic-regexp + "\\5" head)) (org-add-props head nil 'org-imenu-marker m 'org-imenu t) (if (>= level last-level) (push (cons head m) (aref subs level)) _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode