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: Making `interactive' conditional Date: Mon, 11 Jan 2016 01:13:17 -0500 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452492823 19689 80.91.229.3 (11 Jan 2016 06:13:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 06:13:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 11 07:13:32 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 1aIVjP-0000jp-Nz for ged-emacs-devel@m.gmane.org; Mon, 11 Jan 2016 07:13:31 +0100 Original-Received: from localhost ([::1]:51827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVjO-0003g0-QR for ged-emacs-devel@m.gmane.org; Mon, 11 Jan 2016 01:13:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVjL-0003fj-GO for emacs-devel@gnu.org; Mon, 11 Jan 2016 01:13:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIVjI-0001ZR-Am for emacs-devel@gnu.org; Mon, 11 Jan 2016 01:13:27 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVjI-0001Z7-3k for emacs-devel@gnu.org; Mon, 11 Jan 2016 01:13:24 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aIVjG-0000cr-TI for emacs-devel@gnu.org; Mon, 11 Jan 2016 07:13:23 +0100 Original-Received: from 184.175.3.20 ([184.175.3.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 07:13:22 +0100 Original-Received: from monnier by 184.175.3.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 07:13:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 184.175.3.20 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:JT6zBaZkp2A7VR0oS+fsPdeIkh0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:198014 Archived-At: > That does sound kinda exciting. To take a random example, `M-x > delete-matching-lines' could have a :when of `buffer-writable-p' and not > auto-complete when in a read-only buffer. Etc. I'd be wary of going too far down that road: I often want to modify read-only buffers 'cause I hadn't realized they're still read-only. In that case, not finding the command in M-x would make me lose a lot more time (looking for the damn command, under the assumption that I just misremember it) than getting a clear "beep! buffer is read-only!" after which I can C-x C-q and move on. > Hm... I think that sounds a bit too magical to be workable in general. That's exactly what I thought when I read the suggestion to omit delete-matching-lines in read-only buffers. Stefan