From: Theodor Thornhill <theo@thornhill.no>
To: emacs-devel@gnu.org
Cc: monnier@iro.umontreal.ca
Subject: Transpose-words or transpose-sexps change?
Date: Sat, 17 Dec 2022 13:36:50 +0100 [thread overview]
Message-ID: <87h6xutdel.fsf@thornhill.no> (raw)
Hi!
In the current Emacs master, 'transpose-words' has a fixme:
;; FIXME: `foo a!nd bar' should transpose into `bar and foo'.
To me this looks like a job for transpose-sexps, not transpose-words.
Would you consider a patch to transpose-sexps that would behave like
this:
1. `foo a!nd bar' should transpose into `bar and foo'.
2. `foo !and bar' should transpose into `and foo bar'.
3. `foo! and bar' should transpose into `and foo bar'.
4. `foo a!nd bar baz' should transpose into `baz and bar foo'. (if prefix arg is 2)
I plan to make the function to create the input points for
'transpose-subr-1' such as this for case 1:
foo a|nd bar
^ ^ ^ ^
instead of:
foo a|nd bar
^ ^^ ^
What do you think? Would this have some adverse impact to other
languages, such as lisp or others?
Theo
reply other threads:[~2022-12-17 12:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87h6xutdel.fsf@thornhill.no \
--to=theo@thornhill.no \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.