aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-02-20 06:41:36 +0000
committerKarl Heuer1997-02-20 06:41:36 +0000
commitfafd594b01a488a6a81123f70616083b9ec6b59e (patch)
tree2369c25037748bc77e4c18a2b63379f5c31d2e4f /src
parent1c9241f53ad8d5b3684be53b66e936369f852ea3 (diff)
downloademacs-fafd594b01a488a6a81123f70616083b9ec6b59e.tar.gz
emacs-fafd594b01a488a6a81123f70616083b9ec6b59e.zip
(struct position): New member tab_offset to accumulate tab offset.
Diffstat (limited to 'src')
-rw-r--r--src/indent.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/indent.h b/src/indent.h
index 91d8f44c1ac..9e6a6f03821 100644
--- a/src/indent.h
+++ b/src/indent.h
@@ -18,6 +18,23 @@ along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */ 19Boston, MA 02111-1307, USA. */
20 20
21/* We introduce new member `tab_offset'. We need it because of the
22 existence of wide-column characters. There is a case that the
23 line-break occurs at a wide-column character and the number of
24 colums of the line gets less than width.
25
26 Example (where W_ stands for a wide-column character):
27 ----------
28 abcdefgh\\
29 W_
30 ----------
31
32 To handle this case, we should not calculate the tab offset by
33 tab_offset += width;
34
35 Instead, we must remember tab_offset of the line.
36
37 */
21 38
22struct position 39struct position
23 { 40 {
@@ -29,6 +46,7 @@ struct position
29 /* Number of characters we have already handled 46 /* Number of characters we have already handled
30 from the before and after strings at this position. */ 47 from the before and after strings at this position. */
31 int ovstring_chars_done; 48 int ovstring_chars_done;
49 int tab_offset;
32 }; 50 };
33 51
34struct position *compute_motion (); 52struct position *compute_motion ();