How does M-x transpose-sentences work? I tested it by executing the command with point at various places (as indicated) in the following:

this is sentence 1. this is sentence 2. this is sentence 3.
^       ^        ^^^^       ^        ^^^^       ^        ^^

It either appears to do nothing, or returns "Don't have two things to transpose".

  • 2
    Try separating sentences with two spaces to make it work. – wasamasa May 26 '15 at 8:27

How the function works will depend on your configuration. As a default, Emacs expects two spaces after a sentence. You can change this to one space by setting the variable sentence-end-double-space to nil. Once you've done that, it'll work as you expect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.