I am doing code study of org-mode. And in most places, org-mode uses regexps defined in org.el. Like, org-todo-line-regexp, org-not-done-regexp,org-deadline-regexp,org-scheduled-regexp and org-mode has lot more regexp variables.

What surprises me is that, most of these regexps are defvar-ed with their start time values as nil.

where to find the regex literals for these variables?


You should learn to use rgrep. It looks like regexps are set in org-set-regexps-and-options.

| improve this answer | |
  • Could you explain how rgrep pertains to your answer? – user2699 Mar 3 '15 at 21:10
  • @user2699, just point at org-todo-line-regexp and call rgrep. You'll find all references to it in the source. – abo-abo Mar 3 '15 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.