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#14688: 24.3; todo-show errors: wrong-type-argument and file-error Date: Mon, 24 Jun 2013 21:11:10 +0200 Message-ID: <87li5zcoj5.fsf@rosalinde.fritz.box> References: <877ghk79o3.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372101134 9070 80.91.229.3 (24 Jun 2013 19:12:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 19:12:14 +0000 (UTC) Cc: 14688@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 24 21:12:11 2013 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 1UrCBP-0005ia-De for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 21:12:11 +0200 Original-Received: from localhost ([::1]:35788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCBO-0003cN-Vn for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 15:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCBJ-0003Yq-0l for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 15:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrCBG-0004Dq-GY for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 15:12:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCBG-0004DZ-D7 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrCBF-0008EV-Mt for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 15:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2013 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14688-submit@debbugs.gnu.org id=B14688.137210108631588 (code B ref 14688); Mon, 24 Jun 2013 19:12:01 +0000 Original-Received: (at 14688) by debbugs.gnu.org; 24 Jun 2013 19:11:26 +0000 Original-Received: from localhost ([127.0.0.1]:39031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrCAf-0008DO-4j for submit@debbugs.gnu.org; Mon, 24 Jun 2013 15:11:25 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58767) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrCAc-0008D8-CN for 14688@debbugs.gnu.org; Mon, 24 Jun 2013 15:11:23 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Ly8b5-1UEvKL06zN-015aqh for <14688@debbugs.gnu.org>; Mon, 24 Jun 2013 21:11:16 +0200 Original-Received: (qmail invoked by alias); 24 Jun 2013 19:11:12 -0000 Original-Received: from i59F54452.versanet.de (EHLO rosalinde.fritz.box) [89.245.68.82] by mail.gmx.net (mp017) with SMTP; 24 Jun 2013 21:11:12 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19dKXUC76dd5Zb2xHzHCLFv11cevDcRBUvyjv8i8I BNFtpj/m8gULpM In-Reply-To: (Leo Liu's message of "Mon, 24 Jun 2013 09:25:39 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 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:75527 Archived-At: On Mon, 24 Jun 2013 09:25:39 +0800 Leo Liu wrote: > On 2013-06-24 06:18 +0800, Stephen Berman wrote: >> The patch fixes some other problems beside those you reported, but which >> arise similarly. I found them when I tried to reproduce your recipe. >> When I do exactly the above four steps in your recipe, I actually don't >> get the errors you reported and the category is displayed normally. >> However, if between steps 3 and 4 of your recipe I kill the buffer >> visiting the todo file, then I do get the errors. But if I don't kill >> the buffer and also don't save it before trying to use other Todo mode >> commands, other problems arise. The patch tries to avoid these problems >> as well as the ones you reported. > > The patch seems to work well. Thanks. Thanks for checking. However, I'm convinced that the problem is more pervasive, and rather than tacking similar patches to each place in the code it can arise, I'd like to see if I can modularize the fix at least to some extent. This may take a bit of time. In the mean time, I would suggest that, if you want to use the package more (BTW, thank you very much for trying it out), you should avoid deleting todo files while the library is loaded (there's no problem deleting them before loading the library). I don't think that should cause any great inconvenience or problem (or if it does, then that would indicate another bug, which it would be good to find out about); at least I never had the need to do that in all the time I was developing the package (which is why I didn't think to try and prevent the problem). If I can't come up with a better solution in a reasonably short time, I'll fall back to a piecemeal approach, starting with the patch I posted. Thanks again for testing! Steve Berman