hasu / notdeft

NotDeft note manager for Emacs
https://tero.hasu.is/notdeft/
168 stars 14 forks source link

Case-insensitive parsing of Org keywords #2

Closed kaushalmodi closed 6 years ago

kaushalmodi commented 6 years ago

Hello,

Can you please enable case-insensitive parsing of Org keywords?

From my earlier comment:

Yes, any #+TITLE keyword is parsed in a case sensitive manner, currently. I'm not sure if lowercase in-buffer setting keywords are exactly documented syntax for Org—haven't seen it stated explicitly in the docs.

Org actually parses all #+ keywords in case-insensitive fashion. There even was a commit few months back that showed the preference to use lower-case keywords. (I liked that very much and even have a little helper function to lower-case all keywords in the current Org document 😄 ).

hasu commented 6 years ago

I've pushed a commit to make the keyword parsing case insensitive during indexing.

Turns out this was a bug and not a feature request, since the parsing was already case insensitive on the Emacs Lisp side (didn't know it was the default for regexps), meaning that the parsing behavior was inconsistent.

Thank you for the bug report and for pointing out the preference to use lower-case keywords in Org.

kaushalmodi commented 6 years ago

Thank you! I confirm the fix!