From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herring, Davis" Newsgroups: gmane.emacs.devel Subject: RE: Making `interactive' conditional Date: Tue, 12 Jan 2016 04:46:16 +0000 Message-ID: References: <87mvszdp6b.fsf@gnus.org> <8737u9kv6f.fsf@russet.org.uk> <87fuy7hdc6.fsf_-_@wanadoo.es> <87bn8vh8q4.fsf@wanadoo.es> <4002fc97-5629-4367-8b8f-48b659fefdce@default> <87r3hoehmx.fsf@wanadoo.es> , <87mvscdqho.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1452573999 6716 80.91.229.3 (12 Jan 2016 04:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2016 04:46:39 +0000 (UTC) To: =?iso-8859-1?Q?=D3scar_Fuentes?= , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 05:46:28 2016 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 1aIqqg-0005gK-2B for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2016 05:46:26 +0100 Original-Received: from localhost ([::1]:58122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIqqf-0004AR-Bt for ged-emacs-devel@m.gmane.org; Mon, 11 Jan 2016 23:46:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIqqc-0004AJ-De for emacs-devel@gnu.org; Mon, 11 Jan 2016 23:46:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIqqY-0004pw-7O for emacs-devel@gnu.org; Mon, 11 Jan 2016 23:46:22 -0500 Original-Received: from proofpoint5.lanl.gov ([2001:400:4210:400::a5]:42847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIqqX-0004oK-VS for emacs-devel@gnu.org; Mon, 11 Jan 2016 23:46:18 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate5.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id u0C4kGrB001561; Mon, 11 Jan 2016 21:46:16 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id DDCD9EE1C69; Mon, 11 Jan 2016 21:46:16 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from ECS-EXG-P-CH01.win.lanl.gov (ecs-exg-p-ch01.win.lanl.gov [128.165.106.11]) by mailrelay2.lanl.gov (Postfix) with ESMTP id C82D4EE1C65; Mon, 11 Jan 2016 21:46:16 -0700 (MST) Original-Received: from ECS-EXG-P-MB01.win.lanl.gov ([169.254.1.250]) by ECS-EXG-P-CH01.win.lanl.gov ([128.165.106.11]) with mapi id 14.03.0266.001; Mon, 11 Jan 2016 21:46:16 -0700 Thread-Topic: Making `interactive' conditional Thread-Index: AQHRTI4hm67Tjyhz7E26x2Va2N1BU573TRcb In-Reply-To: <87mvscdqho.fsf@wanadoo.es> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.165.106.85] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.21, 1.0.33, 0.0.0000 definitions=2016-01-12_02:2016-01-11, 2016-01-12, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a5 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:198063 Archived-At: >>> (and (not read-only) visiting-file)=0A= >>=0A= >> So now you can't invoke it in *scratch*?=0A= >=0A= > I don't expect to use Lisp predicates, no. Allowing those when the=0A= > filtering is executed has unbounded time complexity.=0A= =0A= I didn't mean "the object that describes the applicability conditions is no= t a form"; I meant that a command defined with that constraint would not be= usable in *scratch* because it would fail the "visiting-file" condition.= =0A= =0A= > Filtering out editing commands when the buffer is not meant to be edited= =0A= > in any case enters into the "the user plausibly is not looking for this= =0A= > command" category.=0A= =0A= Like `kill-line', which is totally useless in a read-only buffer, right?=0A= =0A= Again, I'm not claiming these problems are insurmountable -- just that it's= very hard to get right, because the exceptional cases are numerous.=0A= =0A= Davis=0A=