diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/term.c | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 8 | ||||
| -rw-r--r-- | src/xsettings.c | 10 |
4 files changed, 22 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c9706aa3a37..3862ce46327 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -6,8 +6,6 @@ | |||
| 6 | Without this fix, (bitmap-spec-p '(34359738368 1 "x")) | 6 | Without this fix, (bitmap-spec-p '(34359738368 1 "x")) |
| 7 | would wrongly return t on a 64-bit host. | 7 | would wrongly return t on a 64-bit host. |
| 8 | 8 | ||
| 9 | 2011-07-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10 | |||
| 11 | * dispnew.c (init_display): Use *_RANGE_OVERFLOW macros. | 9 | * dispnew.c (init_display): Use *_RANGE_OVERFLOW macros. |
| 12 | The plain *_OVERFLOW macros run afoul of GCC bug 49705 | 10 | The plain *_OVERFLOW macros run afoul of GCC bug 49705 |
| 13 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705> | 11 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705> |
| @@ -164,6 +162,18 @@ | |||
| 164 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally | 162 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally |
| 165 | well either way, and we prefer signed to unsigned. | 163 | well either way, and we prefer signed to unsigned. |
| 166 | 164 | ||
| 165 | 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 166 | |||
| 167 | Fix minor new problems caught by GCC 4.6.1. | ||
| 168 | * term.c (init_tty): Remove unused local. | ||
| 169 | * xsettings.c (store_monospaced_changed): Define this function only | ||
| 170 | if (defined HAVE_GSETTINGS || defined HAVE_GCONF), as it's | ||
| 171 | not used otherwise. | ||
| 172 | |||
| 173 | 2011-07-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 174 | |||
| 175 | * xdisp.c (Vresize_mini_windows): Minor doc fix (Bug#3300). | ||
| 176 | |||
| 167 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | 177 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 168 | 178 | ||
| 169 | * xdisp.c (syms_of_xdisp): Make it explicit that the mini-windows | 179 | * xdisp.c (syms_of_xdisp): Make it explicit that the mini-windows |
diff --git a/src/term.c b/src/term.c index b9f10b122a7..22056451cb9 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3097,7 +3097,6 @@ init_tty (const char *name, const char *terminal_type, int must_succeed) | |||
| 3097 | char *area = NULL; | 3097 | char *area = NULL; |
| 3098 | char **address = &area; | 3098 | char **address = &area; |
| 3099 | int buffer_size = 4096; | 3099 | int buffer_size = 4096; |
| 3100 | register char *p = NULL; | ||
| 3101 | int status; | 3100 | int status; |
| 3102 | struct tty_display_info *tty = NULL; | 3101 | struct tty_display_info *tty = NULL; |
| 3103 | struct terminal *terminal = NULL; | 3102 | struct terminal *terminal = NULL; |
diff --git a/src/xdisp.c b/src/xdisp.c index 490b23891af..123d2fa984c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -26852,12 +26852,12 @@ If an integer, it specifies a number of lines. */); | |||
| 26852 | Vmax_mini_window_height = make_float (0.25); | 26852 | Vmax_mini_window_height = make_float (0.25); |
| 26853 | 26853 | ||
| 26854 | DEFVAR_LISP ("resize-mini-windows", Vresize_mini_windows, | 26854 | DEFVAR_LISP ("resize-mini-windows", Vresize_mini_windows, |
| 26855 | doc: /* *How to resize mini-windows (the minibuffer and the echo area). | 26855 | doc: /* How to resize mini-windows (the minibuffer and the echo area). |
| 26856 | A value of nil means don't automatically resize mini-windows. | 26856 | A value of nil means don't automatically resize mini-windows. |
| 26857 | A value of t means resize them to fit the text displayed in them. | 26857 | A value of t means resize them to fit the text displayed in them. |
| 26858 | A value of `grow-only', the default, means let mini-windows grow | 26858 | A value of `grow-only', the default, means let mini-windows grow only; |
| 26859 | only, until their display becomes empty, at which point the windows | 26859 | they return to their normal size when the minibuffer is closed, or the |
| 26860 | go back to their normal size. */); | 26860 | echo area becomes empty. */); |
| 26861 | Vresize_mini_windows = Qgrow_only; | 26861 | Vresize_mini_windows = Qgrow_only; |
| 26862 | 26862 | ||
| 26863 | DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist, | 26863 | DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist, |
diff --git a/src/xsettings.c b/src/xsettings.c index 06718df5a3c..dadbe68b4cb 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -83,7 +83,7 @@ dpyinfo_valid (struct x_display_info *dpyinfo) | |||
| 83 | 83 | ||
| 84 | /* Store a monospace font change event if the monospaced font changed. */ | 84 | /* Store a monospace font change event if the monospaced font changed. */ |
| 85 | 85 | ||
| 86 | #ifdef HAVE_XFT | 86 | #if defined HAVE_XFT && (defined HAVE_GSETTINGS || defined HAVE_GCONF) |
| 87 | static void | 87 | static void |
| 88 | store_monospaced_changed (const char *newfont) | 88 | store_monospaced_changed (const char *newfont) |
| 89 | { | 89 | { |
| @@ -99,9 +99,11 @@ store_monospaced_changed (const char *newfont) | |||
| 99 | XCAR (first_dpyinfo->name_list_element)); | 99 | XCAR (first_dpyinfo->name_list_element)); |
| 100 | } | 100 | } |
| 101 | } | 101 | } |
| 102 | #endif | ||
| 102 | 103 | ||
| 103 | /* Store a font name change event if the font name changed. */ | 104 | /* Store a font name change event if the font name changed. */ |
| 104 | 105 | ||
| 106 | #ifdef HAVE_XFT | ||
| 105 | static void | 107 | static void |
| 106 | store_font_name_changed (const char *newfont) | 108 | store_font_name_changed (const char *newfont) |
| 107 | { | 109 | { |
| @@ -252,7 +254,7 @@ something_changed_gsettingsCB (GSettings *settings, | |||
| 252 | g_variant_unref (val); | 254 | g_variant_unref (val); |
| 253 | } | 255 | } |
| 254 | } | 256 | } |
| 255 | #endif /* HAVE_XFT */ | 257 | #endif /* HAVE_XFT */ |
| 256 | } | 258 | } |
| 257 | 259 | ||
| 258 | #endif /* HAVE_GSETTINGS */ | 260 | #endif /* HAVE_GSETTINGS */ |
| @@ -441,14 +443,14 @@ parse_settings (unsigned char *prop, | |||
| 441 | bytes_parsed += 4; /* Skip serial for this value */ | 443 | bytes_parsed += 4; /* Skip serial for this value */ |
| 442 | if (bytes_parsed > bytes) return BadLength; | 444 | if (bytes_parsed > bytes) return BadLength; |
| 443 | 445 | ||
| 444 | want_this = | 446 | want_this = |
| 445 | #ifdef HAVE_XFT | 447 | #ifdef HAVE_XFT |
| 446 | (nlen > 6 && strncmp (name, "Xft/", 4) == 0) | 448 | (nlen > 6 && strncmp (name, "Xft/", 4) == 0) |
| 447 | || strcmp (XSETTINGS_FONT_NAME, name) == 0 | 449 | || strcmp (XSETTINGS_FONT_NAME, name) == 0 |
| 448 | || | 450 | || |
| 449 | #endif | 451 | #endif |
| 450 | strcmp (XSETTINGS_TOOL_BAR_STYLE, name) == 0; | 452 | strcmp (XSETTINGS_TOOL_BAR_STYLE, name) == 0; |
| 451 | 453 | ||
| 452 | switch (type) | 454 | switch (type) |
| 453 | { | 455 | { |
| 454 | case 0: /* Integer */ | 456 | case 0: /* Integer */ |