From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38044: 27.0.50; There should be an easier way to look at a specific vc commit Date: Wed, 20 Nov 2019 21:57:11 +0200 Message-ID: References: <87ftj5at1q.fsf@gnus.org> <87r22phsoj.fsf@gmx.net> <87bltslnpo.fsf@mail.linkov.net> <87d0dvmqu8.fsf@mail.linkov.net> <590e595e-8220-1c7e-bd4a-b2eb0968e289@yandex.ru> <87r226xl8m.fsf@mail.linkov.net> <24c56bca-8d7d-3a20-aeef-5d11f8a075e6@yandex.ru> <87pnhquo4k.fsf@mail.linkov.net> <6087186e-a444-0aac-e87d-596d2e36f0ce@yandex.ru> <877e3wub09.fsf@mail.linkov.net> <5ce7d4f0-3884-fd27-09dc-c38f01a19958@yandex.ru> <83zhgr26c3.fsf@gnu.org> <908fb02e-1091-0dff-2faa-71c3ec721b76@yandex.ru> <83h82z2250.fsf@gnu.org> <448da651-20ac-14ba-6916-98ab3c23c9d1@yandex.ru> <838sob1acp.fsf@gnu.org> <83tv6yzets.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182582"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: larsi@gnus.org, stephen.berman@gmx.net, 38044@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 20 20:58:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXW7F-000lN5-1E for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Nov 2019 20:58:17 +0100 Original-Received: from localhost ([::1]:33980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXW7D-0002D8-Tp for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Nov 2019 14:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51521) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXW70-0002Cg-Nt for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 14:58:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXW6z-0000wR-QV for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 14:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXW6z-0000wN-NW for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 14:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXW6z-0008DW-K0 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 14:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Nov 2019 19:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38044 X-GNU-PR-Package: emacs Original-Received: via spool by 38044-submit@debbugs.gnu.org id=B38044.157427984531535 (code B ref 38044); Wed, 20 Nov 2019 19:58:01 +0000 Original-Received: (at 38044) by debbugs.gnu.org; 20 Nov 2019 19:57:25 +0000 Original-Received: from localhost ([127.0.0.1]:50957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXW6O-0008CZ-N1 for submit@debbugs.gnu.org; Wed, 20 Nov 2019 14:57:24 -0500 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:43420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXW6J-0008CH-V9 for 38044@debbugs.gnu.org; Wed, 20 Nov 2019 14:57:22 -0500 Original-Received: by mail-wr1-f41.google.com with SMTP id n1so1358518wra.10 for <38044@debbugs.gnu.org>; Wed, 20 Nov 2019 11:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0v+PkhB97Dj8MBm5Rvg6tJ/QZSZJecmpVqKtnCojRyU=; b=G5EmWkOjw9adYGqPMyBk5wKUUqHnCw6u1xtHXsBBgYMXYNZqYJla4P9MkwlZi++RqE zuKcFsDyNX1DiuacxjqW+qxB/y+B2IiWTQO6RzuFUGXNXhyBMMzEFWB/o20yj8OeuIHM drR6arCWPl/57RN0jN5lSl58MzB9t2EBBHhvvGZs36k2x0u9NpvVIqIRGQ5Z8VkWpQAx bn8cpZVH/u/uhS6E0BqgSenjy2mSUM/hZZWQupENcZZCb5aAz1hphUZ/88qCLtpvugex pLlNOa2ICm6oN35rgqq1/vsl9h/pXdXSJchtqx/6GOdpZONnc2nPHSMmCdndWcaidTdi lQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0v+PkhB97Dj8MBm5Rvg6tJ/QZSZJecmpVqKtnCojRyU=; b=CmNnOGUsvql+1a7WA3W5SjWIk+HzI7+FOB7hPJT9mkAIuHiQuEsD+Gyiomi96XZ8G8 MUSdy9ktzTWaRUGONey6hNMHEjqFw/JMfqQB5A+rGEH0cSr0SGA85w+mFW1xgMXYqeLy 8LnRdtP/44vk8manrDD/66/LejSkuY10RZ+ECd2aa4k8IxDplgGNL1A34YIPoDKfPY0j hnODzTEfye1smSZXj0SODCAVfJP3MAGDEnVGZDLi6qBQrOk/bZj24/csUjposyYk/Oi2 0LCueZzCryOBFP6hLaRQhwj0J6Ry6afY6OQW2wA7hYse9LB4d+u5IJ/BFJYjgKKURznc ZqCQ== X-Gm-Message-State: APjAAAXxna8n7mO1Uu3YwdG+5/+MnuOl0Nb5PHA7eujU8YdTFr5QTo7D fVaMoiMOrHEd+jCB9luJ8DE= X-Google-Smtp-Source: APXvYqx8AhLqe6NuSfpf1bVMewhfIBZcFDFS4Wfjr42Y7X+nAEJj9qeDkp8bAQsi8d4E1wNxyfiQZg== X-Received: by 2002:adf:979a:: with SMTP id s26mr5967153wrb.92.1574279833997; Wed, 20 Nov 2019 11:57:13 -0800 (PST) Original-Received: from [192.168.0.5] ([212.50.117.215]) by smtp.googlemail.com with ESMTPSA id d202sm293115wmd.47.2019.11.20.11.57.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Nov 2019 11:57:13 -0800 (PST) In-Reply-To: Content-Language: en-US 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: 209.51.188.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:172071 Archived-At: On 20.11.2019 21:40, Dmitry Gutov wrote: >>> How would that even work? vc-diff will always delegate to vc-git-diff. >> >> It will work if we program either vc-diff or vc-git-diff to call "git >> show" under some specific circumstances. > > That makes little sense to me, sorry. What we can try instead: A new command: vc-describe-revision (for example; call it however you want) which first invokes vc-print-log-internal like vc-annotate-show-log-revision-at-line does, followed by calling vc-diff-internal like vc-annotate-show-diff-revision-at-line-internal does. The only difficulty there is coloring diff output properly. Maybe just take the fontified buffer strings from the above commands and copy them over into a new buffer.