From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: In place (live) editing of matches - is there a package for it? Date: Fri, 14 Oct 2011 16:47:57 +0530 Message-ID: <81y5wnlt3u.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318591111 23721 80.91.229.12 (14 Oct 2011 11:18:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2011 11:18:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 13:18:24 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REfmS-0000VF-7c for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2011 13:18:24 +0200 Original-Received: from localhost ([::1]:38692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REfmR-0005Vu-Gv for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2011 07:18:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REfmN-0005Ve-Gj for help-gnu-emacs@gnu.org; Fri, 14 Oct 2011 07:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REfmM-0001Uo-6U for help-gnu-emacs@gnu.org; Fri, 14 Oct 2011 07:18:19 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]:46812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REfmM-0001Ug-04 for help-gnu-emacs@gnu.org; Fri, 14 Oct 2011 07:18:18 -0400 Original-Received: by pzd13 with SMTP id 13so412967pzd.6 for ; Fri, 14 Oct 2011 04:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=dzDIzPW7KvJDCM1PCJmsNJmirJxJ+hB35HEWwG6pa+c=; b=xrOU2U4ya3KcmW25724JE7JitgR0s+PSXYrEenhhg1L7NFoftlmQV7W/53ELOz1P8N BbgoYLNR8KmYce/ij61GA2XntoeASFUXlzVZfsGgb27MA5ekuROyL0SEQMwwjwz8z+3n JCjYRZGGLq8YDn/sKxtXydX6lVRaRJAUH89+U= Original-Received: by 10.68.38.42 with SMTP id d10mr16344818pbk.50.1318591096280; Fri, 14 Oct 2011 04:18:16 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.184.119.85]) by mx.google.com with ESMTPS id y4sm18817641pbe.4.2011.10.14.04.18.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Oct 2011 04:18:14 -0700 (PDT) In-Reply-To: (Tom's message of "Fri, 14 Oct 2011 10:57:13 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82551 Archived-At: all.el in GNU's ELPA - http://elpa.gnu.org/packages/ If you are running recent Emacs-24 pretest builds, checkout occur-edit-mode. Btw, You may want to say Hi! to Carsten after reading this mail. http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg00125.html Tom writes: > Recently I had to work multiple times with text files and it > involved search/replacing strings in the file multiple times. > > For example, if the file has the word "phone" in multiple places > and I want to replace it with "phoning" then I go to the beginning > of the file and replace all the matches with a search/replace > command. > > It occurred to me it would be more convenient if I could just select > the word (or a phrase) and use a command which allows me to live edit > this region, so that all the changes I make within the selected part are > reflected instantly at all the other places in the file which have > the same text as the initial selection. > > Is there an existing package which does this? > > > > --