|
@@ -174,12 +174,12 @@
|
|
|
(let ((org-plain-list-ordered-item-terminator 41))
|
|
|
(org-cycle-list-bullet)
|
|
|
(buffer-string)))))
|
|
|
- ;; When `org-alphabetical-lists' is non-nil, cycle to alpha bullets.
|
|
|
+ ;; When `org-list-allow-alphabetical' is non-nil, cycle to alpha bullets.
|
|
|
(should
|
|
|
(equal "a. item"
|
|
|
(org-test-with-temp-text "1) item"
|
|
|
(let ((org-plain-list-ordered-item-terminator t)
|
|
|
- (org-alphabetical-lists t))
|
|
|
+ (org-list-allow-alphabetical t))
|
|
|
(org-cycle-list-bullet)
|
|
|
(buffer-string)))))
|
|
|
;; Do not cycle to alpha bullets when list has more than 26
|
|
@@ -214,7 +214,7 @@
|
|
|
26) item 26
|
|
|
27) item 27"
|
|
|
(let ((org-plain-list-ordered-item-terminator t)
|
|
|
- (org-alphabetical-lists t))
|
|
|
+ (org-list-allow-alphabetical t))
|
|
|
(org-cycle-list-bullet)
|
|
|
(buffer-substring (point) (line-end-position)))))))
|
|
|
|
|
@@ -482,7 +482,7 @@
|
|
|
"- item 2\n- item 1\n - sub-item 1")))
|
|
|
;; Preserve blank lines.
|
|
|
(org-test-with-temp-text "- item 1\n\n- item 2"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)) (org-move-item-down))
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)) (org-move-item-down))
|
|
|
(should (equal (buffer-string) "- item 2\n\n- item 1")))
|
|
|
;; Error when trying to move the last item...
|
|
|
(org-test-with-temp-text "- item 1\n- item 2"
|
|
@@ -567,7 +567,7 @@
|
|
|
;; Preserve blank lines.
|
|
|
(org-test-with-temp-text "- item 1\n\n- item 2"
|
|
|
(search-forward "- item 2")
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)) (org-move-item-up))
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)) (org-move-item-up))
|
|
|
(should (equal (buffer-string) "- item 2\n\n- item 1")))
|
|
|
;; Error when trying to move the first item...
|
|
|
(org-test-with-temp-text "- item 1\n- item 2"
|
|
@@ -631,10 +631,10 @@
|
|
|
;; Blank lines specifications.
|
|
|
;;
|
|
|
;; Non-nil `org-blank-before-new-entry': insert a blank line, unless
|
|
|
- ;; `org-empty-line-terminates-plain-lists' is non-nil.
|
|
|
+ ;; `org-list-empty-line-terminates-plain-lists' is non-nil.
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . t))))
|
|
|
(end-of-line)
|
|
|
(org-insert-item)
|
|
@@ -642,7 +642,7 @@
|
|
|
(looking-at "$"))))
|
|
|
(should-not
|
|
|
(org-test-with-temp-text "- a"
|
|
|
- (let ((org-empty-line-terminates-plain-lists t)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists t)
|
|
|
(org-blank-before-new-entry '((plain-list-item . t))))
|
|
|
(end-of-line)
|
|
|
(org-insert-item)
|
|
@@ -651,7 +651,7 @@
|
|
|
;; Nil `org-blank-before-new-entry': do not insert a blank line.
|
|
|
(should-not
|
|
|
(org-test-with-temp-text "- a"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . nil))))
|
|
|
(end-of-line)
|
|
|
(org-insert-item)
|
|
@@ -661,7 +661,7 @@
|
|
|
;; line already in the sole item, do not insert one.
|
|
|
(should-not
|
|
|
(org-test-with-temp-text "- a"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(end-of-line)
|
|
|
(org-insert-item)
|
|
@@ -671,7 +671,7 @@
|
|
|
;; line in the sole item, insert another one.
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a\n\n b"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(goto-char (point-max))
|
|
|
(org-insert-item)
|
|
@@ -681,7 +681,7 @@
|
|
|
;; a blank line, preserve it.
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a\n\n"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(goto-char (point-max))
|
|
|
(org-insert-item)
|
|
@@ -691,7 +691,7 @@
|
|
|
;; are already separated by blank lines, insert one.
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a\n\n- b"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(goto-char (point-max))
|
|
|
(org-insert-item)
|
|
@@ -699,14 +699,14 @@
|
|
|
(looking-at "$"))))
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a\n\n- b"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(org-insert-item)
|
|
|
(forward-line)
|
|
|
(looking-at "$"))))
|
|
|
(should
|
|
|
(org-test-with-temp-text "- a\n #+BEGIN_EXAMPLE\n\n x\n #+END_EXAMPLE"
|
|
|
- (let ((org-empty-line-terminates-plain-lists nil)
|
|
|
+ (let ((org-list-empty-line-terminates-plain-lists nil)
|
|
|
(org-blank-before-new-entry '((plain-list-item . auto))))
|
|
|
(goto-char (point-max))
|
|
|
(org-insert-item)
|