[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove mouse-face in Occur buffers
From: |
Juri Linkov |
Subject: |
Re: Remove mouse-face in Occur buffers |
Date: |
Sat, 29 Oct 2005 22:48:54 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>> When `keep-props' arg is non-nil, occur copies text properties from
>> the original buffer to the Occur buffer. But when the original buffer
>> contains areas with `mouse-face' properties, highlighting these copied
>> areas in the Occur buffer interferes with highlighted areas indicating
>> the matching lines. This can be reproduced for example by calling
>> `C-u M-x occur RET' on Info buffers.
>
> I'm not sure I understand reason for this change, so I don't know
> whether it really just applies to the mouse-face property.
To see what I mean you can type `C-h i d C-u M-x occur RET emacs RET'
and to move the mouse cursor on menu items in occur context lines.
Mouse highlighting is misleading here, because pressing mouse-1 or
mouse-2 doesn't work. I proposed to remove mouse highlighting on
copied text.
> But to me it sounds as if remove-yank-excluded-properties could be
> useful here. Can you pls. think about it.
`remove-yank-excluded-properties' is surely related to this, but
I think it is a different thing. It defines text properties to
remove when yanking, but displaying copied lines in the occur buffer
is not quite yanking. For example, I customized `yank-excluded-properties'
to t in .emacs, because I want to remove all text properties on yanked text,
but using the same value of `yank-excluded-properties' to remove
all text properties in the occur buffer seems as unexpected and unrelated
thing to me. Maybe, there should be a separate variable defining a list
of text properties to remove on copied text in the occur buffer.
Do you think it would be useful?
--
Juri Linkov
http://www.jurta.org/emacs/