From: gnuist <gnuist@protonmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Newbie: Merging buffer A with B using ediff-buffers
Date: Fri, 19 Jul 2024 06:22:50 +0000 [thread overview]
Message-ID: <WAnVzeJENMhUP5b81c2O3qEdZQaXUYtaHIOTjobjLdp2DTBLpVhOEvKm1xovs5It_2TARn7FAtDvK51u-pJ9VtlrwIAD3Ttacu_4wrDRr1Y=@protonmail.com> (raw)
Hello emacs users,
I have a buffer A which has text lines like
text that does not contain braces but some tabs {} some more text with tabs but no braces
I have a buffer B which has text lines like
identical text to A but with ";" in place of tabs {some semicolon containing text} some more text with ";" in place of tabs
I want to merge them as follows: I want to replace the braced text from B to A -OR- non-brace text from A to B, identical result.
At this moment, I do not want to use ediff-merge-buffers, emerge, smerge, etc but ediff-buffers, ediff-customize etc
to accomplish this.
This is what I have done:
I have ran this command in the main emacs window with split panes and both A and B buffers in it
and the command window pops out which toggles its size by using "?" char.
I can use "h" to rotate through various levels of highlighting.
I can use "@" and "!" to refine and also "*" for refinement.
But when I use #f to focus using a regexp {.*} for both A and B, I am not seeing any special benefit.
and when I use #h to hide using a regexp [;] for A and [tab] for B, I do not see any special benefit either.
I do not want to write a complicated regexp,
nor do I want to write a macro to do narrow-to-region,
nor do I want to write a complex nested regexp within a regexp
or put markers or delimiters around, as these are side-effects that require cleanup and can introduce errors.
I want to exercise all the features or as many features of ediff-buffers as possible, and if this is not possible, then can
go to other ediff-merge-... commands.
Thanks for any help.
gnuist
next reply other threads:[~2024-07-19 6:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 6:22 gnuist [this message]
2024-07-20 6:44 ` Newbie: Merging buffer A with B using ediff-buffers Michael Heerdegen via Users list for the GNU Emacs text editor
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='WAnVzeJENMhUP5b81c2O3qEdZQaXUYtaHIOTjobjLdp2DTBLpVhOEvKm1xovs5It_2TARn7FAtDvK51u-pJ9VtlrwIAD3Ttacu_4wrDRr1Y=@protonmail.com' \
--to=gnuist@protonmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.