emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r115886: Fix defun navigation in vc log view.


From: Daniel Colascione
Subject: Re: [Emacs-diffs] trunk r115886: Fix defun navigation in vc log view.
Date: Mon, 06 Jan 2014 07:08:27 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 01/06/2014 07:05 AM, Stefan Monnier wrote:
+       Fix defun navigation in vc log view.
[...]
    (if (< arg 0)
+      (log-view-end-of-defun (- arg))

This looks very fishy.  beginning-of-defun-function should never move to
the end of a defun, even when called with a negative argument.

In the vc log case, the end of the defun is the beginning of the next, so in this case, the code should be correct.

So, if this is really correct, it needs a comment explaining why this is
the right thing to do.  And if you could add some regression tests for your
commit it would be even better.

Sure.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]