emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transpose-sexps


From: Stuart D. Herring
Subject: Re: transpose-sexps
Date: Mon, 8 Jan 2007 10:00:57 -0800 (PST)
User-agent: SquirrelMail/1.4.8-2.el3.7lanl

> [Maybe, as Richard mentioned, it should be more friendly by detecting
> that it's inside a string and do... something... in that case (what??),
> but detecting that is not particularly trivial (and so is not a suitable
> change just before a release).]

I can answer the "what??": the same thing it does when it's inside a sexp
that's a symbol: transpose the string/symbol containing point and the sexp
following that.  This is the convention also followed by M-t.

Sometimes confusion arises because [C-]M-t at the beginning of a word
[sexp] exchanges it with the previous one, so that for these commands an
object includes the point position that begins the next object. 
`transpose-sentences' behaves similarly.

More confusion: C-x C-t trades current and previous line whether or not
point is at the beginning of a line (which is inconsistent either in
direction or in the defined extent of each line), and
`transpose-paragraphs' trades current paragraph with the next one even if
point is just at its beginning, but trades previous and next if point is
between two.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]