eschulte / epresent

Presentations in Emacs -- based on Org-mode
183 stars 51 forks source link

org_re #73

Open dodona2 opened 1 year ago

dodona2 commented 1 year ago
Line: 411 
;; hide tags
    (when epresent-hide-tags
      (goto-char (point-min))
      (while (re-search-forward
              (org-re "^\\*+.*?\\([ \t]+:[[:alnum:]_@#%:]+:\\)[ \r\n]")
              nil t)
        (push (make-overlay (match-beginning 1) (match-end 1)) epresent-overlays)
        (overlay-put (car epresent-overlays) 'invisible 'epresent-hide)))

--> causes epresent.el: Warning: ‘org-re’ is an obsolete macro (as of 9.0); you can safely remove it.

--> however on removing
(org-re "^\\*+.*?\\([ \t]+:[[:alnum:]_@#%:]+:\\)[ \r\n]") --> causes all the bullets are missing

sellout commented 1 year ago

@dodona2 The deprecation message is certainly unclear – you can remove the call around the regeix. The regex is still necessary, but Emacs now supports that regex style directly. It previously (Emacs 23?) needed to have the [:alnum:] expanded before Emacs could parse it.