From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Changes to emacs/lisp/progmodes/grep.el Date: Tue, 06 Jul 2004 19:55:17 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87pt79nki2.fsf@mail.jurta.org> References: <87isdgnzzi.fsf@mail.jurta.org> <20040625220304.0f1fd05a@pfdabpc.inhouse.start.de> <20040627123340.5d3354cd@pfdabpc.inhouse.start.de> <20040628104013.5b4eb37e@pfdabpc.inhouse.start.de> <7494-Mon28Jun2004200058+0300-eliz@gnu.org> <20040628232216.5be7f8dd@pfdabpc.inhouse.start.de> <5567-Tue29Jun2004071049+0300-eliz@gnu.org> <20040629220851.07104e4c@pfdabpc.inhouse.start.de> <87oen1k4yc.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089133164 21562 80.91.224.253 (6 Jul 2004 16:59:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2004 16:59:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 06 18:59:06 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhtHe-0000g0-00 for ; Tue, 06 Jul 2004 18:59:06 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhtHd-0005p3-00 for ; Tue, 06 Jul 2004 18:59:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhtJf-0004pS-Bl for emacs-devel@quimby.gnus.org; Tue, 06 Jul 2004 13:01:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BhtJV-0004p7-KT for emacs-devel@gnu.org; Tue, 06 Jul 2004 13:01:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BhtJT-0004oE-Qa for emacs-devel@gnu.org; Tue, 06 Jul 2004 13:01:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhtJT-0004oB-KZ for emacs-devel@gnu.org; Tue, 06 Jul 2004 13:00:59 -0400 Original-Received: from [66.33.205.9] (helo=spatula.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BhtH1-0002Ep-NF for emacs-devel@gnu.org; Tue, 06 Jul 2004 12:58:27 -0400 Original-Received: from mail.jurta.org (80-235-32-73-dsl.mus.estpak.ee [80.235.32.73]) by spatula.dreamhost.com (Postfix) with ESMTP id 58A1317D021 for ; Tue, 6 Jul 2004 09:58:25 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <87oen1k4yc.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 30 Jun 2004 08:08:59 +0300") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) 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: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25495 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25495 Juri Linkov writes: > Solving the drawbacks of invisible text is a separate issue. There is > a `search-invisible' option in isearch.el, but it can't find a string > with invisible text inside it. To discard invisible text when yanking > it's possible to implement an option like `yank-excluded-properties'. BTW, I noticed that the first item of etc/TODO describes exactly the same need: * Small but important fixes needed in existing features: ** Fix the kill/yank treatment of invisible text. At the moment, invisible text is placed in the kill-ring, so that the contents of the ring may not correspond to the text as displayed to the user. It ought to be possible to omit text which is invisible (due to a text-property, overlay, or selective display) from the kill-ring. It would be quite easy to implement: for example, to create a new boolean option, e.g. `yank-as-displayed', and in `insert-for-yank-1' to handle it by deleting the text with `invisible' property and replacing the text with `display' property by the display value (though, I don't see how overlays could be handled here since they are not saved with the text in the kill-ring). Is it a right way to implement this? This could be implemented now given that it is described as "small but important fix". -- Juri Linkov http://www.jurta.org/emacs/