Tab in Emacs-helm (anything) does not autocomplete with current best match

戏子无情 提交于 2019-12-09 11:28:07

问题


While trying to autocomplete a file (e.g. to open a file with C-x C-f) Emacs-helm shows a list of possible candidates.

If I then press Tab (which I would hope it would help me choose the first/closest match), I get the following in the minibuffer:

   

It looks like the minibuffer gets confused with escape characters, and it does not choose the file that I actually want to open (the top choice).


回答1:


Helm requires this conceptual jump from the default Emacs completion, which is not so obvious:

You don't need to press a key to complete. The completion buffer refreshes with new results after every input.

This is called "incremental" completion.

The normal tab functionality is not needed in "incremental" completion. So tab was rebound to helm-select-action, which allows you to choose an alternative action with the selection. But there is only one action in read-file-name.

The error you're seeing could be clearer though, I've filed this issue on github.

Additionally, note Helm treats each space separated term as a filtering regular expression. So, pressing space foo will filter the current list down to those that contain foo in the name.



来源:https://stackoverflow.com/questions/12537428/tab-in-emacs-helm-anything-does-not-autocomplete-with-current-best-match

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!