Преглед изворни кода

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.
Nicolas Goaziou пре 8 година
родитељ
комит
a7169be6b2
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 0 1
      lisp/org-ctags.el
  2. 2 2
      lisp/org.el

+ 0 - 1
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

+ 2 - 2
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))