diff options
| author | Chong Yidong | 2011-04-17 14:40:55 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-04-17 14:40:55 -0400 |
| commit | 4581706e272ad522d495dd12040d94b86a333b6d (patch) | |
| tree | 50838c2d820f42c489cbf94a9c603a5dbb0f42b2 /src | |
| parent | 14964899b30739df1df344f52f7790e533c698b5 (diff) | |
| download | emacs-4581706e272ad522d495dd12040d94b86a333b6d.tar.gz emacs-4581706e272ad522d495dd12040d94b86a333b6d.zip | |
Minor redisplay cleanups.
* src/dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing
definition for no-X builds.
* src/termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions.
* src/xdisp.c (get_next_display_element): Remove unnecessary ifdefs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/dispextern.h | 1 | ||||
| -rw-r--r-- | src/termhooks.h | 13 | ||||
| -rw-r--r-- | src/xdisp.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 5 |
5 files changed, 12 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3aa5d48d99f..22e85967b82 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-04-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (get_next_display_element): Remove unnecessary ifdefs. | ||
| 4 | |||
| 5 | * termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions. | ||
| 6 | |||
| 7 | * dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing | ||
| 8 | definition for no-X builds. | ||
| 9 | |||
| 1 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 11 | ||
| 3 | Static checks with GCC 4.6.0 and non-default toolkits. | 12 | Static checks with GCC 4.6.0 and non-default toolkits. |
diff --git a/src/dispextern.h b/src/dispextern.h index d00eeae2b19..1f2189adeca 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1752,6 +1752,7 @@ struct face_cache | |||
| 1752 | 1752 | ||
| 1753 | #else /* not HAVE_WINDOW_SYSTEM */ | 1753 | #else /* not HAVE_WINDOW_SYSTEM */ |
| 1754 | 1754 | ||
| 1755 | #define FACE_SUITABLE_FOR_ASCII_CHAR_P(FACE, CHAR) 1 | ||
| 1755 | #define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) 1 | 1756 | #define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) 1 |
| 1756 | #define FACE_FOR_CHAR(F, FACE, CHAR, POS, OBJECT) ((FACE)->id) | 1757 | #define FACE_FOR_CHAR(F, FACE, CHAR, POS, OBJECT) ((FACE)->id) |
| 1757 | 1758 | ||
diff --git a/src/termhooks.h b/src/termhooks.h index 468381b69aa..c6b1084f347 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -633,19 +633,6 @@ extern struct terminal *terminal_list; | |||
| 633 | 633 | ||
| 634 | #define FRAME_TERMINAL(f) ((f)->terminal) | 634 | #define FRAME_TERMINAL(f) ((f)->terminal) |
| 635 | 635 | ||
| 636 | /* FRAME_WINDOW_P tests whether the frame is a window, and is | ||
| 637 | defined to be the predicate for the window system being used. */ | ||
| 638 | |||
| 639 | #ifdef HAVE_X_WINDOWS | ||
| 640 | #define FRAME_WINDOW_P(f) FRAME_X_P (f) | ||
| 641 | #endif | ||
| 642 | #ifdef HAVE_NTGUI | ||
| 643 | #define FRAME_WINDOW_P(f) FRAME_W32_P (f) | ||
| 644 | #endif | ||
| 645 | #ifndef FRAME_WINDOW_P | ||
| 646 | #define FRAME_WINDOW_P(f) (0) | ||
| 647 | #endif | ||
| 648 | |||
| 649 | /* Return true if the terminal device is not suspended. */ | 636 | /* Return true if the terminal device is not suspended. */ |
| 650 | #define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input) | 637 | #define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input) |
| 651 | 638 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 3c75a63f4e0..eaab8dac18d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5861,7 +5861,6 @@ get_next_display_element (struct it *it) | |||
| 5861 | } | 5861 | } |
| 5862 | } | 5862 | } |
| 5863 | 5863 | ||
| 5864 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 5865 | /* Adjust face id for a multibyte character. There are no multibyte | 5864 | /* Adjust face id for a multibyte character. There are no multibyte |
| 5866 | character in unibyte text. */ | 5865 | character in unibyte text. */ |
| 5867 | if ((it->what == IT_CHARACTER || it->what == IT_COMPOSITION) | 5866 | if ((it->what == IT_CHARACTER || it->what == IT_COMPOSITION) |
| @@ -5888,7 +5887,6 @@ get_next_display_element (struct it *it) | |||
| 5888 | it->string); | 5887 | it->string); |
| 5889 | } | 5888 | } |
| 5890 | } | 5889 | } |
| 5891 | #endif | ||
| 5892 | 5890 | ||
| 5893 | done: | 5891 | done: |
| 5894 | /* Is this character the last one of a run of characters with | 5892 | /* Is this character the last one of a run of characters with |
diff --git a/src/xterm.c b/src/xterm.c index a44313d0a56..491a8b3698f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2924,9 +2924,8 @@ x_clear_frame (struct frame *f) | |||
| 2924 | follow an explicit cursor_to. */ | 2924 | follow an explicit cursor_to. */ |
| 2925 | BLOCK_INPUT; | 2925 | BLOCK_INPUT; |
| 2926 | 2926 | ||
| 2927 | /* The following calls have been commented out because they do not | 2927 | /* The following call is commented out because it does not seem to accomplish |
| 2928 | seem to accomplish anything, apart from causing flickering during | 2928 | anything, apart from causing flickering during window resize. */ |
| 2929 | window resize. */ | ||
| 2930 | /* XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); */ | 2929 | /* XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); */ |
| 2931 | 2930 | ||
| 2932 | /* We have to clear the scroll bars. If we have changed colors or | 2931 | /* We have to clear the scroll bars. If we have changed colors or |