[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Fwd: Kedit-like ALL command for emacs
From: |
brian powell |
Subject: |
[O] Fwd: Kedit-like ALL command for emacs |
Date: |
Fri, 8 Apr 2011 15:27:03 -0400 |
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. There 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. Internally,
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 <address@hidden> wrote:
> brian powell <address@hidden> 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 am, Tom <address@hidden> wrote:
>>> Marc Mientki <no <at> no.com> writes:
>>>
>>>
>>>
>>> > Am 29.03.2011 17:42, schrieb Tom:
>>> > > Do you know a package which implements the KEDIT ALL command for Emacs?
>>>
>>> > >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.
>>
>>
>
> --
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Fwd: Kedit-like ALL command for emacs,
brian powell <=