GNU bug report logs - #43715
28.0.50; Duplicate results in project-find-regexp

Previous Next

Package: emacs;

Reported by: Pankaj Jangid <pankaj <at> codeisgreat.org>

Date: Wed, 30 Sep 2020 07:02:02 UTC

Severity: normal

Merged with 36967

Found in versions 27.0.50, 28.0.50

Fixed in version 28.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: Dmitry Gutov <dgutov <at> yandex.ru>, 43715 <at> debbugs.gnu.org
Subject: bug#43715: 28.0.50; Duplicate results in project-find-regexp
Date: Wed, 30 Sep 2020 15:59:10 +0200
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

> I was search a regular expression 'mail' in project ~/.emacs.d. This is
> part of the result,
>
> /Users/pankaj/.emacs.d/lisp/init-email.el
>  1: ;;; init-email.el --- configure Email -*- lexical-binding: t -*-
>  1: ;;; init-email.el --- configure Email -*- lexical-binding: t -*-
> 17: ;; (add-hook 'mail-citation-hook 'sc-cite-original)
> 34: ;;   "Fetch email addresses from the email headers."
> 34: ;;   "Fetch email addresses from the email headers."
> 42: (provide 'init-email)
> 43: ;;; init-email.el ends here
>
> Notice the duplicate results from line number 1 and 34.

It looks like when there are two matches in the same line, the line is
listed twice?  So I tried the same command on the Emacs tree (with
"regexp" as the regexp) and, indeed:

 2215: 	that debugger code that needs to do regexp match won't break
 2438: 	Fix regexp-opt documentation (bug #17862)
 2440: 	* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
 2440: 	* lisp/emacs-lisp/regexp-opt.el (regexp-opt):

So it this a feature or a bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.