简体   繁体   English

osx上的emacs 23和24:为什么有时将aquamacs-kill-word删除到行尾?

[英]emacs 23 and 24 on osx: why does aquamacs-kill-word sometimes delete to end of line?

This doesn't happen if I start aquamacs without any customizations. 如果我没有任何自定义启动aquamacs,则不会发生这种情况。 From stepping through the debugger I first see that transient-mark-mode is true. 通过逐步调试,我首先看到瞬态标记模式是正确的。 I set it to nil in my .emacs file, and would prefer if it stayed nil, but other code sets it to a non-false value, causing it to kill the region rather than just kill the word. 我在.emacs文件中将其设置为nil,并且希望它保持为nil,但是其他代码将其设置为非false值,导致其杀死该区域而不是仅仅杀死单词。

Sometimes opt-d or opt-backspace deletes the word, but sometimes it goes to the end or start of the line respectively. 有时opt-d或opt-backspace会删除该单词,但有时会分别到行尾或行首。 I could comment out all the transient-mark-mode stuff out of the code, but I'd prefer either a hook to customize it, or a way of globally saying I never want any region deleted unless I select it with mark and point the old-fashioned way and use something like kill-region to delete it, or it's actually highlighted and then I can use a cua-style way to delete it. 我可以从代码中注释掉所有瞬态标记模式的内容,但是我更喜欢要么使用钩子对其进行自定义,要么更希望使用全局方式表示我永远不希望删除任何区域,除非我使用标记选择它并指向老式的方法,然后使用kill-region之类的方法将其删除,或者实际上将其突出显示,然后我可以使用cua风格的方法将其删除。

当前的问题是通过从aquamacs迁移到emacsformacosx解决的

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

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