all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raoul Gough <raoulgough@yahoo.co.uk>
To: 20470@debbugs.gnu.org
Subject: bug#20470: Acknowledgement (24.5; VC log buffer no longer scrolls itself)
Date: Thu, 30 Apr 2015 17:01:51 +0100	[thread overview]
Message-ID: <1430409711.27293.YahooMailBasic@web171304.mail.ir2.yahoo.com> (raw)
In-Reply-To: <1430400129.57087.YahooMailBasic@web171304.mail.ir2.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 112 bytes --]

I've attached a propose patch to fix this bug, which makes the jump-to-revision configurable (defaulting to off)

[-- Attachment #2: vc.el.20470.patch --]
[-- Type: application/octet-stream, Size: 1213 bytes --]

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index bb4dd60..409a1d8 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -807,6 +807,17 @@ Not all VC backends are able to support this feature."
   :type 'integer
   :group 'vc)
 
+(defcustom vc-log-jump-to-current nil
+  "If non-nil, `vc-print-log' moves point automatically to the
+log message for the current working revision.
+
+Jumping to the current revision was the default behaviour until
+emacs 24.4 where it was disabled unconditionally. Now it is
+configurable."
+  :type 'boolean
+  :group 'vc
+  :version "25.1")
+
 (defcustom vc-allow-async-revert nil
   "Specifies whether the diff during \\[vc-revert] may be asynchronous.
 Enabling this option means that you can confirm a revert operation even
@@ -2304,7 +2315,7 @@ WORKING-REVISION and LIMIT."
   (let* ((vc-fileset (vc-deduce-fileset t)) ;FIXME: Why t? --Stef
 	 (backend (car vc-fileset))
 	 (files (cadr vc-fileset))
-;;	 (working-revision (or working-revision (vc-working-revision (car files))))
+         (working-revision (or working-revision (and vc-log-jump-to-current (vc-working-revision (car files)))))
          )
     (vc-print-log-internal backend files working-revision nil limit)))
 

  reply	other threads:[~2015-04-30 16:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 13:22 bug#20470: 24.5; VC log buffer no longer scrolls itself Raoul Gough
2015-04-30 16:01 ` Raoul Gough [this message]
2015-05-01 17:53 ` Stefan Monnier
2020-08-25  9:22   ` Lars Ingebrigtsen
2020-08-25 18:30     ` Juri Linkov
2020-10-11  3:18       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1430409711.27293.YahooMailBasic@web171304.mail.ir2.yahoo.com \
    --to=raoulgough@yahoo.co.uk \
    --cc=20470@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.