From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Ordering of command completions Date: Mon, 8 Dec 2014 00:53:57 +0000 Message-ID: References: <87d27vicq7.fsf@igel.home> <87egsbt8td.fsf@wanadoo.es> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c23dbc82821b0509a9dc02 X-Trace: ger.gmane.org 1418000061 30444 80.91.229.3 (8 Dec 2014 00:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 00:54:21 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 08 01:54:14 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 1Xxmaa-0003U4-Fy for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2014 01:54:12 +0100 Original-Received: from localhost ([::1]:59696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxmaa-0004nX-33 for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 19:54:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxmaN-0004ln-Im for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:54:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxmaM-0002Sy-B6 for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:53:59 -0500 Original-Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:56754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxmaM-0002Sq-2Y for emacs-devel@gnu.org; Sun, 07 Dec 2014 19:53:58 -0500 Original-Received: by mail-lb0-f178.google.com with SMTP id f15so3294127lbj.37 for ; Sun, 07 Dec 2014 16:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=iHmwPuT5SvDMj5Qvr9U8wpICsEey385nm4f+ayR9/m0=; b=kaLBi3U3vZy1tocMQzv2TjJ08B8DNWLULTpXZO62OhnzK/oCtx49OqDm1pk0LHF2of Eu6AompX/sBoYO8D/Y0IADjE0x3L+0L0tMNibABMso4yBqR80wtoGi9AwJTm6JK1VCZI kyq0lBNnWzml4qkMMn6PFm0X2Za4XrHZjjYTF27zxqy+DTBqH/hnmLZndxzFv7L/tBKX LO+AgrMRoPsLUjl3vzAoDomommf42f/WCvp1TSEDgUCtoYmIakHFjpoKIJ/PeyDndA4J Sc9GcK/15/OAq54M08D6lKrfy8F3YiLMR8r70LUecC7NrhubwO4qjmwg9X3cI7hGHjPB BD4Q== X-Received: by 10.152.7.193 with SMTP id l1mr13704960laa.57.1418000037215; Sun, 07 Dec 2014 16:53:57 -0800 (PST) Original-Received: by 10.112.53.137 with HTTP; Sun, 7 Dec 2014 16:53:57 -0800 (PST) Original-Received: by 10.112.53.137 with HTTP; Sun, 7 Dec 2014 16:53:57 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 8abydMmCw1FLZ6w-8gOENmG8010 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 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:179340 Archived-At: --001a11c23dbc82821b0509a9dc02 Content-Type: text/plain; charset=UTF-8 > And this wouldn't necessarily be just about `M-x'. Once in a while a > user executes a command that's meant for a totally different mode, and > then all the text disappears from the buffer and the user is sad. If > the user manages to type `M-x message-send-and-exit' without TAB > completion, Emacs could then say "This command is for message-mode, and > this is a text-mode buffer. Really execute?" or something. > I was thinking along the same lines. package.el, for instance, is full of commands which throw errors if not in package-mode. It would be useful if this could be built-in by declaring the mode. --001a11c23dbc82821b0509a9dc02 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


> And this wouldn't necessarily be just about `M-x'.=C2=A0 Once = in a while a
> user executes a command that's meant for a totally different mode,= and
> then all the text disappears from the buffer and the user is sad.=C2= =A0 If
> the user manages to type `M-x message-send-and-exit' without TAB > completion, Emacs could then say "This command is for message-mod= e, and
> this is a text-mode buffer.=C2=A0 Really execute?" or something.<= br> >

I was thinking along the same lines. package.el, for instanc= e, is full of commands which throw errors if not in package-mode. It would = be useful if this could be built-in by declaring the mode.

--001a11c23dbc82821b0509a9dc02--