From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Alternative to process-lines for tramp Date: Thu, 04 Apr 2019 04:06:27 +0100 Message-ID: <871s2ibhak.fsf@tcd.ie> References: <20190404020036.gbm3hfv2xsmmcdhh@Ergus> <878swqbhu0.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227589"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 04 05:10:05 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBslQ-000x4q-Jr for ged-emacs-devel@m.gmane.org; Thu, 04 Apr 2019 05:10:04 +0200 Original-Received: from localhost ([127.0.0.1]:40889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBslP-0001Zr-GG for ged-emacs-devel@m.gmane.org; Wed, 03 Apr 2019 23:10:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBskY-0001ZV-MJ for emacs-devel@gnu.org; Wed, 03 Apr 2019 23:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBsi0-0003JQ-Bk for emacs-devel@gnu.org; Wed, 03 Apr 2019 23:06:33 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:33822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBshy-0003Dn-PO for emacs-devel@gnu.org; Wed, 03 Apr 2019 23:06:31 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id x14so784704eds.1 for ; Wed, 03 Apr 2019 20:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wBeMwYUi799zWslYvgzbvjh0pgot0MXiLk/HzjP4Fbk=; b=lXuPiUifLAk40PXm+sg3L54sMiyogz+UTgT1AY9jp6smott1M4Jd806RvBJcxXAZtU 4j6KHUD+X37d3CCV47/t+4l+e/xFiNR2OLnuksQqcMweYlpC1GwJdLP9se70oroI4KKo jGp3nKfD3Hyyu128BwDXhPEIeMEwYV0aXEHmdmMcDGZZ30YY081N7r7gUAQGlLh9JQEm pyF6N8gItThTEp60GD0Rk1z39VmNEDqNAy1w5F5OVSwOIm6nHT7s6RgNLfndcKyU0mE2 g/6Ovra+EkM0OLuvzVVyUiXBAVdyFb7gCoqAorcBP9GWbAL17znjm9GOwFSWrddDphnS f3vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wBeMwYUi799zWslYvgzbvjh0pgot0MXiLk/HzjP4Fbk=; b=JpKvpdaM3/Yojzy7rXeNrAe6SBxw+PXrhLFKddIK8354IY4cECmG7p0Gx3pTFjcTCq HaVQCIF9w9/5D2aX8yUu2qCARu5mEhWLkO8TSKGVu/L66ZqfL4eCGU+HhcSwgoBZr5nx vIOvgNm1Q7aQ0tm/4bWE2McvZWMjICInH1Zl1e5LdVP4S7B387g2t0If0sFJZZpF2NhR fQ2uVFeUBmZtgElB15dS+lNly7sxpNfvntLfdCsWktx/zWdPJjgqRU5nqGw86L7hzyc+ 7TRdPrLeVbcoSprqjEHWQwMEBD8yT1WSvzBMTl2RboLVEG0KjoyOP8IFg28cha9kFhlu futA== X-Gm-Message-State: APjAAAW4budWYuDkhVGg1m/rv9CLDf8vq15R3VZiQvE3pyNRoDq03ECp rqiMvrOid0vrKZAPEhrcbXDF1Q== X-Google-Smtp-Source: APXvYqyP+OHqThgd4NjWo3kIn5jGtwin5bDFE/wB79MDoIuBbGz/uj60CTpqsW4QDQNqw8y0lUYsiA== X-Received: by 2002:a50:cbc8:: with SMTP id l8mr1949763edi.65.1554347188985; Wed, 03 Apr 2019 20:06:28 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id s44sm1827780edd.49.2019.04.03.20.06.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Apr 2019 20:06:28 -0700 (PDT) In-Reply-To: <878swqbhu0.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 04 Apr 2019 03:54:47 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::536 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:234941 Archived-At: "Basil L. Contovounesios" writes: > I would, nevertheless, welcome a more flexible process-lines, whether > via keyword arguments, a separate function, or otherwise. Given that process-lines boils down to a call-process followed by (split-string (buffer-string) "\n"), one "otherwise" solution would be to provide a convenience function which does the buffer-splitting (but in a more efficient way than split-string). One could then mix and match call-process, process-file, et al. with this new convenience function. YMMV. -- Basil