From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Newsgroups: gmane.emacs.bugs Subject: bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers Date: Thu, 20 Nov 2014 22:04:47 +0100 Message-ID: <1416517487.1567.0@smtp.gmail.com> References: <87bno2t8at.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-XnIO1dDI29x3DoQtj1UM" X-Trace: ger.gmane.org 1416517533 9266 80.91.229.3 (20 Nov 2014 21:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 21:05:33 +0000 (UTC) Cc: 19112@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 22:05:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrYun-0007SD-Ke for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 22:05:21 +0100 Original-Received: from localhost ([::1]:37342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYum-00031J-MB for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 16:05:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYuc-0002zB-CY for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:05:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrYuU-0006iY-Qn for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:05:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYuU-0006i8-JD for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XrYuU-0000oZ-7K for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Nov 2014 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19112 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19112-submit@debbugs.gnu.org id=B19112.14165174973118 (code B ref 19112); Thu, 20 Nov 2014 21:05:02 +0000 Original-Received: (at 19112) by debbugs.gnu.org; 20 Nov 2014 21:04:57 +0000 Original-Received: from localhost ([127.0.0.1]:39917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrYuO-0000oD-0s for submit@debbugs.gnu.org; Thu, 20 Nov 2014 16:04:56 -0500 Original-Received: from mail-la0-f48.google.com ([209.85.215.48]:50784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrYuL-0000o3-6G for 19112@debbugs.gnu.org; Thu, 20 Nov 2014 16:04:54 -0500 Original-Received: by mail-la0-f48.google.com with SMTP id s18so3120937lam.21 for <19112@debbugs.gnu.org>; Thu, 20 Nov 2014 13:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version:content-type; bh=P6WaFLXaroho2MbgTm4BnkPyAAz6DKpLkP6BR5MzNjE=; b=nGQeF07ixaTftfXMTGFDSDUns5H5QPdtl5iQdOWPwdXKjmb8RIpmIiVfC8aWrbFO6T WBtekWgpj5BKAdaRIFUCiCJTJFTOpYRSTbHjljv8mjCYdNIFu76KCqM/3QzlbBkqakVu 0b0I6yxU5Xl9VerI5cwEhQPkq0tU5fJ1AqMY+IAdW4Cfl4quUBshh0kBc9JcOxzKgRFX cUnGAoZJDUgab1HyM4zTvdnG4j7O1zbNH1HUuWl6IgUco73R1ldIHGZp+wjOTPWRinEO wet6TAUxIPD8cdPe5zviOi+1q4IEtZXJISqy7O/OomonX8pcvOKOevLacaMa4Ysc5qSn dZhA== X-Received: by 10.152.87.67 with SMTP id v3mr4546laz.97.1416517492311; Thu, 20 Nov 2014 13:04:52 -0800 (PST) Original-Received: from [192.168.1.245] ([80.203.24.153]) by mx.google.com with ESMTPSA id z1sm762648lad.40.2014.11.20.13.04.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Nov 2014 13:04:51 -0800 (PST) In-Reply-To: <87bno2t8at.fsf@rosalinde.fritz.box> X-Mailer: geary/0.8.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96341 --=-XnIO1dDI29x3DoQtj1UM Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Yes, that's it. I noticed it in the 24.4 release notes, and wanted to check it out, so I typed `M-x todo-mode' to see what happens. -- Simen On Thu, Nov 20, 2014 at 12:34 PM, Stephen Berman=20 wrote: > On Wed, 19 Nov 2014 22:44:22 +0100 Simen Heggest=C3=B8yl=20 > wrote: >=20 >> Todo mode crashes when activated in an empty, file-less buffer. >>=20 >> 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'. >>=20 >> This should produce the following error message: >>=20 >> todo-mode: Wrong type argument: arrayp, nil >>=20 >> In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version=20 >> 3.14.4) >> of 2014-11-19 on x240 >> Repository revision: f5d77aafa9d59c4afb13d744e67a0e4daf3be31a >> Windowing system distributor `The X.Org Foundation', version=20 >> 11.0.11601901 >> System Description: Debian GNU/Linux testing (jessie) >=20 > 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=20 > 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=20 > how > to avoid the error. Thanks. >=20 > Steve Berman = --=-XnIO1dDI29x3DoQtj1UM Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Yes, that's it. I noticed it in the 24.4 release notes, and wanted to<= /div>
check it out, so I typed `M-x todo-mode' to see what happens.

-- Simen

On Thu, Nov 20, 2014 at 12:34 PM, S= tephen Berman <stephen.berman@gmx.net> wrote:
On Wed, 19 Nov 2014 22:44:22 +0100 Simen Heggest=C3=B8yl <simen= heg@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
= --=-XnIO1dDI29x3DoQtj1UM--