From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Fwd: Kedit-like ALL command for emacs Date: Fri, 8 Apr 2011 15:27:03 -0400 Message-ID: References: <811v1cty6w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8HKl-00087n-Fi for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 15:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8HKk-0002B2-2x for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 15:27:07 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8HKj-0002Ag-Pk for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 15:27:06 -0400 Received: by wyf19 with SMTP id 19so3993382wyf.0 for ; Fri, 08 Apr 2011 12:27:04 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Well, if that is what he wanted; then, suggest one of these: Mx query-replace and/or Mx query-replace-regexp --EMACS has the best/fastest regexp engine available for doing an Mx query-replace-regexp Because ELISP has a lot of functions optimized for editing files, using multiple buffers, windows, etc. The regexp engine is optimized for "first-character-matching"; i.e. quickly finding and highlighting and replacing characters in a buffer--faster than anything else, last time I checked. Suggest using QEMACS if you want to edit multigigabyte files. Also, to use an occur buffer (which you seem to refer to below) all you would do there would be: Mx occur Then go to the *Occur* buffer where it shows the matching regexp in highlighted text and then LeftMouse on the line (anywhere on the line) and the line will pop up in the other window. Also, there is a way to edit every file in the set of a regexp in a directory tree (a top-level directory and all of its subdirectories) that contains a regexp--one replacement at a time: ** "Occur mode changes: *** The new command `multi-occur' is just like `occur', except it can search multiple buffers. =A0There is also a new command `multi-occur-in-matching-buffers' which allows you to specify the buffers to search by their filenames or buffer names. =A0Internally, Occur mode has been rewritten, and now uses font-lock, among other changes." So you could do something like "emacs blahfiles*" and then: Mx multi-occur and/or Mx multi-occur-in-matching-buffers On Fri, Apr 8, 2011 at 2:06 PM, Jambunathan K wrot= e: > brian powell writes: > >> After reviewing what KEDIT ALL is; it seems to me all you want to do >> is--in an EMACS buffer--regardless of the version or type of EMACS: > >> >> Mx list-matching-lines >> > > I haven't used KEDIT. > > I did try out all.el. Within the occur-like buffer that all.el pops up, > one can edit the matches and have the replacements propagated to the > searched buffers. > > But list-matching-lines pops up a read-only buffer. Also the last line > of the docstring says `In any case the searched buffers are not > modified'. > > I think OP wanted something where the searched buffers are modified from > within the occur buffer. > > Jambunathan K. > >> On Mar 30, 7:53=A0am, Tom wrote: >>> Marc Mientki no.com> writes: >>> >>> >>> >>> > Am 29.03.2011 17:42, schrieb Tom: >>> > > Do you know a package which implements the KEDIT ALL command for Em= acs? >>> >>> > >http://www.kedit.com/hint_all.html >>> >>> >ftp://ftp.dina.kvl.dk/pub/Staff/Per.Abrahamsen/auctex/all.el >>> > Maybe? >>> >>> Looks good. Thanks. >>> >>> I wonder why it is not part of the Emacs distribution. Seems like a >>> useful package. >> >> > > -- >