unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
@ 2014-11-19 21:44 Simen Heggestøyl
  2014-11-20 11:34 ` Stephen Berman
  2014-11-26 22:46 ` Stephen Berman
  0 siblings, 2 replies; 5+ messages in thread
From: Simen Heggestøyl @ 2014-11-19 21:44 UTC (permalink / raw)
  To: 19112; +Cc: Simen Heggestøyl

[-- Attachment #1: Type: text/plain, Size: 3049 bytes --]

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)

Configured using:
 `configure --without-makeinfo'

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT
ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Todo

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  visual-line-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
todo-mode: Wrong type argument: arrayp, nil

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
        rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse 
rfc2231
        mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 
ietf-drums
        mm-util help-fns mail-prsvr mail-utils todo-mode cl-loaddefs 
cl-lib
        diary-lib diary-loaddefs cal-menu easymenu calendar cal-loaddefs
        time-date tooltip eldoc electric uniquify ediff-hook vc-hooks
        lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image 
regexp-opt
        fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode 
register
        page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
        font-lock syntax facemenu font-core frame cham georgian 
utf-8-lang
        misc-lang vietnamese tibetan thai tai-viet lao korean japanese 
hebrew
        greek romanian slovak czech european ethiopic indian cyrillic 
chinese
        case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 
nadvice
        loaddefs button faces cus-face macroexp files text-properties 
overlay
        sha1 md5 base64 format env code-pages mule custom widget
        hashtable-print-readable backquote make-network-process dbusbind
        gfilenotify dynamic-setting system-font-setting 
font-render-setting
        move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 88280 6384)
 (symbols 48 19439 0)
 (miscs 40 47 110)
 (strings 32 15157 4094)
 (string-bytes 1 473901)
 (vectors 16 10700)
 (vector-slots 8 408232 3709)
 (floats 8 71 76)
 (intervals 56 196 0)
 (buffers 976 11)
 (heap 1024 33888 1101))



[-- Attachment #2: Type: text/html, Size: 4576 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
  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
  2014-11-20 21:04   ` Simen Heggestøyl
  2014-11-26 22:46 ` Stephen Berman
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2014-11-20 11:34 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: 19112

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
  2014-11-20 11:34 ` Stephen Berman
@ 2014-11-20 21:04   ` Simen Heggestøyl
  2014-11-21 10:35     ` Stephen Berman
  0 siblings, 1 reply; 5+ messages in thread
From: Simen Heggestøyl @ 2014-11-20 21:04 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 19112

[-- Attachment #1: Type: text/plain, Size: 1941 bytes --]

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 
<stephen.berman@gmx.net> wrote:
> 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

[-- Attachment #2: Type: text/html, Size: 2013 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
  2014-11-20 21:04   ` Simen Heggestøyl
@ 2014-11-21 10:35     ` Stephen Berman
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2014-11-21 10:35 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: 19112

On Thu, 20 Nov 2014 22:04:47 +0100 Simen Heggestøyl <simenheg@gmail.com> wrote:

> 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.

Ok.  This is a reaction I admit I (probably foolishly) didn't
anticipate.  If you are still interested in trying out Todo mode, please
type `M-x todo-show'.  In future, and for others to avoid the problem
you encountered, it may be best to just make interactively invoking
`todo-mode' call `todo-show', but I have to think about it a little
more.

Steve Berman





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19112: 25.0.50; todo-mode: error on empty, file-less buffers
  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
@ 2014-11-26 22:46 ` Stephen Berman
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2014-11-26 22:46 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: 19112-done

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

I committed a fix to the emacs-24 branch: now if todo-mode is called
interactively, there's no error and a message is displayed saying to
call todo-show to enter Todo mode.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-26 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2014-11-20 21:04   ` Simen Heggestøyl
2014-11-21 10:35     ` Stephen Berman
2014-11-26 22:46 ` Stephen Berman

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).