by shigemk2

当面は技術的なことしか書かない

reverse-region

リージョン内の行を逆ソートする

reverse-region is an interactive autoloaded compiled Lisp function in
‘sort.el’.

(reverse-region BEG END)

Reverse the order of lines in a region.
From a program takes two point or marker arguments, BEG and END.

こんなのがあったときに、リージョンで囲ってreverse-regionすると

a
b
c

こうなる

c
b
a