GNU bug report logs -
#17482
args-out-of-range when visiting foo.todo
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Tue, 13 May 2014 06:23:02 UTC
Severity: important
Found in version 24.3.91
Done: Stephen Berman <stephen.berman <at> gmx.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> 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
This bug report was last modified 11 years and 59 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.