From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: make-subprocess Date: Fri, 26 Sep 2014 08:42:20 -0400 Message-ID: References: <87a95md8mw.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411735373 25172 80.91.229.3 (26 Sep 2014 12:42:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2014 12:42:53 +0000 (UTC) Cc: ueno@gnu.org, emacs-devel@gnu.org To: Nic Ferrier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 26 14:42:45 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 1XXUrE-0001sG-Sp for ged-emacs-devel@m.gmane.org; Fri, 26 Sep 2014 14:42:44 +0200 Original-Received: from localhost ([::1]:48123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXUrE-0005M2-Gu for ged-emacs-devel@m.gmane.org; Fri, 26 Sep 2014 08:42:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXUr4-0005Ks-CM for emacs-devel@gnu.org; Fri, 26 Sep 2014 08:42:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXUqw-00017v-6L for emacs-devel@gnu.org; Fri, 26 Sep 2014 08:42:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXUqw-00016H-2W; Fri, 26 Sep 2014 08:42:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgBA6kZgWqDTCE X-IPAS-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgBA6kZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90939565" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Sep 2014 08:42:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4B755861E; Fri, 26 Sep 2014 08:42:20 -0400 (EDT) In-Reply-To: <87a95md8mw.fsf@ferrier.me.uk> (Nic Ferrier's message of "Fri, 26 Sep 2014 10:38:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:174719 Archived-At: >> What do people think? I'm attaching a patch as POC. I like the idea. It turns implicit arguments passed via dynamic scoping into keyword arguments, which I think is good since it does not have a global effect any more. > I think your function should be called: > make-sub-process > to fit in with make-network-process. No opinion on this. > I'd also like to have a: > set-default-sentinel > function which would make a particular sentinel the default if one was > not specified. This would affect processes started by other packages, so it's probably not a good idea. If you really need that, you can advise internal-default-process-sentinel. Stefan