diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-10-19 15:31:10 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-10-19 15:31:10 +0200 |
commit | a7169be6b25f352fb6b0a8aa2eca86b9f99cb4b6 (patch) | |
tree | 51af5d923a96c149a647886a883650862e8626f7 | |
parent | 13b3e426f48112050dec4ff10e91c5780ab5ef33 (diff) | |
download | org-mode-a7169be6b25f352fb6b0a8aa2eca86b9f99cb4b6.tar.gz |
Remove unnecessary calls to `org-update-radio-target-regexp'
* lisp/org-ctags.el (org-ctags-append-topic): Remove call to
`org-update-radio-target-regexp' since topic uses regular targets.
* lisp/org.el (org-ctrl-c-ctrl-c): Do not update radio targets when
point is on a target.
-rw-r--r-- | lisp/org-ctags.el | 1 | ||||
-rw-r--r-- | lisp/org.el | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lisp/org-ctags.el b/lisp/org-ctags.el index c497f30..3c63af0 100644 --- a/lisp/org-ctags.el +++ b/lisp/org-ctags.el @@ -413,7 +413,6 @@ the heading a destination for the tag `NAME'." (insert (org-ctags-string-search-and-replace "%t" (capitalize name) org-ctags-new-topic-template)) (backward-char 4) - (org-update-radio-target-regexp) (end-of-line) (forward-line 2) (when narrowp diff --git a/lisp/org.el b/lisp/org.el index aaa07cc..074f5b7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21119,7 +21119,7 @@ This command does many different things, depending on context: ;; element or object containing it. ((bold code entity export-snippet inline-babel-call inline-src-block italic latex-fragment line-break macro strike-through subscript - superscript underline verbatim) + superscript target underline verbatim) (setq context (org-element-lineage context '(paragraph radio-target table-cell verse-block))) @@ -21228,7 +21228,7 @@ This command does many different things, depending on context: (save-excursion (goto-char beginm) (org-list-send-list 'maybe)))) ((or `property-drawer `node-property) (call-interactively #'org-property-action)) - ((or `radio-target `target) + (`radio-target (call-interactively #'org-update-radio-target-regexp)) (`statistics-cookie (call-interactively #'org-update-statistics-cookies)) |