例如,将点放在带有文本“foo bar”的行的开头。然后M-d C-C-e M-C-w C-w C-y产生“barfoo”。当我尝试切换文本的顺序以及将真实的kill与save-as-kill结合使用时,此行为会导致问题。毫无疑问,前置支持通常很有用,但我发现的所有文档都说append-next-kill会附加。如何控制emacs在追加和预先添加之间的选择?
答案 0 :(得分:1)
请参阅Emacs手册,节点Appending Kills
。它给出了明确的例子,特别是一个清楚地显示C-M-w
是什么以及它做什么的例子。以下是该文本的一部分:
If a kill command is separated from the last kill command by other
commands (not just numeric arguments), it starts a new entry on the kill
ring. But you can force it to append by first typing the command
`C-M-w' (`append-next-kill') right before it. The `C-M-w' tells the
following command, if it is a kill command, to append the text it kills
to the last killed text, instead of starting a new entry. With
`C-M-w', you can kill several separated pieces of text and accumulate
them to be yanked back in one place.
要让C-M-w
追加下一次杀戮,该杀戮必须紧跟 C-M-w
。如果你在中间做其他事情则没有附加。命令名称最好是append-next-kill-if-it-follows-immediately
。 ; - )