From: brian powell <briangpowellms@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Fwd: Kedit-like ALL command for emacs
Date: Fri, 8 Apr 2011 15:27:03 -0400 [thread overview]
Message-ID: <BANLkTinh77zYP4rqia6AT1kDSN-pgRTudw@mail.gmail.com> (raw)
In-Reply-To: <BANLkTindCwtENejh7mqTgTET7f+pKsd4yQ@mail.gmail.com>
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 <kjambunathan@gmail.com> wrote:
> brian powell <briangpowellms@gmail.com> 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 <adatgyu...@gmail.com> 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.
>>
>>
>
> --
>
parent reply other threads:[~2011-04-08 19:27 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <BANLkTindCwtENejh7mqTgTET7f+pKsd4yQ@mail.gmail.com>]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinh77zYP4rqia6AT1kDSN-pgRTudw@mail.gmail.com \
--to=briangpowellms@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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/org-mode.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).