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.
This commit is contained in:
Nicolas Goaziou 2016-10-19 15:31:10 +02:00
parent 13b3e426f4
commit a7169be6b2
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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))