GNU bug report logs -
#40401
28.0.50; M-x landmark not exists, while described in manual
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Fri, 3 Apr 2020 08:37:01 UTC
Severity: normal
Tags: fixed
Found in version 25.1
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Ah, you removed it in Emacs 26 actually (I didn't find the commit before
> because I did a git message search for 'landmark' but you put 'Landmark'
> in the commit message. I should add --regexp-ignore-case to log search
> commands).
Currently I'm working on making hi-lock case-insensitive in bug#40337,
and would be interested in ensuring git search case-insensitive as well.
When I tried to run
M-x vc-log-search RET landmark
it found that commit with upper-case 'Landmark' using the command:
git --no-pager log --no-color -i --grep=landmark .
I wonder if this -i (--regexp-ignore-case) here should use the same
logic as in many other search commands:
(if (and case-fold-search search-upper-case)
(isearch-no-upper-case-p regexp t)
case-fold-search)
so if there are no upper-case letters, then vc-log-search is case-insensitive,
otherwise with upper-case letters case-sensitive?
BTW, I use the following nice customization that highlights all found
occurrences in the log:
;; Highlight found occurrences in *vc-search-log* output buffer of vc-log-search.
;; Warning: uses Emacs regexps to highlight Git regexp - their syntax might differ!
(advice-add 'vc-git-log-search :after
(lambda (buffer pattern)
(with-current-buffer buffer
(vc-run-delayed
(highlight-regexp pattern 'hi-yellow)))))
and with fixes from bug#40337 it highlighted even 'Landmark'.
What I don't know is how to make this feature generally useful.
Maybe by adding a new customizable option for vc-git-log-search
that when non-nil will highlight the results?
This bug report was last modified 5 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.