[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?
Yes.
> 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.
Stefan
- bug#17482: args-out-of-range when visiting foo.todo, Glenn Morris, 2014/05/13
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/13
- bug#17482: args-out-of-range when visiting foo.todo, Glenn Morris, 2014/05/13
- bug#17482: args-out-of-range when visiting foo.todo, Stefan Monnier, 2014/05/13
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/13
- bug#17482: args-out-of-range when visiting foo.todo,
Stefan Monnier <=
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stefan Monnier, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Glenn Morris, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Glenn Morris, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stefan Monnier, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stefan Monnier, 2014/05/14
- bug#17482: args-out-of-range when visiting foo.todo, Stephen Berman, 2014/05/23