From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#17482: args-out-of-range when visiting foo.todo Date: Wed, 14 May 2014 21:57:04 +0200 Message-ID: <87bnv0xhf3.fsf@rosalinde.fritz.box> References: <87zjilzn73.fsf@rosalinde.fritz.box> <87r43xz4ts.fsf@rosalinde.fritz.box> <87lhu4xup7.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400097507 15994 80.91.229.3 (14 May 2014 19:58:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2014 19:58:27 +0000 (UTC) Cc: 17482@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 14 21:58:19 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 1WkfJi-0006FY-LN for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 May 2014 21:58:18 +0200 Original-Received: from localhost ([::1]:54110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfJi-0004AP-92 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 May 2014 15:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfJa-00049F-36 for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 15:58:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkfJU-0001GM-3d for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 15:58:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfJU-0001GI-0F for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 15:58:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WkfJS-0002hA-Ia for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 15:58:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 May 2014 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17482-submit@debbugs.gnu.org id=B17482.140009747110335 (code B ref 17482); Wed, 14 May 2014 19:58:02 +0000 Original-Received: (at 17482) by debbugs.gnu.org; 14 May 2014 19:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:34870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkfJE-0002gb-Rq for submit@debbugs.gnu.org; Wed, 14 May 2014 15:57:49 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:52099) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkfJA-0002gG-S3 for 17482@debbugs.gnu.org; Wed, 14 May 2014 15:57:46 -0400 Original-Received: from rosalinde.fritz.box ([89.245.107.238]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M0PdN-1X54yT3DFF-00uYV3; Wed, 14 May 2014 21:57:36 +0200 In-Reply-To: (Glenn Morris's message of "Wed, 14 May 2014 13:46:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux) X-Provags-ID: V03:K0:ZuC/PY4smVxCQQUXo+xMNST6jIIMs9k7ICnLoPlM3NSQW5A2kMc 2r2djYawnKz3oIazQEQFcPXumMoLPu2UKu18rboPbUsMYNK0APjQL7WGxTjABeOCi79PLY5 nDaU0FJKZOeLHNn7LtxOB8o9XK2F9D/FTlmFXABasvmb6t4aeKgjOBPyyTt1FQhPluxgJEp ZSGnx2QH3e9sxOgUTMmBA== 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:89103 Archived-At: On Wed, 14 May 2014 13:46:33 -0400 Glenn Morris wrote: > Stefan Monnier wrote: > >> Maybe a quick way to "reach" the design goal is to wrap the body of >> todo-mode in a `with-demoted-errors'. > > It's better, but I think it's still not great if I visit blah.todo and > get "args-out-of-range" as a message rather than an error. I agree. Moreover, if blah.todo is not empty but not a valid Todo file, visiting it will raise a different error from a different part of the code, so it would be necessary to have multiple uses of `with-demoted-errors'. And there's still the issue of why *.todo files not in `todo-directory' should be in Todo mode. And the only sensible answer is: they shouldn't be. So I am convinced that todo-mode should not use auto-mode-alist: it's not needed and it only causes problems. I somehow became blinded by the idea that it's nice to be able to visit a todo-mode file with `find-file' or from Dired and have it be in todo-mode and display properly, but this was just a mistake and now I've seen the light. So unless there's a really good reason not to, I'll go ahead and excise the use of auto-mode-alist; I'll post a patch for review before committing. Steve Berman