From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Why does write-region use message_with_string? Date: Mon, 28 Oct 2013 09:02:41 +0100 Message-ID: <526E1A21.5040803@online.de> References: <20131026012733.5f35a2a5@forcix.kollektiv-hamburg.de> <20131026111604.3ef232f2@forcix.kollektiv-hamburg.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382947218 12719 80.91.229.3 (28 Oct 2013 08:00:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 08:00:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 28 09:00:21 2013 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 1VahkK-00006N-Un for ged-emacs-devel@m.gmane.org; Mon, 28 Oct 2013 09:00:21 +0100 Original-Received: from localhost ([::1]:40297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VahkK-00042A-Ii for ged-emacs-devel@m.gmane.org; Mon, 28 Oct 2013 04:00:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VahkC-00040v-E1 for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:00:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vahk6-0006gJ-8N for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:00:12 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:58616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vahk5-0006Z4-Vq for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:00:06 -0400 Original-Received: from purzel.sitgens (brln-4db9a5ea.pool.mediaWays.net [77.185.165.234]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MI8Ug-1VWqvV2XyI-003Uz8; Mon, 28 Oct 2013 09:00:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <20131026111604.3ef232f2@forcix.kollektiv-hamburg.de> X-Provags-ID: V02:K0:r1NGnjH9vE3JkrlQuw+AVgp2ieoFggIuDV60UF+n5SL +3aP52a1KurYW8PR7zMDfIw7Wu/1WVdl8ulhEPFub6ntLDzdiO vFAJdu6hYVA9l6Bb0RqwzfyY2rftUETHGmo6+EUvfCA+ggSVhi A1FZJFT3MX7owacPPo6ArNnVkCkrSR5AV8pndYxY7/EX76x7gz K9GauEG1d3tICNPf8K0xyNSk2QR0Zoo1sMCytrCalCkuGfh6zj XKjiZxp/KkaqjwZb8+VJT7g/WOERBHiZcKOiUarylsr+9unWVc Jaul6yEO4Q85clEWWryJ6xq394ejZWZPtpUUltFrXNFgmC6kOq e+XBk8n03kanvDeA1F7w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.187 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:164593 Archived-At: Am 26.10.2013 11:16, schrieb Jorgen Schaefer: > On Fri, 25 Oct 2013 21:42:46 -0400 > Stefan Monnier wrote: > >>> In fileio.c:4995, this function calls message_with_string directly, >>> circumventing lisp completely. >> >> It can probably be changed to call `message'. But I'd be surprised if >> there aren't other places where you will bump into similar problems. > > My use case is not an all-or-nothing one - I just want less noise when > running emacs -batch, so every unwanted line less helps, even if there > are still some. > > But Eli has a point. If this is used when Emacs is crashing, I'd rather > not make it less reliable. But it already checks if a variable is set > for auto-saving. Would it then be an idea to make this a lisp variable > so it can be set from lisp, not only from C? > > Jorgen > > +1 Sounds cleaning up this would make code-base more regular.