all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Transpose-words or transpose-sexps change?
@ 2022-12-17 12:36 Theodor Thornhill
  0 siblings, 0 replies; only message in thread
From: Theodor Thornhill @ 2022-12-17 12:36 UTC (permalink / raw)
  To: emacs-devel; +Cc: monnier


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-17 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-17 12:36 Transpose-words or transpose-sexps change? Theodor Thornhill

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.