emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#30281: closed (list-matching-lines-jump-to-current


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30281: closed (list-matching-lines-jump-to-current-line inserts duplicate line)
Date: Mon, 05 Feb 2018 21:56:01 +0000

Your message dated Mon, 05 Feb 2018 23:54:45 +0200
with message-id <address@hidden>
and subject line Re: bug#30281: list-matching-lines-jump-to-current-line 
inserts duplicate line
has caused the debbugs.gnu.org bug report #30281,
regarding list-matching-lines-jump-to-current-line inserts duplicate line
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
30281: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30281
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: list-matching-lines-jump-to-current-line inserts duplicate line Date: Mon, 29 Jan 2018 00:31:53 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
0. emacs -Q
1. Eval: (setq list-matching-lines-jump-to-current-line t)
2. M-<
3. M-s o text RET

Two identical lines are displayed in *Occur*.

As a possible solution, when the current line contains matches
I propose to use add-text-properties to add the face from
list-matching-lines-current-line-face over the matched current line.



--- End Message ---
--- Begin Message --- Subject: Re: bug#30281: list-matching-lines-jump-to-current-line inserts duplicate line Date: Mon, 05 Feb 2018 23:54:45 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
>> 0. emacs -Q
>> 1. Eval: (setq list-matching-lines-jump-to-current-line t)
>> 2. M-<
>> 3. M-s o text RET
>>
>> Two identical lines are displayed in *Occur*.
>>
>> As a possible solution, when the current line contains matches
>> I propose to use add-text-properties to add the face from
>> list-matching-lines-current-line-face over the matched current line.
>
> Sorry, I meant add-face-text-property to add background from
> list-matching-lines-current-line-face, while still keeping
> highlighting of match faces over matches on the current line
> in *Occur*.

What is worse it's completely broken for context lines.

For example, with the buffer

a
b
c
z
a
b
c
z
a
b
c

go to the line with the second occurrence of "z" and type
C-u 1 M-s o z RET

The result:

2 matches for "z" in buffer: *scratch*
       :c
      4:z
      8:z
       :a
-------
       :c
      8:z
       :a

Now this is fixed in master.


--- End Message ---

reply via email to

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