all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stuart D. Herring" <herring@lanl.gov>
Cc: Andreas Schwab <schwab@suse.de>,
	emacs-devel@gnu.org, Paul Pogonyshev <pogonyshev@gmx.net>
Subject: Re: transpose-sexps
Date: Mon, 8 Jan 2007 10:00:57 -0800 (PST)	[thread overview]
Message-ID: <39958.128.165.123.18.1168279257.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <buoodpd7s5g.fsf@dhapc248.dev.necel.com>

> [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.

  parent reply	other threads:[~2007-01-08 18:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-04 21:34 transpose-sexps Paul Pogonyshev
2007-01-04 21:48 ` transpose-sexps Stuart D. Herring
2007-01-04 22:02   ` transpose-sexps Paul Pogonyshev
2007-01-04 22:49     ` transpose-sexps Stuart D. Herring
2007-01-04 22:53     ` transpose-sexps Andreas Schwab
2007-01-04 23:28       ` transpose-sexps Paul Pogonyshev
2007-01-05  9:13         ` transpose-sexps Miles Bader
2007-01-05 20:02           ` transpose-sexps Paul Pogonyshev
2007-01-08 18:06             ` transpose-sexps Stuart D. Herring
2007-01-08 21:16               ` transpose-sexps Paul Pogonyshev
2007-01-08 21:22                 ` transpose-sexps Stuart D. Herring
2007-01-09  2:08                   ` transpose-sexps Stefan Monnier
2007-01-08 18:00           ` Stuart D. Herring [this message]
2007-01-05  9:38         ` transpose-sexps Andreas Schwab
2007-01-05  0:30     ` transpose-sexps Richard Stallman

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=39958.128.165.123.18.1168279257.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=emacs-devel@gnu.org \
    --cc=pogonyshev@gmx.net \
    --cc=schwab@suse.de \
    /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.