繁体   English   中英

在emacs中,append-next-kill有时会预先添加

[英]in emacs, append-next-kill sometimes prepends

例如,将点放在带有文本“foo bar”的行的开头。 然后Md C-Ce MCw Cw Cy产生“barfoo”。 当我尝试切换文本的顺序以及将真实的kill与save-as-kill结合使用时,此行为会导致问题。 毫无疑问,前置支持通常很有用,但我发现的所有文档都说append-next-kill会附加。 如何控制emacs在追加和预先添加之间的选择?

请参阅Emacs手册,节点Appending Kills 它给出了明确的例子,特别是一个清楚地显示CMw是什么以及它做什么的例子。 以下是该文本的一部分:

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.

对于CMw追加下一次杀戮,杀戮必须立即跟随 CMw 如果你在中间做其他事情则没有附加。 命令名可能最好是append-next-kill-if-it-follows-immediately ;-)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM