emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] parsing options


From: Eric Abrahamsen
Subject: [O] parsing options
Date: Thu, 28 Jul 2011 11:24:20 -0700
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Is there a generic function for parsing options lines at the top of a
file? I'd like to use some custom lines to set certain file-specific
variables, and haven't quite figured out the best way to do that.

It looks like org-set-regexps-and-options does that when you open a new
file, but that's a bear of a function, and doesn't provide for setting
your own options (or at least doesn't appear to, my eyes crossed while
reading it).

Is there any smaller function available for our own minor modes or use
cases? Should I just use regexp search? If there isn't anything like
this, would one be useful (something that either found an option value
or returned a default, or found an alist of option values, or found an
alist of values for options matching a regexp, etc)?

Thanks,
Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]