From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Campbell Barton Newsgroups: gmane.emacs.bugs Subject: bug#36526: 26.2; Open diff at current location (feature request with suggested code) Date: Fri, 27 Dec 2019 19:18:15 +1100 Message-ID: References: <35d4b535-1e93-ef31-ca63-044721c1314f@gmail.com> <875zk3t7ji.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="89475"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Evolution 3.34.2 Cc: 36526@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 09:26:14 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 1ikkwo-000N9R-7S for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 09:26:14 +0100 Original-Received: from localhost ([::1]:60782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikkwn-0005V5-2H for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 03:26:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48214) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikkwf-0005TH-8h for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2019 03:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikkwd-0005WT-EB for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2019 03:26:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikkwc-0005Vo-BG for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2019 03:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ikkwc-0004vV-8F for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2019 03:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Campbell Barton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2019 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36526 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 36526-submit@debbugs.gnu.org id=B36526.157743510418867 (code B ref 36526); Fri, 27 Dec 2019 08:26:02 +0000 Original-Received: (at 36526) by debbugs.gnu.org; 27 Dec 2019 08:25:04 +0000 Original-Received: from localhost ([127.0.0.1]:56480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikkvg-0004uF-Kb for submit@debbugs.gnu.org; Fri, 27 Dec 2019 03:25:04 -0500 Original-Received: from mail-pf1-f178.google.com ([209.85.210.178]:42187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikkve-0004ta-Uc for 36526@debbugs.gnu.org; Fri, 27 Dec 2019 03:25:03 -0500 Original-Received: by mail-pf1-f178.google.com with SMTP id 4so14414872pfz.9 for <36526@debbugs.gnu.org>; Fri, 27 Dec 2019 00:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=2xzsO00dcIDNlzlGo/Aa1MZxxl3MCkoRga62gDEc/yU=; b=KUdB09Uk7xylbffApUr42XMtfvhR4DDDy2xl8HbYssX8PRpnkpzQxGCu+cvd4AB+Om vrDPwY6NIWMjAyY9BGNxk7GEVm6qdd0FGt3pjPXbAXuRKhmJn3L6D823L5z6vFWJUyv0 xlvtY4PD8GBUfe5lRPdS1jdgaZtwpIaF8x+ebAtOuwDBske784sBEyjI8uq8zxGAh0Mg PB9lCWRPXem/RA8SZjbZhg0QYAUUJSEd4RkoAZDyTYBO3tQCEmFJoAX7KFO0s1wFO/Ku UnjyvYVEabz/JeGbRGg7NkK6351DwQjRu1BWXrD6VBB62npjiQNMX+AQcfeAcwhAvorV DkSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=2xzsO00dcIDNlzlGo/Aa1MZxxl3MCkoRga62gDEc/yU=; b=WcmkLnGUIhgQh5+U0OU0tdepnvJwOE8D5T26fqMFESjEmmPcCPIh/JV+U/AaWmYcA8 3QSLGOYNqnHjyJ8nXud6CrwQ6ktu4MFearhH0m1HIy5vrNUHmuBSgAbZm9VgKzFMrl+s vQF7ojFwallQLFJN3hXp8vkeh6NX6tZRP/50eoc+YJVbl3krsKU5ExL+JQHkUG8NZLhT cpxLR42xlpcsh3F2wjf2k2RUoEY9Zzud0dBClIG+0nO3lzKArUyT6LMICyi06XmJEV1B q+/hY4epDzqDfx7mHnXK3t6npHJrlA2WEpcDk0rAn42NWERmt3LEKO0VhJT7q5t83Xzu Zg1A== X-Gm-Message-State: APjAAAVOWhP+t5A/MfZynZswoEtFI7Obt3bfKUmV612IGivdKQunnosj mPI4z0luwhHo3ehWAc8U299TZa3E X-Google-Smtp-Source: APXvYqwU/QLLHdOZav3IPZknp738R9nYtHF7ZaJ1e9gmGU7ppXIHILwAx5rcFEot/r66O7c/5JUKeg== X-Received: by 2002:a62:7a43:: with SMTP id v64mr39296011pfc.243.1577435096980; Fri, 27 Dec 2019 00:24:56 -0800 (PST) Original-Received: from thinkpad ([1.152.255.30]) by smtp.gmail.com with ESMTPSA id a12sm35617916pga.11.2019.12.27.00.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 00:24:56 -0800 (PST) In-Reply-To: <875zk3t7ji.fsf@marxist.se> 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:173802 Archived-At: On Sat, 2019-11-02 at 02:02 +0100, Stefan Kangas wrote: > Stefan Kangas writes: > > > > Would someone be able to check the code and see if it's going in > > > the > > > right direction? > > > > OK, but see below. > > > > > > > This is a feature suggestion which I've written example code > > > > > for > > > > > > > > > > `vc-root-diff` (or a new function), could jump to the closest > > > > > line. > > > > > > > > > > This is useful since you move to the context of the current > > > > > line. > > > > I'm not sure I understand what this code is supposed to do or how > > to > > use it. Could you please give a recipe for how to test it? > > Hi Campbell, > > Just to follow up on this, could you please provide instructions for > how to test your patch? > > Thanks in advance. > > Best regards, > Stefan Kangas Hi Stefan, my last post didn't get a response so I assumed there wasn't much interest here. I've since made this a package, however a reply on reddit suggests I try to get this into emacs source. If there is interest, I'm happy to create a patch and other steps needed to have in added into emacs. https://www.reddit.com/r/emacs/comments/efu71g/announce_diffatpoint_now_available_in_melpa/fc4s4im?utm_source=share&utm_medium=web2x