From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 01b97f9 1/2: Move VC diff ASYNC argument to the fifth position Date: Sun, 14 Dec 2014 17:04:55 +0200 Message-ID: <548DA717.1070608@yandex.ru> References: <20141214105203.6572.30685@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418569544 7241 80.91.229.3 (14 Dec 2014 15:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 15:05:44 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 14 16:05:37 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 1Y0Ajp-0008PV-9b for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 16:05:37 +0100 Original-Received: from localhost ([::1]:36235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0Ajo-00085K-Gt for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 10:05:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0AjO-00083y-2D for emacs-devel@gnu.org; Sun, 14 Dec 2014 10:05:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0AjF-0008Gn-21 for emacs-devel@gnu.org; Sun, 14 Dec 2014 10:05:10 -0500 Original-Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:39387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0AjE-0008Gf-Rk for emacs-devel@gnu.org; Sun, 14 Dec 2014 10:05:00 -0500 Original-Received: by mail-wg0-f46.google.com with SMTP id x13so12823743wgg.33 for ; Sun, 14 Dec 2014 07:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kgTj33CKU3H7AhLXlfU4X1nrTbMoMF1HpHKoQKB/8WU=; b=LZwmBSg9jtmxwxAdAdMaSLKPbiiJlSeS1Lzq3uzAeK3wBGs7zOhqyEkcieaPf6rEJL 8TVRncvmtYlJLdsG02Ld7ufknhfIQ6OLOa4a8mCaRewxYIVUMcWrTFBy77uxXNL1sVru Vzt3qT8TYGLrXFl3vjhNVDvopxTQJhY9DvRg56YqYrFBXrSN86kdgOK0TspnueKXZf0j LOm3xPgdGHxevLlw+hjRdVlkirKtizN8OW0CQShM/qHxSsJaUpPTZRZ3c/PrLaw3okba tHgaimi007CyEiTMwpgFDF34coKNbieYPxAAkL0kuRvV+IywfdJ4QN+/F5Vm9IKqs/Fe ETag== X-Received: by 10.194.190.19 with SMTP id gm19mr44596639wjc.51.1418569500197; Sun, 14 Dec 2014 07:05:00 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.58]) by mx.google.com with ESMTPSA id wz5sm9443799wjc.29.2014.12.14.07.04.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Dec 2014 07:04:59 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22e 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:180086 Archived-At: On 12/14/2014 04:18 PM, Stefan Monnier wrote: >> Move VC diff ASYNC argument to the fifth position > > BTW, we should devise a "standard" way to turn an async operation into > a synchronous one, so that APIs such as the one used for VC backends can > simply always work asynchronously, and if the client needs the answer > right away he can just use this standard way. Right, it can be a better replacement for `vc-exec-after'. It would again break compatibility, but still checking if the returned arg is a promise, and if so forcing it, would be easier than calling `vc-call-backend' with different arguments depending on the Emacs version.