diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /src/frame.h | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index e66fd9341c7..31f601737c8 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -544,6 +544,20 @@ typedef struct frame *FRAME_PTR; | |||
| 544 | #define FRAME_WINDOW_P(f) (0) | 544 | #define FRAME_WINDOW_P(f) (0) |
| 545 | #endif | 545 | #endif |
| 546 | 546 | ||
| 547 | /* Return a pointer to the structure holding information about the | ||
| 548 | region of text, if any, that is currently shown in mouse-face on | ||
| 549 | frame F. We need to define two versions because a TTY-only build | ||
| 550 | does not have FRAME_X_DISPLAY_INFO. */ | ||
| 551 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 552 | # define MOUSE_HL_INFO(F) \ | ||
| 553 | (FRAME_WINDOW_P(F) \ | ||
| 554 | ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \ | ||
| 555 | : &(((F)->output_data.tty->display_info)->mouse_highlight)) | ||
| 556 | #else | ||
| 557 | # define MOUSE_HL_INFO(F) \ | ||
| 558 | (&(((F)->output_data.tty->display_info)->mouse_highlight)) | ||
| 559 | #endif | ||
| 560 | |||
| 547 | /* Nonzero if frame F is still alive (not deleted). */ | 561 | /* Nonzero if frame F is still alive (not deleted). */ |
| 548 | #define FRAME_LIVE_P(f) ((f)->terminal != 0) | 562 | #define FRAME_LIVE_P(f) ((f)->terminal != 0) |
| 549 | 563 | ||