diff options
| author | Dmitry Antipov | 2013-08-29 11:03:18 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-29 11:03:18 +0400 |
| commit | d2b368135803170fc2d1f65237b7ef22676f9ecb (patch) | |
| tree | 366956b20df8e76e561878824bd5e96fa5936d85 /src/lisp.h | |
| parent | e8dfd19797fa7224ae726a8be78726fefd260c0e (diff) | |
| download | emacs-d2b368135803170fc2d1f65237b7ef22676f9ecb.tar.gz emacs-d2b368135803170fc2d1f65237b7ef22676f9ecb.zip | |
Hook scanning and indentation functions to find_newline. This helps
to avoid duplicated code and renders more respect to newline cache.
* lisp.h (scan_newline): Prefer ptrdiff_t to EMACS_INT.
* cmds.c (Fforward_line):
* indent.c (scan_for_column, Fcurrent_indentation, indented_beyond_p):
Use find_newline and avoid unnecessary point movements.
* search.c (scan_newline): Implement on top of find_newline.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h index 3dab0d6ddfd..f3a78f48a17 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3834,8 +3834,8 @@ extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, | |||
| 3834 | ptrdiff_t, ptrdiff_t, Lisp_Object); | 3834 | ptrdiff_t, ptrdiff_t, Lisp_Object); |
| 3835 | extern ptrdiff_t find_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 3835 | extern ptrdiff_t find_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 3836 | ptrdiff_t, ptrdiff_t *, ptrdiff_t *, bool); | 3836 | ptrdiff_t, ptrdiff_t *, ptrdiff_t *, bool); |
| 3837 | extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 3837 | extern ptrdiff_t scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 3838 | EMACS_INT, bool); | 3838 | ptrdiff_t, bool); |
| 3839 | extern ptrdiff_t find_newline_no_quit (ptrdiff_t, ptrdiff_t, | 3839 | extern ptrdiff_t find_newline_no_quit (ptrdiff_t, ptrdiff_t, |
| 3840 | ptrdiff_t, ptrdiff_t *); | 3840 | ptrdiff_t, ptrdiff_t *); |
| 3841 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, | 3841 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, |