From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#33050: 27.0.50; [macOS] Problem with process input with process-connection-type nil Date: Sat, 27 Oct 2018 22:28:15 +0200 Message-ID: References: <83a7n9udxv.fsf@gnu.org> <83ftwuq9ii.fsf@gnu.org> <83a7n2q6jb.fsf@gnu.org> Reply-To: charles@aurox.ch NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540671665 30398 195.159.176.226 (27 Oct 2018 20:21:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2018 20:21:05 +0000 (UTC) Cc: fgunbin@fastmail.fm, 33050@debbugs.gnu.org, alan@idiocy.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 22:21:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGV4u-0007nY-KO for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 22:21:00 +0200 Original-Received: from localhost ([::1]:37696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGV71-0000Yq-7C for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 16:23:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGV6v-0000YZ-1D for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 16:23:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGV6u-0001YZ-6Z for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 16:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGV6s-0001Xb-Dz for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 16:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGV6s-0000BV-9V for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2018 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33050-submit@debbugs.gnu.org id=B33050.1540671773681 (code B ref 33050); Sat, 27 Oct 2018 20:23:02 +0000 Original-Received: (at 33050) by debbugs.gnu.org; 27 Oct 2018 20:22:53 +0000 Original-Received: from localhost ([127.0.0.1]:45799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGV6j-0000Av-Ee for submit@debbugs.gnu.org; Sat, 27 Oct 2018 16:22:53 -0400 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:45142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGV6h-0000Ag-5l for 33050@debbugs.gnu.org; Sat, 27 Oct 2018 16:22:51 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id EFC79228BD for <33050@debbugs.gnu.org>; Sat, 27 Oct 2018 20:27:07 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1540672026; x=1541536027; bh=RX DyOaakddlHDybNnqgxz55iXtDhlz6cWaDPCFN2OHg=; b=mAYB7HfZrCdtP26mrQ tRNNKctyX03Kwfpuo8gNPNJV61sHWiqRj021mVPSFzAizAuBnquOji+rmo181rMb nZsKo/QGLQS/dvV7vQOrNAnSDkgWQ89vW/dsZ9imjfDg8xTFW3SsuorpwRWEE/x/ HNS9kosNRZceY6Pvxl9G7wMvY= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VNJ6frTjqpda for <33050@debbugs.gnu.org>; Sat, 27 Oct 2018 20:27:06 +0000 (UTC) Original-Received: from gray (unknown [IPv6:2a02:1205:c693:2d60:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 5F12822897; Sat, 27 Oct 2018 20:27:05 +0000 (UTC) In-reply-to: (message from Thomas Fitzsimmons on Thu, 25 Oct 2018 21:41:34 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:151705 Archived-At: > From: Thomas Fitzsimmons > Date: Thu, 25 Oct 2018 21:41:34 -0400 > > I re-read the Elisp "Asynchronous Processes" node; when I was deciding > how to set process-connection-type, I think I was following the > _underlined_ part in: > > [...] > > However, _for subprocesses used > by Lisp programs for internal purposes, it is often better to use a > pipe_, because pipes are more efficient, and because they are immune > to stray character injections that ptys introduce for large (around > 500 byte) messages. Does anyone recall where these "character injections" come from? ISTR that these no longer happen... Maybe this is a reference to the code deleted here: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=2b0a91e78f83fb446cc38efb99399e83ad2cded3 (as seen, e.g., in Bug#32438) Also, both "process-send-region" and "process-send-string" (in master) claim to split their process input if it is longer than 500 /characters/ (not bytes) -- but reading through the code in process.c, it's not clear where (or if) this still happens.