test-org: Disambiguate tests for `org-end-of-line'.

This commit is contained in:
Nicolas Goaziou 2012-11-28 16:51:47 +01:00
parent 97508e72dd
commit f3a2515205
1 changed files with 3 additions and 3 deletions

View File

@ -458,20 +458,20 @@ http://article.gmane.org/gmane.emacs.orgmode/21459/"
(eolp))))
;; At an headline with special movement.
(should
(org-test-with-temp-text "* Headline :tag:\n"
(org-test-with-temp-text "* Headline1 :tag:\n"
(let ((org-special-ctrl-a/e t))
(and (progn (org-end-of-line) (looking-at " :tag:"))
(progn (org-end-of-line) (eolp))
(progn (org-end-of-line) (looking-at " :tag:"))))))
;; At an headline without special movement.
(should
(org-test-with-temp-text "* Headline :tag:\n"
(org-test-with-temp-text "* Headline2 :tag:\n"
(let ((org-special-ctrl-a/e nil))
(and (progn (org-end-of-line) (eolp))
(progn (org-end-of-line) (eolp))))))
;; At an headline, with reversed movement.
(should
(org-test-with-temp-text "* Headline :tag:\n"
(org-test-with-temp-text "* Headline3 :tag:\n"
(let ((org-special-ctrl-a/e 'reversed)
(this-command last-command))
(and (progn (org-end-of-line) (eolp))