Emacs — calculating new window-start/end without redisplay

前端 未结 3 610
不思量自难忘°
不思量自难忘° 2021-01-06 02:55

Is it possible to calculate a new window-start/end without a redisplay occurring? If so, then an example would be greatly appreciated. If not, th

3条回答
  •  耶瑟儿~
    2021-01-06 03:31

    Offhand, I'd say that the error is raised because you pass a BOUND arg to a search function. For example:

    (re-search-backward "\n" window-start t)
    
    (re-search-backward "\s\\|\t" pbol t)
    

    Check your values of window-start and pbol. Remember that when you search backward the bound must not be greater than the current position (point).

提交回复
热议问题