diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 867139742..6a2d7fe85 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -897,14 +897,13 @@ (defun org--string-from-props (s property beg end) (cursor beg)) (while (setq beg (text-property-not-all beg end property nil s)) (let* ((next (next-single-property-change beg property s end)) - (props (text-properties-at beg s)) - (spec (plist-get props property)) + (spec (get-text-property beg property s)) (value (pcase property (`invisible - ;; If `invisible' property in PROPS means text is to - ;; be invisible, return 0. Otherwise return nil so - ;; as to resume search. + ;; If `invisible' property means text is to be + ;; invisible, return 0. Otherwise return nil so as + ;; to resume search. (and (or (eq t buffer-invisibility-spec) (assoc-string spec buffer-invisibility-spec)) 0))