]> git.eshelyaron.com Git - emacs.git/commit
* search.c: #include "region-cache.h".
authorJim Blandy <jimb@redhat.com>
Sat, 8 Oct 1994 22:15:15 +0000 (22:15 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 8 Oct 1994 22:15:15 +0000 (22:15 +0000)
commit9169c321e5e6b1fc3d8e88b53d845d7791d0454b
treeb0f980a90c3595393b805408330e4351920f871d
parent56e1065ec396c40e81518e603444edecae4320f2
* search.c: #include "region-cache.h".
(max, min): Make these functions, not macros; we'd like to pass
them arguments that would be bad to evaluate more than once.
(newline_cache_on_off): New function.
(scan_buffer): New argument END.  Call newline_cache_on_off.  If
this buffer's newline cache is enabled, consult it to see if we
need to scan a region for newlines, and store information in the
cache after doing so.
(find_next_newline): Pass new arg to scan_buffer.
(find_before_next_newline): New function.
src/search.c