3

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

Drew
  • 75,699
  • 9
  • 109
  • 225
SabreWolfy
  • 1,378
  • 1
  • 13
  • 26

1 Answers1

7

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.

Jenny D
  • 371
  • 1
  • 8