From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#15245: Search and replace, but based on text properties (inclulding face properties) Date: Mon, 02 Sep 2013 23:55:17 +0530 Message-ID: <877gez13oy.fsf@gmail.com> References: <87r4d7yf1d.fsf@gmail.com> <0b79b9b5-706a-4739-b4a3-b6bd19aea0bf@default> <87d2or5erm.fsf@gmail.com> <46bb3911-d691-4381-8174-67ad23ddf9e4@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378146255 24265 80.91.229.3 (2 Sep 2013 18:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 18:24:15 +0000 (UTC) Cc: 15245@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 20:24:17 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 1VGYnQ-0005fE-PY for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 20:24:16 +0200 Original-Received: from localhost ([::1]:41558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGYnQ-0004bV-CD for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 14:24:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGYnI-0004aV-Cg for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 14:24:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGYnD-000351-0c for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 14:24:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGYnC-00034u-Tf for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 14:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGYnC-0007Ri-7l for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 14:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2013 18:24:02 +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.137814619328560 (code B ref 15245); Mon, 02 Sep 2013 18:24:02 +0000 Original-Received: (at 15245) by debbugs.gnu.org; 2 Sep 2013 18:23:13 +0000 Original-Received: from localhost ([127.0.0.1]:37783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGYmO-0007QZ-GO for submit@debbugs.gnu.org; Mon, 02 Sep 2013 14:23:13 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:49619) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGYmL-0007QJ-RY for 15245@debbugs.gnu.org; Mon, 02 Sep 2013 14:23:10 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id fz6so5472806pac.3 for <15245@debbugs.gnu.org>; Mon, 02 Sep 2013 11:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=3hSfuQ0wctsWK66N2kvcZw7VsoR9B8y8l7sy6pXOadQ=; b=T60b+jLv3kHfg/ufNteSrJkU/65bVau/nC6cgkcb/er33NfTGP23eCOI6Mr6jZC765 0j5abzH/CKLCPO5xXTxLDHkkILlaDRYvQh2WuUbdD0bbQzRWKQZK9WEcmy2nHuyuV4Yx 6wl+P++WfLgZhR548QKRSK19Fn82OL82b2nx5MsteZ0oM5yPbzX1W2BVEuOXCP1F3ZJ9 WcsFQPJA2imP9dwtPfM6tCOrzeDEg/uvG9GCmXJm+UCQsDjvSpExpy6q7K3TfnR4McME hVpW3a05hdoHDyatXNtDlyI7SsBJN/NaAX90AkRiordhfKKpUJylsvwMt6zYzjP9eLhS o/xQ== X-Received: by 10.68.5.228 with SMTP id v4mr27021369pbv.117.1378146183701; Mon, 02 Sep 2013 11:23:03 -0700 (PDT) Original-Received: from porunai ([101.63.233.225]) by mx.google.com with ESMTPSA id bu4sm17338460pbc.11.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 02 Sep 2013 11:23:03 -0700 (PDT) In-Reply-To: <46bb3911-d691-4381-8174-67ad23ddf9e4@default> (Drew Adams's message of "Mon, 2 Sep 2013 11:01:52 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:77914 Archived-At: Drew Adams writes: > Also, when you say "convert" it makes me realize that you asked about > search and *replace*, not just search. Not sure what you have in mind > there. The idea is a quick and dirty to convert a text rendered by eww in to Org format. ---------------------------------------------------------------- For example, if eww read bold text and converted it to bold text (Imagine a bold face) I can do a search and replace on bold text property and get *bold* which is the Org equivalent for a bold markup. ---------------------------------------------------------------- For example, if eww read

level 2 headline

and converted it to level 2 headline (Imagine a bold face, but with text property :tag h2) I can do a search and replace on h2 property and end up with ** level 2 headline which is the Org equivalent for a headline. If it was Creole or Oddmuse it will be (I think) == level 2 headline ---------------------------------------------------------------- This is a quick and dirty way of "importing" an HTML document in to plain markup text. I have a feeling that it can be useful.