From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#17666: 24.3.91; [regression] call-process in read-only buffers Date: Mon, 2 Jun 2014 11:25:14 -0500 Message-ID: <42346.74055.958802.21388@gargle.gargle.HOWL> References: <874n03jqxr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401726391 32087 80.91.229.3 (2 Jun 2014 16:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 16:26:31 +0000 (UTC) Cc: 17666@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 18:26:12 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WrV3s-0000Am-7G for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2014 18:26:12 +0200 Original-Received: from localhost ([::1]:47761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrV3r-0000xI-Qv for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2014 12:26:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrV3m-0000tQ-8P for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 12:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrV3i-0000AI-Qx for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 12:26:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrV3i-0000AC-OJ for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WrV3i-0005p9-7X for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2014 12:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jun 2014 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17666-submit@debbugs.gnu.org id=B17666.140172634322351 (code B ref 17666); Mon, 02 Jun 2014 16:26:02 +0000 Original-Received: (at 17666) by debbugs.gnu.org; 2 Jun 2014 16:25:43 +0000 Original-Received: from localhost ([127.0.0.1]:41097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrV3J-0005oG-Q2 for submit@debbugs.gnu.org; Mon, 02 Jun 2014 12:25:42 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52522 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrV3B-0005nu-KH for 17666@debbugs.gnu.org; Mon, 02 Jun 2014 12:25:34 -0400 Original-Received: from 162-229-45-114.lightspeed.cicril.sbcglobal.net ([162.229.45.114]:38849 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1WrV3B-0003Ts-5z; Mon, 02 Jun 2014 12:25:29 -0400 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89896 Archived-At: On Mon Jun 2 2014 Stefan Monnier wrote: > > evaluate the following with emacs -Q > > > ;; running a process with no output via call-process > > ;; in any read-only buffer will do > > (with-temp-buffer > > (let ((buffer-read-only t)) > > (call-process "true" nil t))) > > > No problem with emacs 24.3 > > I do not remember this being changed consciously, but the change does > sound like a bug fix: you should bind inhibit-read-only if you want to > insert text into a read-only buffer, and call-process shouldn't be > an exception. But what is the problem if a process does not have any output? (Certainly, throwing an error makes sense for processes which do create output in a read-only buffer.) Roland