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: Inhibit "Wrote foo" from write-region Date: Thu, 23 Jan 2014 10:18:33 -0500 Message-ID: References: <87k3dte17j.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390490327 1995 80.91.229.3 (23 Jan 2014 15:18:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 15:18:47 +0000 (UTC) Cc: Tom Tromey , Emacs-Devel devel To: Sebastian Wiesner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 23 16:18:53 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 1W6M3P-00013l-9I for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 16:18:51 +0100 Original-Received: from localhost ([::1]:41783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6M3O-0004ai-Js for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 10:18:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6M3G-0004Zk-2V for emacs-devel@gnu.org; Thu, 23 Jan 2014 10:18:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6M38-0004xO-Je for emacs-devel@gnu.org; Thu, 23 Jan 2014 10:18:41 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6M38-0004xJ-Ft for emacs-devel@gnu.org; Thu, 23 Jan 2014 10:18:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rxHA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFG4rxHA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="45899468" Original-Received: from 184-175-17-192.dsl.teksavvy.com (HELO pastel.home) ([184.175.17.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Jan 2014 10:18:33 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 7DC63600BF; Thu, 23 Jan 2014 10:18:33 -0500 (EST) In-Reply-To: (Sebastian Wiesner's message of "Thu, 23 Jan 2014 15:24:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:168956 Archived-At: > And as things stand, this behaviour just makes it very hard and > inconvenient to write meaningful non-interactive Emacs Lisp programs. Indeed support for batch programs written in Elisp has historically been very poor. After all the --script argument was introduced relatively recently, and before that you pretty much couldn't write a real "batch Elisp program". But do note that if write-region is changed to only output the message when called interactively, it will also solve your problem. So it might very well be that checking `noninteractive', while solving your immediate problem, is not The Right answer. Stefan