diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-03-06 18:35:23 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-03-06 18:35:23 +0200 |
commit | a611149e46d0a6927e9c276d4cf2089b7cfb7e05 (patch) | |
tree | 27b367d14ad868560646cf0cc273d6d885c46274 /src/search.c | |
parent | d26e478eaa7c743b999fbcd995cc8c09ecbcc6c8 (diff) | |
download | emacs-a611149e46d0a6927e9c276d4cf2089b7cfb7e05.tar.gz |
Rename find_next_newline to find_newline_no_quit.
src/search.c (find_newline_no_quit): Rename from find_next_newline.
Add commentary.
src/lisp.h (find_newline_no_quit): Rename prototype.
src/xdisp.c (back_to_previous_line_start)
(forward_to_next_line_start, get_visually_first_element)
(move_it_vertically_backward): Callers of find_newline_no_quit changed.
src/indent.c (vmotion): Callers of find_newline_no_quit changed.
src/bidi.c (bidi_find_paragraph_start): Callers of
find_newline_no_quit changed.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c index 6a79208557b..090965ead3b 100644 --- a/src/search.c +++ b/src/search.c @@ -941,15 +941,17 @@ scan_newline (ptrdiff_t start, ptrdiff_t start_byte, return count * direction; } +/* Like find_newline, but doesn't allow QUITting and doesn't return + SHORTAGE. */ ptrdiff_t -find_next_newline (ptrdiff_t from, ptrdiff_t cnt, ptrdiff_t *bytepos) +find_newline_no_quit (ptrdiff_t from, ptrdiff_t cnt, ptrdiff_t *bytepos) { return find_newline (from, 0, cnt, NULL, bytepos, 0); } -/* Like find_next_newline, but returns position before the newline, - not after, and only search up to TO. This isn't just - find_next_newline (...)-1, because you might hit TO. */ +/* Like find_newline, but returns position before the newline, not + after, and only search up to TO. + This isn't just find_newline_no_quit (...)-1, because you might hit TO. */ ptrdiff_t find_before_next_newline (ptrdiff_t from, ptrdiff_t to, |