From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: `message' not outputting the newline "atomically" Date: Fri, 28 Jun 2019 10:30:47 +0200 Message-ID: References: <07619925-e367-fb88-2dd8-27addb2e9052@grinta.net> <68b398b1-3790-b32f-535d-6ea2518f79b8@cs.ucla.edu> <83pnn1lkej.fsf@gnu.org> <83tvccjrpo.fsf@gnu.org> <83zhm3i285.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="90462"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: eggert@cs.ucla.edu, daniele@grinta.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 10:31:11 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgmHn-000NQ7-Bh for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2019 10:31:11 +0200 Original-Received: from localhost ([::1]:57704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgmHm-0006ZX-CG for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2019 04:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32848) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgmHg-0006ZQ-5I for emacs-devel@gnu.org; Fri, 28 Jun 2019 04:31:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgmHb-0008Ii-Se for emacs-devel@gnu.org; Fri, 28 Jun 2019 04:31:04 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:52404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgmHX-0008D4-Fp; Fri, 28 Jun 2019 04:30:57 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgmHP-0008RR-7r; Fri, 28 Jun 2019 10:30:49 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEXl3domGhujlJFUO0Bp X2ELBgf////+//4GAgMEAAEUmOamAAACaElEQVQ4jW2UPW/bMBCGBaNw56tEwN4cis1Okd5L8RKg I9ESoLdMzt4hmT0QoH6AAenf9kh9pEBzg23w4Xsfr0+q3q6fR/V2rT6JPYFXa1VvrelQ+hId5+Ix A6MQLWJnlZLAvO85b58LQI0CsV/BD1IUYDXmyAAy4BtoUAg0uAD3hVI9LgCVlBYU1JL5eodGFSCh 7q3hO56DOQJ2BoqBVrh/2Z2q6wtzv4RSNoMrN1ZrPFVV1jBgUoGca0jeWKWxl0DFQUr6nlPpziil Oi1rmoOKUHOlXdBNq4nmbgEON7pkZ4A1aqs6aoYyHW80rJkBl0qh0n92X0kx3MieVfHQaLq+E5wG T1mBpTjTHLIfaBz4kG79CiSSuVRRmyxIMVtdgOC2a+lcmSwYY7MqBPY5k1KGhUThVoB8Pscnn88j kAsFZFMLkDCkIUUH0GwgS7SEaRym0UcPG5i7YlOOYfSsDLibgbbsQqfTOCUfnxeFQKvtwXsi4zDG sIEWJZ69Z4EUaQzpH6DKGgYqPsX0AYS1ZTuzggQzuJYa53Iewjjd0wc4CVME6T6kKfvoSyraejEL HI1OmejnBtj8BNwOKUa6sRZfwDC6MCSfxqUr2kBBO0stRXeh6dLW7okcOYc4TJFEKWbvCzhV3GqT QfAsjbm7tA5otWKB3PB+upEHcQNoj26gNP6Wn0Drw2b7YXJhyn7XPbf92a9ATnd3oFQhgub1t3YF 4jh5AH+hfxt+C6k5W2q0w91Bgz/7vn8Ca+lzAQ9Ad+v6WCvJoJFYf1+W4SE/S8BoC5J3DTeq3b+S 7e/v/79k8qtn//lr6S/WkkA7wT5z+QAAAABJRU5ErkJggg== In-Reply-To: <83zhm3i285.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Jun 2019 16:31:38 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:238213 Archived-At: Eli Zaretskii writes: > I'm okay with making 'message' write in one go to stderr, but I don't > want to pay the price of having stderr buffered globally. Several > solutions for this single issue were already proposed, but we keep > rejecting them and returning to line-buffering time and again. I > think if we want to solve the original problem, that of 'message' in > batch sessions, we should stop looking for a 110% perfect solution, > and certainly not try to solve additional issues while we are at that. I'm also not very enthusiastic about making stderr line-buffered -- when exploring Emacs internals, I've sometimes resorted to putting fprintf(stderr...) calls into the C code to see what's happening, and while the normal thing to do is to have a \n at the end of those, that may not be what other people in the same situation always do, and we'll end up with frustrating people unnecessarily. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no