有没有办法在不退出isearch模式的情况下滚动文档?我isearch-allow-scroll设置为t,但这限制了我的滚动范围,以确保当前的isearch匹配在缓冲区中可见.理想情况下,我希望能够使用鼠标滚动滚动,在滚动时突出显示所有isearch匹配.
我知道M-x occur,但很多时候只是能够在isearch模式下滚动会更有效(此外,Mx出现不适合折叠模式).
看来你想要的一般是不可能的。从里面的文档isearch.el:
;; scrolling within Isearch mode. Alan Mackenzie (acm@muc.de), 2003/2/24
;;
;; The idea here is that certain vertical scrolling commands (like C-l
;; `recenter') should be usable WITHIN Isearch mode. For a command to be
;; suitable, it must NOT alter the buffer, swap to another buffer or frame,
;; tamper with isearch's state, or move point. It is unacceptable for the
;; search string to be scrolled out of the current window. If a command
;; attempts this, we scroll the text back again.
Run Code Online (Sandbox Code Playgroud)
换句话说,不可能滚动得足够远以使搜索字符串移出窗口。
| 归档时间: |
|
| 查看次数: |
323 次 |
| 最近记录: |