Browse Source

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.
Nicolas Goaziou 10 years ago
parent
commit
25de94f3cc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lisp/org-list.el

+ 5 - 1
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)))