From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: FAILED test-org/end-of-line Date: Tue, 27 Nov 2012 16:47:08 -0500 Message-ID: <5875.1354052828@alphaville> References: <87boei51gu.fsf@Rainer.invalid> <5557.1354050924@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdT7i-00078s-JA for emacs-orgmode@gnu.org; Tue, 27 Nov 2012 16:55:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdT7d-0004OM-L0 for emacs-orgmode@gnu.org; Tue, 27 Nov 2012 16:55:22 -0500 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:15176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdT7d-0004N5-Ev for emacs-orgmode@gnu.org; Tue, 27 Nov 2012 16:55:17 -0500 In-Reply-To: Message from Nick Dokos of "Tue, 27 Nov 2012 16:15:24 EST." <5557.1354050924@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: Achim Gratz , emacs-orgmode@gnu.org Nick Dokos wrote: > Achim Gratz wrote: > > >=20 > > This test is failing again in the latest pre-test version of the pending > > Emacs=C2=A024.3 release. This time it fails on Linux, it used to fail be= > fore > > in Emacs=C2=A023.3 on Win7. > >=20 > >=20 > > Ugh - one of "those"... > Adding a \n at the end of the headline lets the test pass I think: ,---- | $ emacs -batch -l ~/src/minimal.emacs/minimal.org-test.el | Loading /home/nick/src/emacs/org/org-mode/lisp/org-loaddefs.el (source)... | Loading /home/nick/src/emacs/org/org-mode/testing/org-test.el (source)... | `labels' is an obsolete macro (as of 24.3); use `cl-labels' instead. | `flet' is an obsolete macro (as of 24.3); Use either `cl-flet' or `cl-letf'. | `flet' is an obsolete macro (as of 24.3); Use either `cl-flet' or `cl-letf'. | `flet' is an obsolete macro (as of 24.3); Use either `cl-flet' or `cl-letf'. | OVERVIEW | FOO | 18 | Ran 1 tests, 1 results were as expected `---- Nick PS. FOO and 18 are debugging things - see the new minimal.org-test.el file below: --8<---------------cut here---------------start------------->8--- ;;; -*- mode: emacs-lisp -*- ;;; constant part (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/contrib/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) (require 'org) (setq debug-on-error t) (setq debug-on-quit t) (setq eval-expression-print-length nil) (setq eval-expression-print-level nil) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/testing")) (load-library "org-test") (ert-deftest test-org/end-of-line () "Test `org-end-of-line' specifications." ;; At an headline without special movement. (should (org-test-with-temp-text "* Headline2 :tag:\n" (let ((org-special-ctrl-a/e nil)) (and (progn (message "FOO") (org-end-of-line) (message (format "%d" (point))) (eolp)) (progn (org-end-of-line) (eolp)))))) ) (ert 'test-org/end-of-line) --8<---------------cut here---------------end--------------->8--- Without the \n, (point) was returning 1 in the batch case (?!?)