Implement inhibit-bidi-mirroring; improve biditest.el.
[emacs.git] / src / indent.h
blob6bee4aeac5eb92664494330dd7d31f51423c2172
1 /* Definitions for interface to indent.c
2 Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 struct position
21 ptrdiff_t bufpos;
22 ptrdiff_t bytepos;
23 EMACS_INT hpos;
24 EMACS_INT vpos;
25 EMACS_INT prevhpos;
26 int contin;
29 struct 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,
33 EMACS_INT width, ptrdiff_t hscroll,
34 int tab_offset, struct window *);
35 struct position *vmotion (ptrdiff_t from, ptrdiff_t from_byte,
36 EMACS_INT vtarget, struct window *);
37 ptrdiff_t skip_invisible (ptrdiff_t pos, ptrdiff_t *next_boundary_p,
38 ptrdiff_t to, Lisp_Object window);
40 /* Value of point when current_column was called */
41 extern ptrdiff_t last_known_column_point;
43 /* Functions for dealing with the column cache. */
45 /* Return true if the display table DISPTAB specifies the same widths
46 for characters as WIDTHTAB. We use this to decide when to
47 invalidate the buffer's column_cache. */
48 bool disptab_matches_widthtab (struct Lisp_Char_Table *disptab,
49 struct Lisp_Vector *widthtab);
51 /* Recompute BUF's width table, using the display table DISPTAB. */
52 void recompute_width_table (struct buffer *buf,
53 struct Lisp_Char_Table *disptab);