3

In Emacs, editing C, and trying to execute sort-fields doesn't seem to be working. I enter M-x sort-fields after highlighting a region. At one point it was letting me pass a field number, but then suddenly it stopped, and now it reports [Sole Completion] when I enter space to pass the field number. I was thinking that maybe in C-mode it doesn't like that command, but I'm not sure. Any guidance on how to get this to work, or what I might be doing wrong?

4

AFAIK sort-fields has no interactive way to specify the field number, you have to give it as a C-u argument. E.g for the 3rd field: C-u 3 M-x sort-fields

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.