瀏覽代碼

Small optimization

* lisp/org.el (org-find-property): Small optimization.

Since VALUE is included in the regexp, it doesn't need to be found
again with `org-entry-get'.  However, we still need to make sure match
really is a node property.
Nicolas Goaziou 10 年之前
父節點
當前提交
33e2e375df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -16341,7 +16341,7 @@ part of the buffer."
 	  (re (org-re-property property nil (not value) value)))
       (catch 'exit
 	(while (re-search-forward re nil t)
-	  (when (if value (equal value (org-entry-get (point) property nil t))
+	  (when (if value (org-at-property-p)
 		  (org-entry-get (point) property nil t))
 	    (throw 'exit (progn (org-back-to-heading t) (point)))))))))