diff options
| author | Dmitry Antipov | 2013-03-06 03:08:11 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-03-06 03:08:11 +0400 |
| commit | ffc65beee98a7408c1420c9c55dcb7b31a6114c8 (patch) | |
| tree | f1d163aff061b48561ff57d56f238f887dcc1fd9 /src | |
| parent | 707431575aef93ac3e9923d450a6cbf18192c933 (diff) | |
| download | emacs-ffc65beee98a7408c1420c9c55dcb7b31a6114c8.tar.gz emacs-ffc65beee98a7408c1420c9c55dcb7b31a6114c8.zip | |
* lisp.h (find_next_newline_no_quit): Rename to find_next_newline.
* xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
(get_visually_first_element, move_it_vertically_backward): Ajust users.
* bidi.c (bidi_find_paragraph_start): Likewise.
* indent.c (vmotion): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/bidi.c | 2 | ||||
| -rw-r--r-- | src/indent.c | 8 | ||||
| -rw-r--r-- | src/lisp.h | 3 | ||||
| -rw-r--r-- | src/search.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
6 files changed, 19 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index af03fa54291..84ba55e3bdf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-03-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * lisp.h (find_next_newline_no_quit): Rename to find_next_newline. | ||
| 4 | * xdisp.c (back_to_previous_line_start, forward_to_next_line_start) | ||
| 5 | (get_visually_first_element, move_it_vertically_backward): Ajust users. | ||
| 6 | * bidi.c (bidi_find_paragraph_start): Likewise. | ||
| 7 | * indent.c (vmotion): Likewise. | ||
| 8 | |||
| 1 | 2013-03-05 Paul Eggert <eggert@cs.ucla.edu> | 9 | 2013-03-05 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 10 | ||
| 3 | FILE's lock is now always .#FILE and may be a regular file (Bug#13807). | 11 | FILE's lock is now always .#FILE and may be a regular file (Bug#13807). |
diff --git a/src/bidi.c b/src/bidi.c index 57d154bc544..feb422cc5d2 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -1108,7 +1108,7 @@ bidi_find_paragraph_start (ptrdiff_t pos, ptrdiff_t pos_byte) | |||
| 1108 | display string? And what if a display string covering some | 1108 | display string? And what if a display string covering some |
| 1109 | of the text over which we scan back includes | 1109 | of the text over which we scan back includes |
| 1110 | paragraph_start_re? */ | 1110 | paragraph_start_re? */ |
| 1111 | pos = find_next_newline_no_quit (pos - 1, -1, &pos_byte); | 1111 | pos = find_next_newline (pos - 1, -1, &pos_byte); |
| 1112 | if (n >= MAX_PARAGRAPH_SEARCH) | 1112 | if (n >= MAX_PARAGRAPH_SEARCH) |
| 1113 | pos_byte = BEGV_BYTE; | 1113 | pos_byte = BEGV_BYTE; |
| 1114 | return pos_byte; | 1114 | return pos_byte; |
diff --git a/src/indent.c b/src/indent.c index 9bf75bc6d95..469d774f681 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1843,7 +1843,7 @@ vmotion (register ptrdiff_t from, register EMACS_INT vtarget, struct window *w) | |||
| 1843 | ptrdiff_t bytepos; | 1843 | ptrdiff_t bytepos; |
| 1844 | Lisp_Object propval; | 1844 | Lisp_Object propval; |
| 1845 | 1845 | ||
| 1846 | prevline = find_next_newline_no_quit (from - 1, -1, &bytepos); | 1846 | prevline = find_next_newline (from - 1, -1, &bytepos); |
| 1847 | while (prevline > BEGV | 1847 | while (prevline > BEGV |
| 1848 | && ((selective > 0 | 1848 | && ((selective > 0 |
| 1849 | && indented_beyond_p (prevline, bytepos, selective)) | 1849 | && indented_beyond_p (prevline, bytepos, selective)) |
| @@ -1853,7 +1853,7 @@ vmotion (register ptrdiff_t from, register EMACS_INT vtarget, struct window *w) | |||
| 1853 | Qinvisible, | 1853 | Qinvisible, |
| 1854 | text_prop_object), | 1854 | text_prop_object), |
| 1855 | TEXT_PROP_MEANS_INVISIBLE (propval)))) | 1855 | TEXT_PROP_MEANS_INVISIBLE (propval)))) |
| 1856 | prevline = find_next_newline_no_quit (prevline - 1, -1, &bytepos); | 1856 | prevline = find_next_newline (prevline - 1, -1, &bytepos); |
| 1857 | pos = *compute_motion (prevline, 0, | 1857 | pos = *compute_motion (prevline, 0, |
| 1858 | lmargin, | 1858 | lmargin, |
| 1859 | 0, | 1859 | 0, |
| @@ -1894,7 +1894,7 @@ vmotion (register ptrdiff_t from, register EMACS_INT vtarget, struct window *w) | |||
| 1894 | ptrdiff_t bytepos; | 1894 | ptrdiff_t bytepos; |
| 1895 | Lisp_Object propval; | 1895 | Lisp_Object propval; |
| 1896 | 1896 | ||
| 1897 | prevline = find_next_newline_no_quit (from, -1, &bytepos); | 1897 | prevline = find_next_newline (from, -1, &bytepos); |
| 1898 | while (prevline > BEGV | 1898 | while (prevline > BEGV |
| 1899 | && ((selective > 0 | 1899 | && ((selective > 0 |
| 1900 | && indented_beyond_p (prevline, bytepos, selective)) | 1900 | && indented_beyond_p (prevline, bytepos, selective)) |
| @@ -1904,7 +1904,7 @@ vmotion (register ptrdiff_t from, register EMACS_INT vtarget, struct window *w) | |||
| 1904 | Qinvisible, | 1904 | Qinvisible, |
| 1905 | text_prop_object), | 1905 | text_prop_object), |
| 1906 | TEXT_PROP_MEANS_INVISIBLE (propval)))) | 1906 | TEXT_PROP_MEANS_INVISIBLE (propval)))) |
| 1907 | prevline = find_next_newline_no_quit (prevline - 1, -1, &bytepos); | 1907 | prevline = find_next_newline (prevline - 1, -1, &bytepos); |
| 1908 | pos = *compute_motion (prevline, 0, | 1908 | pos = *compute_motion (prevline, 0, |
| 1909 | lmargin, | 1909 | lmargin, |
| 1910 | 0, | 1910 | 0, |
diff --git a/src/lisp.h b/src/lisp.h index 01574a5fe03..7d443e57d66 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3346,8 +3346,7 @@ extern ptrdiff_t find_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, | |||
| 3346 | ptrdiff_t *, ptrdiff_t *, bool); | 3346 | ptrdiff_t *, ptrdiff_t *, bool); |
| 3347 | extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 3347 | extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 3348 | EMACS_INT, bool); | 3348 | EMACS_INT, bool); |
| 3349 | extern ptrdiff_t find_next_newline (ptrdiff_t, int); | 3349 | extern ptrdiff_t find_next_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t *); |
| 3350 | extern ptrdiff_t find_next_newline_no_quit (ptrdiff_t, ptrdiff_t, ptrdiff_t *); | ||
| 3351 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, | 3350 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, |
| 3352 | ptrdiff_t, ptrdiff_t *); | 3351 | ptrdiff_t, ptrdiff_t *); |
| 3353 | extern void syms_of_search (void); | 3352 | extern void syms_of_search (void); |
diff --git a/src/search.c b/src/search.c index 1c0f57487f9..6a79208557b 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -942,7 +942,7 @@ scan_newline (ptrdiff_t start, ptrdiff_t start_byte, | |||
| 942 | } | 942 | } |
| 943 | 943 | ||
| 944 | ptrdiff_t | 944 | ptrdiff_t |
| 945 | find_next_newline_no_quit (ptrdiff_t from, ptrdiff_t cnt, ptrdiff_t *bytepos) | 945 | find_next_newline (ptrdiff_t from, ptrdiff_t cnt, ptrdiff_t *bytepos) |
| 946 | { | 946 | { |
| 947 | return find_newline (from, 0, cnt, NULL, bytepos, 0); | 947 | return find_newline (from, 0, cnt, NULL, bytepos, 0); |
| 948 | } | 948 | } |
diff --git a/src/xdisp.c b/src/xdisp.c index f304ad0915c..6dbc7637ee4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5906,8 +5906,7 @@ static void | |||
| 5906 | back_to_previous_line_start (struct it *it) | 5906 | back_to_previous_line_start (struct it *it) |
| 5907 | { | 5907 | { |
| 5908 | IT_CHARPOS (*it) | 5908 | IT_CHARPOS (*it) |
| 5909 | = find_next_newline_no_quit (IT_CHARPOS (*it) - 1, | 5909 | = find_next_newline (IT_CHARPOS (*it) - 1, -1, &IT_BYTEPOS (*it)); |
| 5910 | -1, &IT_BYTEPOS (*it)); | ||
| 5911 | } | 5910 | } |
| 5912 | 5911 | ||
| 5913 | 5912 | ||
| @@ -5979,7 +5978,7 @@ forward_to_next_line_start (struct it *it, int *skipped_p, | |||
| 5979 | if (!newline_found_p) | 5978 | if (!newline_found_p) |
| 5980 | { | 5979 | { |
| 5981 | ptrdiff_t bytepos, start = IT_CHARPOS (*it); | 5980 | ptrdiff_t bytepos, start = IT_CHARPOS (*it); |
| 5982 | ptrdiff_t limit = find_next_newline_no_quit (start, 1, &bytepos); | 5981 | ptrdiff_t limit = find_next_newline (start, 1, &bytepos); |
| 5983 | Lisp_Object pos; | 5982 | Lisp_Object pos; |
| 5984 | 5983 | ||
| 5985 | eassert (!STRINGP (it->string)); | 5984 | eassert (!STRINGP (it->string)); |
| @@ -7434,8 +7433,7 @@ get_visually_first_element (struct it *it) | |||
| 7434 | it->bidi_it.charpos = it->bidi_it.bytepos = 0; | 7433 | it->bidi_it.charpos = it->bidi_it.bytepos = 0; |
| 7435 | else | 7434 | else |
| 7436 | it->bidi_it.charpos | 7435 | it->bidi_it.charpos |
| 7437 | = find_next_newline_no_quit (IT_CHARPOS (*it), -1, | 7436 | = find_next_newline (IT_CHARPOS (*it), -1, &it->bidi_it.bytepos); |
| 7438 | &it->bidi_it.bytepos); | ||
| 7439 | bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it, 1); | 7437 | bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it, 1); |
| 7440 | do | 7438 | do |
| 7441 | { | 7439 | { |
| @@ -9070,7 +9068,7 @@ move_it_vertically_backward (struct it *it, int dy) | |||
| 9070 | && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n') | 9068 | && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n') |
| 9071 | { | 9069 | { |
| 9072 | ptrdiff_t nl_pos = | 9070 | ptrdiff_t nl_pos = |
| 9073 | find_next_newline_no_quit (IT_CHARPOS (*it) - 1, -1, NULL); | 9071 | find_next_newline (IT_CHARPOS (*it) - 1, -1, NULL); |
| 9074 | 9072 | ||
| 9075 | move_it_to (it, nl_pos, -1, -1, -1, MOVE_TO_POS); | 9073 | move_it_to (it, nl_pos, -1, -1, -1, MOVE_TO_POS); |
| 9076 | } | 9074 | } |