From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Undesired interactive call of major mode command Date: Wed, 26 Nov 2014 14:39:02 +0100 Message-ID: <8738966pzd.fsf@rosalinde.fritz.box> 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 1417009190 12088 80.91.229.3 (26 Nov 2014 13:39:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 13:39:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 26 14:39:42 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 1Xtcoo-0001Qn-65 for ged-emacs-devel@m.gmane.org; Wed, 26 Nov 2014 14:39:42 +0100 Original-Received: from localhost ([::1]:33946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtcon-0001wP-Qf for ged-emacs-devel@m.gmane.org; Wed, 26 Nov 2014 08:39:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtcoT-0001np-GQ for emacs-devel@gnu.org; Wed, 26 Nov 2014 08:39:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtcoL-0005RG-MO for emacs-devel@gnu.org; Wed, 26 Nov 2014 08:39:21 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:58181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtcoK-0005R2-ST for emacs-devel@gnu.org; Wed, 26 Nov 2014 08:39:13 -0500 Original-Received: from rosalinde.fritz.box ([89.245.127.251]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LsgvV-1Y4BSy3c9x-012Gxg; Wed, 26 Nov 2014 14:39:05 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 25 Nov 2014 21:16:04 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:tyRvpnNO6mn8n2LHEkYKCORAQJw4m0469+drl0pA6wXRkTSwseZ Inw4dIocckvhKHibd1ZU4tIRhpDS/y8INyJzWafLRHL9AtLvkUeCz7frsJd/68GQpGtVZcL Vq2X9Mslt59+wHAjQe2ijTb1dNsiibWFQGljcakdeAU3JNZ4qX4w/+1u5V8d6Xb6K6sTo5E m6utY3hJxHCJq1YfCmRcg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:178296 Archived-At: On Tue, 25 Nov 2014 21:16:04 -0500 Stefan Monnier wrote: >>> 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. Ok, then I'll just go with the minimal fix of displaying an informative message on interactively calling todo-mode. Thanks for the feedback. Steve Berman