|
@@ -5357,7 +5357,7 @@ This extra caching is based on the following paper:
|
|
Pugh [Information Processing Letters] (1990) Slow optimally balanced
|
|
Pugh [Information Processing Letters] (1990) Slow optimally balanced
|
|
search strategies vs. cached fast uniformly balanced search
|
|
search strategies vs. cached fast uniformly balanced search
|
|
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
|
|
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
|
|
-
|
|
|
|
|
|
+
|
|
Also, see `org-element--cache-hash-left' and `org-element--cache-hash-right'.")
|
|
Also, see `org-element--cache-hash-left' and `org-element--cache-hash-right'.")
|
|
(defvar-local org-element--cache-hash-left nil
|
|
(defvar-local org-element--cache-hash-left nil
|
|
"Cached elements from `org-element--cache' for fast O(1) lookup.
|
|
"Cached elements from `org-element--cache' for fast O(1) lookup.
|
|
@@ -5714,7 +5714,7 @@ This extra caching is based on the following paper:
|
|
Pugh [Information Processing Letters] (1990) Slow optimally balanced
|
|
Pugh [Information Processing Letters] (1990) Slow optimally balanced
|
|
search strategies vs. cached fast uniformly balanced search
|
|
search strategies vs. cached fast uniformly balanced search
|
|
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
|
|
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
|
|
-
|
|
|
|
|
|
+
|
|
Also, see `org-element--cache-size'."
|
|
Also, see `org-element--cache-size'."
|
|
(interactive)
|
|
(interactive)
|
|
(message "%.2f%% of cache searches hashed, %.2f%% non-hashable."
|
|
(message "%.2f%% of cache searches hashed, %.2f%% non-hashable."
|
|
@@ -6307,7 +6307,7 @@ completing the request."
|
|
;; Consider scenario when DATA lays within
|
|
;; Consider scenario when DATA lays within
|
|
;; sensitive lines of PARENT that was found
|
|
;; sensitive lines of PARENT that was found
|
|
;; during phase 2. For example:
|
|
;; during phase 2. For example:
|
|
- ;;
|
|
|
|
|
|
+ ;;
|
|
;; #+ begin_quote
|
|
;; #+ begin_quote
|
|
;; Paragraph
|
|
;; Paragraph
|
|
;; #+end_quote
|
|
;; #+end_quote
|
|
@@ -7604,7 +7604,7 @@ the cache."
|
|
(move-start-to-next-match
|
|
(move-start-to-next-match
|
|
(if last-match next-re fail-re)))
|
|
(if last-match next-re fail-re)))
|
|
(when (and (or (not start) (eq (org-element-property :begin data) start))
|
|
(when (and (or (not start) (eq (org-element-property :begin data) start))
|
|
- (< (org-element-property :begin data) to-pos))
|
|
|
|
|
|
+ (< (org-element-property :begin data) to-pos))
|
|
;; Calculate where next possible element
|
|
;; Calculate where next possible element
|
|
;; starts and update START if needed.
|
|
;; starts and update START if needed.
|
|
(setq start (next-element-start))
|
|
(setq start (next-element-start))
|
|
@@ -7625,7 +7625,7 @@ the cache."
|
|
(when (or (not restrict-elements)
|
|
(when (or (not restrict-elements)
|
|
(memq (org-element-type data) restrict-elements))
|
|
(memq (org-element-type data) restrict-elements))
|
|
;; DATA matches restriction. FUNC may
|
|
;; DATA matches restriction. FUNC may
|
|
- ;;
|
|
|
|
|
|
+ ;;
|
|
;; Call FUNC. FUNC may move point.
|
|
;; Call FUNC. FUNC may move point.
|
|
(setq org-element-cache-map-continue-from nil)
|
|
(setq org-element-cache-map-continue-from nil)
|
|
(if org-element--cache-map-statistics
|
|
(if org-element--cache-map-statistics
|