avoid recursive `require' when loading semantic
[bpt/emacs.git] / src / indent.h
CommitLineData
d427b66a 1/* Definitions for interface to indent.c
ba318903 2 Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc.
d427b66a
JB
3
4This file is part of GNU Emacs.
5
b9b1cc14 6GNU Emacs is free software: you can redistribute it and/or modify
d427b66a 7it under the terms of the GNU General Public License as published by
b9b1cc14
GM
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
d427b66a
JB
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
b9b1cc14 17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
d427b66a 18
d427b66a
JB
19struct position
20 {
d311d28c
PE
21 ptrdiff_t bufpos;
22 ptrdiff_t bytepos;
83155776
SM
23 EMACS_INT hpos;
24 EMACS_INT vpos;
25 EMACS_INT prevhpos;
d311d28c 26 int contin;
d427b66a
JB
27 };
28
c54aa166
DA
29struct position *compute_motion (ptrdiff_t from, ptrdiff_t frombyte,
30 EMACS_INT fromvpos, EMACS_INT fromhpos,
31 bool did_motion, ptrdiff_t to,
32 EMACS_INT tovpos, EMACS_INT tohpos,
7c85f529 33 EMACS_INT width, ptrdiff_t hscroll,
d311d28c 34 int tab_offset, struct window *);
c54aa166
DA
35struct position *vmotion (ptrdiff_t from, ptrdiff_t from_byte,
36 EMACS_INT vtarget, struct window *);
d311d28c
PE
37ptrdiff_t skip_invisible (ptrdiff_t pos, ptrdiff_t *next_boundary_p,
38 ptrdiff_t to, Lisp_Object window);
d427b66a
JB
39
40/* Value of point when current_column was called */
d311d28c 41extern ptrdiff_t last_known_column_point;
63dec5bd
JB
42
43/* Functions for dealing with the column cache. */
44
e0f24100 45/* Return true if the display table DISPTAB specifies the same widths
63dec5bd
JB
46 for characters as WIDTHTAB. We use this to decide when to
47 invalidate the buffer's column_cache. */
578098f3
PE
48bool disptab_matches_widthtab (struct Lisp_Char_Table *disptab,
49 struct Lisp_Vector *widthtab);
63dec5bd
JB
50
51/* Recompute BUF's width table, using the display table DISPTAB. */
383e0970
J
52void recompute_width_table (struct buffer *buf,
53 struct Lisp_Char_Table *disptab);