From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15245: Search and replace, but based on text properties (inclulding face properties) Date: Mon, 2 Sep 2013 08:29:14 -0700 (PDT) Message-ID: <0b79b9b5-706a-4739-b4a3-b6bd19aea0bf@default> References: <87r4d7yf1d.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378135821 32289 80.91.229.3 (2 Sep 2013 15:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 15:30:21 +0000 (UTC) To: Jambunathan K , 15245@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 17:30:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGW57-0001ea-3v for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 17:30:21 +0200 Original-Received: from localhost ([::1]:40558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGW56-0003TI-Mt for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 11:30:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGW4x-0003Rs-RY for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGW4r-0002AT-Bf for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:30:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGW4r-00028B-0y for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGW4p-00033U-Qt for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2013 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15245 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15245-submit@debbugs.gnu.org id=B15245.137813576811667 (code B ref 15245); Mon, 02 Sep 2013 15:30:03 +0000 Original-Received: (at 15245) by debbugs.gnu.org; 2 Sep 2013 15:29:28 +0000 Original-Received: from localhost ([127.0.0.1]:37655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGW4F-000326-DD for submit@debbugs.gnu.org; Mon, 02 Sep 2013 11:29:27 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:18162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGW4D-00031r-3s for 15245@debbugs.gnu.org; Mon, 02 Sep 2013 11:29:25 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r82FTI3T014753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Sep 2013 15:29:19 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r82FTI1x010523 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Sep 2013 15:29:18 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r82FTH0c025112; Mon, 2 Sep 2013 15:29:17 GMT In-Reply-To: <87r4d7yf1d.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77905 Archived-At: > The underlying use-case on how such a feature could be put to good use > is explained in the following bug (which is filed against eww) > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15244 FWIW, this feature is available in isearch+.el since 2011. It could be incorporated into vanilla Emacs. >From the Commentary: ;; * Ability to search within character-property zones. Example: ;; search within zones having a `face' text property with a value ;; of `font-lock-comment-face' or `font-lock-string-face'. Search ;; overlays or text properties. From within Isearch: `C-t' (or ;; `C-M-t' for regexp search). First time, or with a prefix ;; argument, you are prompted for the property and its values. See ;; the doc string of command `isearchp-char-prop-forward'. ;; ;; * Besides relying on other code to set `face' and other text ;; properties for use with `C-t', you can use command ;; `isearchp-put-prop-on-region' (outside of Isearch) to add a text ;; property to a zone of text. By default, it applies the last ;; property and value whose zones you searched using `C-t', but a ;; prefix arg lets you specify the property and value to apply. ;; This gives you an interactive way to set up zones for ;; text-property search (`C-t'). For property `face', empty input ;; removes all faces from the region. Code: http://www.emacswiki.org/emacs/download/isearch%2b.el More description: http://www.emacswiki.org/IsearchPlus