From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.devel Subject: Re: Inhibit "Wrote foo" from write-region Date: Thu, 23 Jan 2014 17:15:26 +0100 Message-ID: References: <87k3dte17j.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2478ea441e904f0a58cab X-Trace: ger.gmane.org 1390493731 15401 80.91.229.3 (23 Jan 2014 16:15:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 16:15:31 +0000 (UTC) Cc: Tom Tromey , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 23 17:15:37 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 1W6MwL-0001dl-LA for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 17:15:37 +0100 Original-Received: from localhost ([::1]:42027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6MwL-0007Kv-6q for ged-emacs-devel@m.gmane.org; Thu, 23 Jan 2014 11:15:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6MwD-0007KT-Oq for emacs-devel@gnu.org; Thu, 23 Jan 2014 11:15:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6MwB-0006zi-MY for emacs-devel@gnu.org; Thu, 23 Jan 2014 11:15:29 -0500 Original-Received: from mail-qa0-x233.google.com ([2607:f8b0:400d:c00::233]:35156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6MwB-0006z7-0s for emacs-devel@gnu.org; Thu, 23 Jan 2014 11:15:27 -0500 Original-Received: by mail-qa0-f51.google.com with SMTP id f11so2409657qae.24 for ; Thu, 23 Jan 2014 08:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e2iizRL8FnYtiNjfHCbub2ZeSRUVaS8pSyc90O2UbWU=; b=Gvp6rgaUxNxSGswykLmRzTw3p75OMVp/IK8ReQ+Po8XoLP1EOglVuRw8YW9jL3etSy cPGw6w7o+rZhfmfrxJGO2DJT/BC+L9McX6u/otfQQA4QZx1CVbpLPZH3BmqsWTxpQHbF Vs2spTKHBO6OgxM0rgOc94Sxjl7s+O4RzisZtHdlfqRDruNhRkGHF3kg8GM0GbfDMBsy 8S5jToBpIVaR5jena4v9kZBcIaWTYrQwqkukon7Su33Lrgx3JP+uDSXEPF9RLJ5Z+PoT sVCiK1mN/75gxdYyB9/YzZM1g3Y2XoKgk47sR5Y0aOpWR7hz96KO6kj6aqLIFkWlHTtQ jLmA== X-Received: by 10.224.8.72 with SMTP id g8mr12691655qag.83.1390493726685; Thu, 23 Jan 2014 08:15:26 -0800 (PST) Original-Received: by 10.224.207.73 with HTTP; Thu, 23 Jan 2014 08:15:26 -0800 (PST) Original-Received: by 10.224.207.73 with HTTP; Thu, 23 Jan 2014 08:15:26 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::233 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:168959 Archived-At: --001a11c2478ea441e904f0a58cab Content-Type: text/plain; charset=UTF-8 Am 23.01.2014 16:18 schrieb "Stefan Monnier" : > > > 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. Well, I'm just stating the problem, and suggest one solution. Finding The Right one seems to be your job really :-) > > > Stefan --001a11c2478ea441e904f0a58cab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Am 23.01.2014 16:18 schrieb "Stefan Monnier" <<= a href=3D"mailto:monnier@iro.umontreal.ca">monnier@iro.umontreal.ca>= :
>
> > And as things stand, this behaviour just makes it very hard and > > inconvenient to write meaningful non-interactive Emacs Lisp progr= ams.
>
> Indeed support for batch programs written in Elisp has historically be= en
> very poor. =C2=A0After all the --script argument was introduced relati= vely
> recently, and before that you pretty much couldn't write a real &q= uot;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. =C2=A0So i= t might
> very well be that checking `noninteractive', while solving your > immediate problem, is not The Right answer.

Well, I'm just stating the problem, and suggest one solu= tion. Finding The Right one seems to be your job really :-)

>
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--001a11c2478ea441e904f0a58cab--