From: Juri Linkov <juri@linkov.net>
To: Dan Jacobson <jidanni@jidanni.org>
Cc: 73745@debbugs.gnu.org
Subject: bug#73745: Add query-replace-reverse functions
Date: Mon, 14 Oct 2024 20:45:43 +0300 [thread overview]
Message-ID: <865xpua88o.fsf@mail.linkov.net> (raw)
In-Reply-To: <87plo6lxal.3.fsf@jidanni.org> (Dan Jacobson's message of "Fri, 11 Oct 2024 19:00:02 +0800")
> It is prompting with my previous action, but now I want to do the exact
> opposite, `<h2 class="zz" → <h`
> No, I can't just put my (emacs -nw) cursor on top of the arrow and hit M-t.
Some time ago we discussed 'M-t' to reverse 'from'/'to' parts.
But the problem is that for multi-word replacements
'M-t' should still transpose words inside 'from' or 'to'
separately.
All transpose keys ‘C-t’ (‘transpose-chars’), ‘M-t’
(‘transpose-words’), ‘C-M-t’ (‘transpose-sexps’), even ‘C-x C-t’
(‘transpose-lines’) for multi-line replacements -
all these keys can't be used to reverse 'from'/'to'.
next prev parent reply other threads:[~2024-10-14 17:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 11:00 bug#73745: Add query-replace-reverse functions Dan Jacobson
2024-10-11 13:08 ` Eli Zaretskii
2024-10-14 17:45 ` Juri Linkov [this message]
2024-10-14 21:32 ` Stefan Kangas
2024-10-15 6:17 ` Juri Linkov
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=865xpua88o.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=73745@debbugs.gnu.org \
--cc=jidanni@jidanni.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.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).