emacs-devel
[Top][All Lists]
Advanced

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

Re: master 502dbd1f7c 1/2: Make diff--iterate-hunks more resilient


From: Robert Pluim
Subject: Re: master 502dbd1f7c 1/2: Make diff--iterate-hunks more resilient
Date: Fri, 21 Jan 2022 14:48:41 +0100

>>>>> On Fri, 21 Jan 2022 06:08:15 -0500 (EST), Lars Ingebrigtsen 
>>>>> <larsi@gnus.org> said:

    Lars> branch: master
    Lars> commit 502dbd1f7c0295c1f01643778d2a6aea17a9808c
    Lars> Author: Lars Ingebrigtsen <larsi@gnus.org>
    Lars> Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Lars>     Make diff--iterate-hunks more resilient
    
    Lars>     * lisp/vc/diff-mode.el (diff--iterate-hunks): Ignore malformed
    Lars>     hunks instead of signalling errors (bug#53343).
    Lars> ---
    Lars>  lisp/vc/diff-mode.el | 36 ++++++++++++++++++++----------------
    Lars>  1 file changed, 20 insertions(+), 16 deletions(-)

    Lars> diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
    Lars> index 37eaf254fd..ae2f545966 100644
    Lars> --- a/lisp/vc/diff-mode.el
    Lars> +++ b/lisp/vc/diff-mode.el
    Lars> @@ -2270,23 +2270,27 @@ Return new point, if it was moved."
 
    Lars>  (defun diff--iterate-hunks (max fun)
    Lars>    "Iterate over all hunks between point and MAX.
    Lars> -Call FUN with two args (BEG and END) for each hunk."
    Lars> +Call FUN with two args (BEG and END) for each hunk.
    Lars> +If INHIBIT-ERROR, ignore malformed hunks."

Did you intend to add a new argument to diff--iterate-hunks?

Robert
-- 



reply via email to

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