unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: 19112@debbugs.gnu.org
Subject: bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
Date: Thu, 20 Nov 2014 12:34:18 +0100	[thread overview]
Message-ID: <87bno2t8at.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <1416433462.24335.0@smtp.gmail.com> ("Simen \=\?utf-8\?Q\?Heggest\?\= \=\?utf-8\?Q\?\=C3\=B8yl\=22's\?\= message of "Wed, 19 Nov 2014 22:44:22 +0100")

On Wed, 19 Nov 2014 22:44:22 +0100 Simen Heggestøyl <simenheg@gmail.com> wrote:

> Todo mode crashes when activated in an empty, file-less buffer.
>
> Reproduced by the following recipe from Emacs -Q:
> 1. Switch to a new buffer, so that it's empty, and not connected to
> a file.
> 2. Run `M-x todo-mode'.
>
> This should produce the following error message:
>
> todo-mode: Wrong type argument: arrayp, nil
>
> In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.4)
> of 2014-11-19 on x240
> Repository revision: f5d77aafa9d59c4afb13d744e67a0e4daf3be31a
> Windowing system distributor `The X.Org Foundation', version 11.0.11601901
> System Description: Debian GNU/Linux testing (jessie)

Thanks for the report.  Before I try to fix this, I'd like to know why
you carried out the above recipe: did you just happen to discover that
Emacs has this package and wonder what it is and so just decided to
invoke todo-mode in an empty buffer and see what happens?  The reason
I'm asking is that `M-x todo-mode' is not one of the documented entry
points, and in normal operation of Todo mode it should never be
necessary to call todo-mode.  Moreover, most of Todo mode is not
designed to work with non-file buffers; there are exceptions, but they
are (intended to be) available only after you've added at least one todo
file, by typing `M-x todo-show', as documented (both in the Commentary
of the source code and in the Todo Mode Info manual).  So knowing why
you typed `M-x todo-mode' on an empty buffer will help me to decide how
to avoid the error.  Thanks.

Steve Berman





  reply	other threads:[~2014-11-20 11:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19 21:44 bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers Simen Heggestøyl
2014-11-20 11:34 ` Stephen Berman [this message]
2014-11-20 21:04   ` Simen Heggestøyl
2014-11-21 10:35     ` Stephen Berman
2014-11-26 22:46 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bno2t8at.fsf@rosalinde.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=19112@debbugs.gnu.org \
    --cc=simenheg@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).