From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Merge-base alias for git vc-diff Date: Thu, 03 Jan 2019 22:38:36 +0200 Organization: LINKOV.NET Message-ID: <877efl8pgj.fsf@mail.linkov.net> References: <87bm58ornb.fsf@mail.linkov.net> <92f058a4-ef98-725b-9603-5a671113dfaa@yandex.ru> <87lg4aak10.fsf@mail.linkov.net> <87o98zapae.fsf@mail.linkov.net> <7e8020d6-92df-a475-cbd7-98f42676a99b@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1546549238 3403 195.159.176.226 (3 Jan 2019 21:00:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2019 21:00:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel , Stefan Monnier , Dmitry Gutov To: joaotavora@gmail.com (=?iso-8859-1?Q?Jo=E3o_T=E1vora?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 03 22:00:33 2019 Return-path: Envelope-to: ged-emacs-devel@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 1gfA6T-0000la-Gt for ged-emacs-devel@m.gmane.org; Thu, 03 Jan 2019 22:00:33 +0100 Original-Received: from localhost ([127.0.0.1]:57783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfA8a-0007VM-4b for ged-emacs-devel@m.gmane.org; Thu, 03 Jan 2019 16:02:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfA7T-0007V6-EI for emacs-devel@gnu.org; Thu, 03 Jan 2019 16:01:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfA7P-00051Z-KO for emacs-devel@gnu.org; Thu, 03 Jan 2019 16:01:35 -0500 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:64611) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfA7O-0004zV-Md for emacs-devel@gnu.org; Thu, 03 Jan 2019 16:01:31 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2F2E050212B; Thu, 3 Jan 2019 21:01:24 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D98A550365E; Thu, 3 Jan 2019 21:01:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Thu, 03 Jan 2019 21:01:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cure-Little: 3baed7c0122824d8_1546549284062_4228857560 X-MC-Loop-Signature: 1546549284061:3651076621 X-MC-Ingress-Time: 1546549284061 Original-Received: from pdx1-sub0-mail-a35.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTP id 8073F811B1; Thu, 3 Jan 2019 13:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=pReqrd vMY1ylGvpI0ZgEBy5n3Fs=; b=rWCJXBcz4Ley6G4jYKpvzVlxsnOevBYN7L1+/r KCw7DM2r9cH5qNIuGaa8dozUY7+LSCjkamY36tsPA0bBlD/kosuucOJBAwCEBmJQ NFblJ1P0ftAvCd3yw4CjBRB+fFUVPiq8vubZtGgh4vKD3dMK3gXtz4K7Xiy2Azlk NmhTI= Original-Received: from mail.jurta.org (m91-129-109-141.cust.tele2.ee [91.129.109.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a35.g.dreamhost.com (Postfix) with ESMTPSA id 0B7857F5D4; Thu, 3 Jan 2019 13:01:18 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a35 In-Reply-To: (=?iso-8859-1?Q?=22Jo=E3o_T=E1vor?= =?iso-8859-1?Q?a=22's?= message of "Thu, 03 Jan 2019 13:30:17 +0000") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrudelgdekiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrddugedunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrudeguddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.151 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:232146 Archived-At: > 2. A diff is always a comparison of two revisions, right? For vc-dir, > isn't a UI like query-replace's suitable here? You know, that thing > where you type the pattern and the replacement interactively in the > same minibuffer prompt, separated by the arrow. You can M-p, C-r, > etc, flawlessly. I really like that UI, it's really intuitive (kudos > to whoever participated, btw). > > So here, instead of pattern and replacement, two revisions. All one > would need, apparently, is to turn the arrow into a ".." and make it > toggleable to "..." with say, C-M-y. I think it would simplify the > completion problem: on both sides of the ".." or "..." you just > complete a revision using whatever system we presumably already have > in place for that. Good idea. This brings the minibuffer input syntax closer to the real command line syntax. The only problem is that then we have to use different amount of dots for vc-root-diff and vc-print-root-log because in git: =E2=80=98git diff A...B=E2=80=99 corresponds to =E2=80=98git log = A..B=E2=80=99 whereas =E2=80=98git diff A..B=E2=80=99 corresponds to =E2=80=98git log A= ...B=E2=80=99