如何将上一行的最后一个(以空格分隔)字符串插入emacs中光标处的当前行

如何将上一行的最后一个(以空格分隔)字符串插入emacs中光标处的当前行,emacs,emacs24,Emacs,Emacs24,在使用python时,我有时会发现我不必要地有这样一个片段: thing = longfunctioncall(with, many, necessary, arguments, that, take, a, fairly, long, time, to, type) formattedthing = [str(*q) for q in thing] 我可以将其整合为: formattedthing = [str(*q) for q in longfunctioncall(with, many

在使用python时,我有时会发现我不必要地有这样一个片段:

thing = longfunctioncall(with, many, necessary, arguments, that, take, a, fairly, long, time, to, type)
formattedthing = [str(*q) for q in thing]
我可以将其整合为:

formattedthing = [str(*q) for q in longfunctioncall(with, many, necessary, arguments, that, take, a, fairly, long, time, to type)]

我知道你可以简单地终止并删除整个语句,但我想知道是否有更简单的方法来完成它。

我会,在第二行上有点,将这些行转置
C-x C-t
,在第二行上重新定位点
C-p
,合并它们
M-^
,然后手动修复。