From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Undesired interactive call of major mode command Date: Tue, 25 Nov 2014 21:16:04 -0500 Message-ID: References: <87lhn3gvq8.fsf@rosalinde.fritz.box> <87ppceop33.fsf@rosalinde.fritz.box> <87oarvt01y.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416968208 29526 80.91.229.3 (26 Nov 2014 02:16:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 02:16:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 26 03:16:41 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XtS9p-0007jb-4A for ged-emacs-devel@m.gmane.org; Wed, 26 Nov 2014 03:16:41 +0100 Original-Received: from localhost ([::1]:60182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtS9o-00016N-Cm for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2014 21:16:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtS9T-00015B-At for emacs-devel@gnu.org; Tue, 25 Nov 2014 21:16:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtS9L-0005KH-RZ for emacs-devel@gnu.org; Tue, 25 Nov 2014 21:16:19 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:52307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtS9L-0005Jz-OZ for emacs-devel@gnu.org; Tue, 25 Nov 2014 21:16:11 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id sAQ2G40C003680; Tue, 25 Nov 2014 21:16:04 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8E0C7653E; Tue, 25 Nov 2014 21:16:04 -0500 (EST) In-Reply-To: <87oarvt01y.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Tue, 25 Nov 2014 22:58:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5136=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5136> : inlines <1561> : streams <1348701> : uri <1836153> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178284 Archived-At: >> Of course, an alternative might be to move some of the code outside of >> todo-mode to some other function. > Sorry, I don't follow you; what code? Sorry, I don't follow myself either. I think I was talking about the previous problem (the "Invalid or missing todo-categories sexp"), and mistakenly placed it after this text. Regarding the problem of running todo-mode commands in an empty buffer, I think that signaling a clean error when running a command in a wrongly-formatted buffer is OK. Stefan