From 25de94f3cc04026f52e5446230a154ee97a3adbc Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 25 Jul 2010 11:29:38 +0200 Subject: [PATCH] Take `org-plain-list-ordered-item-terminator' into consideration when cycling bullets. * org-list.el (org-cycle-list-bullet): Check `org-plain-list-ordered-item-terminator' before allowing 1. or 1) as valid bullets when cycling. --- lisp/org-list.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/org-list.el b/lisp/org-list.el index bad8cd617..b38702306 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -1055,7 +1055,11 @@ is an integer, 0 means `-', 1 means `+' etc. If WHICH is (looking-at "\\S-")) '("*")) ;; Description items cannot be numbered (unless (and bullet-rule-p - (org-at-description-p)) '("1." "1)")))) + (or (eq org-plain-list-ordered-item-terminator ?.) + (org-at-description-p))) '("1)")) + (unless (and bullet-rule-p + (or (eq org-plain-list-ordered-item-terminator ?\)) + (org-at-description-p))) '("1.")))) (len (length bullet-list)) (item-index (- len (length (member current bullet-list)))) (get-value (lambda (index) (nth (mod index len) bullet-list))) -- 2.11.4.GIT