From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.devel Subject: Re: A vc wish: vc-timemachine Date: Sun, 16 Oct 2022 07:49:19 -0400 Message-ID: References: <83a65w5o91.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26924"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 16 13:51:12 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ok2Ai-0006q4-GH for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Oct 2022 13:51:12 +0200 Original-Received: from localhost ([::1]:50766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok2Ah-0004ai-4S for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Oct 2022 07:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok299-0003kF-67 for emacs-devel@gnu.org; Sun, 16 Oct 2022 07:49:35 -0400 Original-Received: from mail-pg1-f169.google.com ([209.85.215.169]:40705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok297-0001mz-HA; Sun, 16 Oct 2022 07:49:34 -0400 Original-Received: by mail-pg1-f169.google.com with SMTP id l6so8211018pgu.7; Sun, 16 Oct 2022 04:49:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vpGKJzzvt2AqEUc9WCQ1i2Pqjw/RPYsn8gww3cskNJ4=; b=Qyum97BMO8OtkCxc8i4BUbzZr8z5zGnrTrD3xMXKHQKZf4c5n2x6t0gcg6bdRnoi8v n/fmMZE/s+uhOs8TNEtB+hl9nAt1dUbH+2CeUdCN//fuVef/Y71b7X65Bt/fxdOu3/GK koLFNKxO1pcr3LMb/4S8HQ8IvEemPO1A46e0NhenBGWsG6f6eMla7glIpjEiABLzupsR DeWOetPrJHyjA6AgpuNeNH5JUzmrp83ibTQXmECCGkKLkh41KhiaK7rSinPC7996pw+Q cFBW0nwLV5Ak0ABJk5lhFrB7PIHqkbxfDYprhA+dErEkbSFz7/9qVkZCjBkZL2jqY8Hp jsnw== X-Gm-Message-State: ACrzQf3LpSf0u7zcWiz0o3exiYGAu6ONKIaIEUomOuiwBvtjjhh4f3l+ NIEc5ckB8c3Hjb4TAvz05qA8FO/YjqY3Lr5U3PRcnbELafg= X-Google-Smtp-Source: AMsMyM5sZsG0ZHhgpnbPvcgQ2VuY8uhpifUJ/qhxa7vP8MPs8Sm/IVQKaEecRU6cfPLWMQke1cUCT/WZ4EZ7SrHVby8= X-Received: by 2002:a63:5415:0:b0:439:e932:e025 with SMTP id i21-20020a635415000000b00439e932e025mr6138646pgb.63.1665920971393; Sun, 16 Oct 2022 04:49:31 -0700 (PDT) In-Reply-To: <83a65w5o91.fsf@gnu.org> Received-SPF: pass client-ip=209.85.215.169; envelope-from=john.yates.sheets@gmail.com; helo=mail-pg1-f169.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297860 Archived-At: On Sun, Oct 16, 2022 at 1:30 AM Eli Zaretskii wrote: > > Doesn't vc-region-history (C-x v h) fit the bill? No. vc-region-history's presents a concatenation of diffs. git-timemachine is more akin to a non-existent vc-revision-same-window. It is a minor mode applied to a buffer visiting a version controlled file. It renders that buffer readonly and then allows one to 'scroll' backward and forward over that file's linear history, always showing a fully reconstructed revision, reusing a single buffer. My druthers would be for a vc-browse command that pops a new buffer containing the most recently committed revision of the subject file. It would support operations similar to git-timemachine: * vc-browse-show-previous * vc-browse-show-next git-timemachine style refinements could include: * vc-browse-show-commit * vc-browse-show-annotation * vc-browsw-goto-earlier-commit (regex search)