From: Drew Adams <drew.adams@oracle.com>
To: Jambunathan K <kjambunathan@gmail.com>, 15245@debbugs.gnu.org
Subject: bug#15245: Search and replace, but based on text properties (inclulding face properties)
Date: Mon, 2 Sep 2013 08:29:14 -0700 (PDT) [thread overview]
Message-ID: <0b79b9b5-706a-4739-b4a3-b6bd19aea0bf@default> (raw)
In-Reply-To: <87r4d7yf1d.fsf@gmail.com>
> 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=15244
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
next prev parent reply other threads:[~2013-09-02 15:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 5:21 bug#15245: Search and replace, but based on text properties (inclulding face properties) Jambunathan K
2013-09-02 15:29 ` Drew Adams [this message]
2013-09-02 17:12 ` Jambunathan K
2013-09-02 18:01 ` Drew Adams
2013-09-02 18:25 ` Jambunathan K
2013-09-02 18:43 ` Drew Adams
2013-09-02 19:44 ` Juri Linkov
2013-09-02 20:03 ` Drew Adams
2013-11-15 4:55 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b79b9b5-706a-4739-b4a3-b6bd19aea0bf@default \
--to=drew.adams@oracle.com \
--cc=15245@debbugs.gnu.org \
--cc=kjambunathan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).