[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17482: args-out-of-range when visiting foo.todo

From: Stefan Monnier
Subject: bug#17482: args-out-of-range when visiting foo.todo
Date: Tue, 13 May 2014 23:22:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> Are you saying todo-mode.el should keep using auto-mode-alist in the
> standard way?


> If so, then there are basically two cases to handle:

> (i) Trying to create a file foo.todo within Emacs but outside of Todo
> mode, e.g. with `M-x find-file foo.todo'.  It's no problem to make this
> raise an error and tell the user to add a new file in Todo mode, as part
> of my patch did; is that failing gracefully enough?

Why do you need to signal an error?

For me the driving design should be that code that doesn't use todo-mode
commands should be able to find-file any file with a ".todo" extension,
make changes to it via things like delete-region and insert and then
save the file.  And all this without errors.

As soon as the user actually uses a todo-mode command, you can signal
any error you like, of course.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]