summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-04-26 14:13:24 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2013-04-26 14:13:24 +0200
commit73b7f3192c6a1ae5cd31636a3b1b22e036717fbb (patch)
treea67e96857c98ed2c55e56f2a454543bb2037f2d7
parent5efd7311e88ca001361136d03fa14e632bd2cac3 (diff)
downloadorg-mode-73b7f3192c6a1ae5cd31636a3b1b22e036717fbb.tar.gz
org-list: Properly update `org-list-allow-alphabetical'
* lisp/org-list.el (org-list-allow-alphabetical): Properly update `org-list-allow-alphabetical' when changed after org.el has been loaded.
-rw-r--r--lisp/org-list.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 80ccc16..86afe11 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -221,12 +221,23 @@ Valid values are ?. and ?\). To get both terminators, use t."
'org-list-allow-alphabetical "24.4") ; Since 8.0
(defcustom org-list-allow-alphabetical nil
"Non-nil means single character alphabetical bullets are allowed.
+
Both uppercase and lowercase are handled. Lists with more than
26 items will fallback to standard numbering. Alphabetical
-counters like \"[@c]\" will be recognized."
+counters like \"[@c]\" will be recognized.
+
+This variable needs to be set before org.el is loaded. If you
+need to make a change while Emacs is running, use the customize
+interface or run the following code, where VALUE stands for the
+new value of the variable, after updating it:
+
+ \(when (featurep 'org-element) (load \"org-element\" t t))"
:group 'org-plain-lists
:version "24.1"
- :type 'boolean)
+ :type 'boolean
+ :set (lambda (var val)
+ (when (featurep 'org-element) (load "org-element" t t))
+ (set var val)))
(defcustom org-list-two-spaces-after-bullet-regexp nil
"A regular expression matching bullets that should have 2 spaces after them.