emacs-diffs
[Top][All Lists]
Advanced

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

master 4f43058: Adjust grep-mode end-col function return value


From: Mattias Engdegård
Subject: master 4f43058: Adjust grep-mode end-col function return value
Date: Mon, 26 Jul 2021 15:30:01 -0400 (EDT)

branch: master
commit 4f43058e9a69552e4bf600fd7a93bc1c459742ef
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Adjust grep-mode end-col function return value
    
    * lisp/progmodes/grep.el (grep-regexp-alist): Adjust the return value
    from the END-COL function by one since it is now (after fixing
    bug#49624) inclusive.  Found by Juri Linkov.
---
 lisp/progmodes/grep.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 91c72a9..8f0a5ac 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -389,7 +389,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] 
modifies
                    (and mbeg (next-single-property-change
                               mbeg 'font-lock-face nil end))))
              (when mend
-               (- mend beg))))))
+               (- mend beg 1))))))
      nil nil
      (3 '(face nil display ":")))
     ("^Binary file \\(.+\\) matches" 1 nil nil 0 1))



reply via email to

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