aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-10-14 16:19:21 +0400
committerDmitry Antipov2013-10-14 16:19:21 +0400
commit77e3b1b7095b3376dbddd22cbca4827b797767c0 (patch)
tree1e5cbc68a42c7e1b08acf36d94bc4b158d6117a0 /src/termhooks.h
parente558436b778c0199caaff0ce40b9a279bacf640e (diff)
downloademacs-77e3b1b7095b3376dbddd22cbca4827b797767c0.tar.gz
emacs-77e3b1b7095b3376dbddd22cbca4827b797767c0.zip
* termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK) (FRAME_SCROLL_REGION_COST, FRAME_MEMORY_BELOW_FRAME): Adjust to match the change described below. (struct terminal): Move must_write_spaces, line_ins_del_ok, char_ins_del_ok, scroll_region_ok, scroll_region_cost and memory_below_frame members to... * termchar.h (struct tty_display_info): ...here because they're relevant only on TTYs. Prefer unsigned bitfield where appropriate. * term.c (init_tty): * nsterm.m (ns_create_terminal): * w32term.c (w32_create_terminal): * xterm.c (x_create_terminal): Adjust users. * dispnew.c (line_hash_code, line_draw_cost): Pass frame arg to filter out non-TTY frames. Adjust comment. (scrolling): Adjust user. Prefer eassert for debugging check.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 2c819ad58e3..52f30b4bf98 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -402,21 +402,6 @@ struct terminal
402 the function `set-keyboard-coding-system'. */ 402 the function `set-keyboard-coding-system'. */
403 struct coding_system *keyboard_coding; 403 struct coding_system *keyboard_coding;
404 404
405 /* Terminal characteristics. */
406 /* XXX Are these really used on non-termcap displays? */
407
408 int must_write_spaces; /* Nonzero means spaces in the text must
409 actually be output; can't just skip over
410 some columns to leave them blank. */
411 int line_ins_del_ok; /* Terminal can insert and delete lines. */
412 int char_ins_del_ok; /* Terminal can insert and delete chars. */
413 int scroll_region_ok; /* Terminal supports setting the scroll
414 window. */
415 int scroll_region_cost; /* Cost of setting the scroll window,
416 measured in characters. */
417 int memory_below_frame; /* Terminal remembers lines scrolled
418 off bottom. */
419
420 /* Window-based redisplay interface for this device (0 for tty 405 /* Window-based redisplay interface for this device (0 for tty
421 devices). */ 406 devices). */
422 struct redisplay_interface *rif; 407 struct redisplay_interface *rif;
@@ -617,12 +602,12 @@ tset_selection_alist (struct terminal *t, Lisp_Object val)
617/* Chain of all terminal devices currently in use. */ 602/* Chain of all terminal devices currently in use. */
618extern struct terminal *terminal_list; 603extern struct terminal *terminal_list;
619 604
620#define FRAME_MUST_WRITE_SPACES(f) ((f)->terminal->must_write_spaces) 605#define FRAME_MUST_WRITE_SPACES(f) (FRAME_TTY (f)->must_write_spaces)
621#define FRAME_LINE_INS_DEL_OK(f) ((f)->terminal->line_ins_del_ok) 606#define FRAME_LINE_INS_DEL_OK(f) (FRAME_TTY (f)->line_ins_del_ok)
622#define FRAME_CHAR_INS_DEL_OK(f) ((f)->terminal->char_ins_del_ok) 607#define FRAME_CHAR_INS_DEL_OK(f) (FRAME_TTY (f)->char_ins_del_ok)
623#define FRAME_SCROLL_REGION_OK(f) ((f)->terminal->scroll_region_ok) 608#define FRAME_SCROLL_REGION_OK(f) (FRAME_TTY (f)->scroll_region_ok)
624#define FRAME_SCROLL_REGION_COST(f) ((f)->terminal->scroll_region_cost) 609#define FRAME_SCROLL_REGION_COST(f) (FRAME_TTY (f)->scroll_region_cost)
625#define FRAME_MEMORY_BELOW_FRAME(f) ((f)->terminal->memory_below_frame) 610#define FRAME_MEMORY_BELOW_FRAME(f) (FRAME_TTY (f)->memory_below_frame)
626 611
627#define FRAME_TERMINAL_CODING(f) ((f)->terminal->terminal_coding) 612#define FRAME_TERMINAL_CODING(f) ((f)->terminal->terminal_coding)
628#define FRAME_KEYBOARD_CODING(f) ((f)->terminal->keyboard_coding) 613#define FRAME_KEYBOARD_CODING(f) ((f)->terminal->keyboard_coding)