From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Remove mouse-face in Occur buffers Date: Sat, 29 Oct 2005 22:48:54 +0300 Organization: JURTA Message-ID: <87zmosceb3.fsf@jurta.org> References: <87br19nzk1.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130615653 26360 80.91.229.2 (29 Oct 2005 19:54:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 19:54:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 21:54:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVwle-0004tM-VR for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 21:53:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVwle-0004Ks-80 for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 15:53:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVwkd-000430-QP for emacs-devel@gnu.org; Sat, 29 Oct 2005 15:52:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVwkZ-000423-Nx for emacs-devel@gnu.org; Sat, 29 Oct 2005 15:52:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVwkZ-000420-KM for emacs-devel@gnu.org; Sat, 29 Oct 2005 15:52:23 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVwkY-0003sj-Qs for emacs-devel@gnu.org; Sat, 29 Oct 2005 15:52:23 -0400 Original-Received: from mail.neti.ee (80-235-37-93-dsl.mus.estpak.ee [80.235.37.93]) by Relayhost1.neti.ee (Postfix) with ESMTP id 5568C1FAC; Sat, 29 Oct 2005 22:52:31 +0300 (EEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Sat, 29 Oct 2005 19:35:17 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45097 Archived-At: >> 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/