开发者

Changing highlight time when searching

开发者 https://www.devze.com 2023-03-24 15:24 出处:网络
When I perform search in emacs, t开发者_StackOverflowhe available matches are highlighted for around 1 second.

When I perform search in emacs, t开发者_StackOverflowhe available matches are highlighted for around 1 second.

How can I change this? Is there any customize-group for setting search highlight time options? (in isearch there is no such entry).


I'd say the customize group is lazy-highlight

(which is one of the child groups listed at the bottom of the isearch group's buffer, incidentally.)

edit: Although it sounds like you're saying that the highlighting disappears again after a second with no intervention on your part, which would seem like a conflict with something else, as that's not the default behaviour. (You can run emacs -Q to test the defaults.)

Assuming that lazy-highlight-cleanup is being called unexpectedly, you could call debug-on-entry on that function to check the stack trace and see where that call is coming from. You'll have to continue past some expected calls when initiating the search. Use cancel-debug-on-entry when you're done.

See also:

Standard debugger commands:
M-: (info "(elisp) Debugger Commands") RET

Main manual entry for debugging elisp:
M-: (info "(elisp) Debugging") RET


Try setting lazy-highlight-interval variable, for example:

(setq lazy-highlight-interval 0)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号