From: Chong Yidong Date: Tue, 24 Jun 2008 17:56:41 +0000 (+0000) Subject: (struct it): Replace bool truncate_lines_p with a line_wrap enum X-Git-Tag: emacs-pretest-23.0.90~4545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf7a8847fee4c005e578fd8357d0e64618628bb0;p=emacs.git (struct it): Replace bool truncate_lines_p with a line_wrap enum possessing three possible values. --- diff --git a/src/dispextern.h b/src/dispextern.h index 8ea9ab4c3e5..1761bede3e2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -1804,6 +1804,14 @@ enum prop_idx LAST_PROP_IDX }; +/* An enumerator for the method of wrapping long lines. */ + +enum line_wrap_method +{ + TRUNCATE, + WORD_WRAP, + WINDOW_WRAP +}; struct it_slice { @@ -2008,8 +2016,7 @@ struct it where the `^' can be replaced by a display table entry. */ unsigned ctl_arrow_p : 1; - /* 1 means lines are truncated. */ - unsigned truncate_lines_p : 1; + enum line_wrap_method line_wrap; /* Non-zero means that the current face has a box. */ unsigned face_box_p : 1;