From: Stephen Berman <stephen.berman@gmx.net>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 941a2e7: todo-mode: don't assume an ordering of tests
Date: Tue, 30 May 2017 21:52:03 +0200 [thread overview]
Message-ID: <877f0y9l7g.fsf@rosalinde> (raw)
In-Reply-To: <dxd1aq9x2y.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 30 May 2017 11:35:33 -0400")
On Tue, 30 May 2017 11:35:33 -0400 Glenn Morris <rgm@gnu.org> wrote:
> Stephen Berman wrote:
>
>> How did you run the tests such that you got prompted for a file
>
> make check
Hmm. I cannot reproduce the failure. I commented out your changes to
todo-mode-tests.el, deleted the .elc file, ran make check, and all the
tests in todo-mode-tests.el passed. Do you have any idea why our
results differ?
>> and what was the prompt?
>
> "Enter name of new todo file (TAB or SPC to see current names):"
>
> Ref: http://hydra.nixos.org/build/53544385
>
> Testing lisp/calendar/todo-mode-tests.el
> Running 3 tests (2017-05-29 22:44:07+0000)
> Enter name of new todo file (TAB or SPC to see current names): Test
> todo-test-item-highlighting backtrace:
> completing-read("Enter name of new todo file (TAB or SPC to see curr
> todo-read-file-name("Enter name of new todo file (TAB or SPC to see
> todo-add-file()
> todo-show()
This backtrace means that the variables todo-current-todo-file,
todo-global-current-todo-file, and todo-default-todo-file all evaluated
to nil. I don't see how that could happen with the test file, and when
I start Emacs with -Q, eval the test file, instrument todo-show, run ert
on the test todo-test-item-highlighting, and step through todo-show and
todo-check-file, I see that todo-default-todo-file gets assigned
todo-test-1.todo from the todo-resources directory as its value. So I
have no idea how this error could arise. And I also don't see how
adding the sexp `(todo-test-get-archive 2)' prevents it, since that just
displays the file todo-test-1.toda in todo-archive-mode (and that file
becomes the buffer-local value of todo-current-todo-file).
Can you reproduce the error, and if so, could you try debugging it? Or
if you don't have time for that, could you tell me why you used that
specific change to avoid the error? Maybe I'm overlooking something.
Steve Berman
next prev parent reply other threads:[~2017-05-30 19:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170530005055.14646.47570@vcs0.savannah.gnu.org>
[not found] ` <20170530005057.4720C20ACA@vcs0.savannah.gnu.org>
2017-05-30 8:58 ` master 941a2e7: todo-mode: don't assume an ordering of tests Stephen Berman
2017-05-30 15:35 ` Glenn Morris
2017-05-30 19:52 ` Stephen Berman [this message]
2017-05-31 0:48 ` Glenn Morris
2017-05-31 14:18 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877f0y9l7g.fsf@rosalinde \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.