-2011-03-10 Paul Eggert <eggert@cs.ucla.edu>
+2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * fringe.c (update_window_fringes): Remove unused variables.
+
+ * unexmacosx.c (copy_data_segment): Also copy __got section.
+ (Bug#8223)
+
+2011-03-12 Eli Zaretskii <eliz@gnu.org>
+
+ * termcap.c [MSDOS]: Include "msdos.h.
+ (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
+ Constify `char *' arguments and their references according to
+ prototypes in tparam.h.
+
+ * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
+
+ * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
+ Adapt all references accordingly.
+
+ * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
+
+2011-03-11 Tom Tromey <tromey@redhat.com>
+
+ * buffer.c (syms_of_buffer): Remove obsolete comment.
+
+2011-03-11 Eli Zaretskii <eliz@gnu.org>
+
+ * termhooks.h (encode_terminal_code): Declare prototype.
+
+ * msdos.c (encode_terminal_code): Don't declare prototype.
+
+ * term.c (encode_terminal_code): Now external again, used by
+ w32console.c and msdos.c.
+
+ * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
+ on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
+
+2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix some minor problems found by GCC 4.5.2's static checks.
+
+ * fringe.c (update_window_fringes): Mark locals as initialized
+ (Bug#8227).
+ (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
+
+ * alloc.c (mark_fringe_data): Move decl from here ...
+ * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
+ to check its interface.
+ (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
* fontset.c (free_realized_fontset): Now static.
+ (Fset_fontset_font): Rename local to avoid shadowing.
+ (fontset_font): Mark local as initialized.
+ (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
* xrdb.c: Include "xterm.h", to check x_load_resources's interface.
* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
so that the caller can use some name other than gcpro1.
(GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
- * xfns.c (x_decode_color, x_set_name, x_window): Now static.
+ * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
+ (Fx_backspace_delete_keys_p):
+ Use them to avoid shadowing, and rename vars to avoid shadowing.
+ (x_decode_color, x_set_name, x_window): Now static.
(Fx_create_frame): Add braces to silence GCC warning.
(Fx_file_dialog, Fx_select_font): Fix pointer signedness.
(x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
macros.
-2011-03-09 Paul Eggert <eggert@cs.ucla.edu>
-
* xterm.h (x_mouse_leave): New decl.
* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
since it's unused otherwise.
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
- Add a FIXME comment, since the code still doesn't look right.
+ Add a FIXME, since the code still doesn't look right. (Bug#8215)
(Fcurrent_bidi_paragraph_direction): Simplify slightly; this
avoids a gcc -Wuninitialized diagnostic.
(display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
and to avoid gcc -Wuninitialized warning.
(load_charset_map): Mark variables that gcc -Wuninitialized
does not deduce are never used uninitialized.
- (load_charset): Abort instead of using uninitialized var.
+ (load_charset): Abort instead of using uninitialized var (Bug#8229).
* coding.c (coding_set_source, coding_set_destination):
Use "else { /* comment */ }" rather than "else /* comment */;"
-Wuninitialized does not deduce are never used uninitialized.
(detect_coding_iso_2022): Initialize a local variable that might
be used uninitialized. Leave a FIXME because it's not clear that
- this initialization is needed.
+ this initialization is needed. (Bug#8211)
(ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
(ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
(SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
* alloc.c (mark_ttys): Move decl from here ...
* lisp.h (mark_ttys): ... to here, so that it's checked against defn.
+2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
+
+ * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
+
+2011-03-09 Juanma Barranquero <lekktu@gmail.com>
+
+ * search.c (compile_pattern_1): Remove argument regp, unused since
+ revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
+ (compile_pattern): Don't pass it.
+
+2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xterm.h (DEFAULT_GDK_DISPLAY): New define.
+ (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
+ for ! HAVE_GTK3.
+ (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
+
+ * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
+
+ * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
+ gdk_window_get_screen, gdk_window_get_geometry,
+ gdk_x11_window_lookup_for_display and GDK_KEY_g.
+ (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
+ (xg_get_pixbuf_from_pixmap): New function.
+ (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
+ to Pixmap, take frame as parameter, remove GdkColormap parameter.
+ Call xg_get_pixbuf_from_pixmap instead of
+ gdk_pixbuf_get_from_drawable.
+ (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
+ xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
+ (xg_check_special_colors): Use GtkStyleContext and its functions
+ for HAVE_GTK3.
+ (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
+ (xg_prepare_tooltip, create_dialog, menubar_map_cb)
+ (xg_update_frame_menubar, xg_tool_bar_detach_callback)
+ (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
+ gtk_widget_get_preferred_size.
+ (xg_frame_resized): gdk_window_get_geometry only takes 5
+ parameters.
+ (xg_win_to_widget, xg_event_is_for_menubar): Call
+ gdk_x11_window_lookup_for_display.
+ (xg_set_widget_bg): New function.
+ (delete_cb): New function.
+ (xg_create_frame_widgets): connect delete-event to delete_cb.
+ Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
+ (xg_set_background_color): Call xg_set_widget_bg.
+ (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
+ (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
+ Only call gtk_range_set_update_policy if ! HAVE_GTK3.
+ (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
+ if ! HAVE_GTK3.
+ (update_frame_tool_bar): Call gtk_widget_hide.
+ (xg_initialize): Use GDK_KEY_g.
+
+ * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
+ if ! HAVE_GTK3
+ (x_session_initialize): Call gdk_x11_set_sm_client_id.
+
+ * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
+ (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
+ Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
+
+2011-03-08 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32xfns.c (select_palette): Check success of RealizePalette against
+ GDI_ERROR, not zero.
+
+2011-03-07 Ben Key <bkey76@gmail.com>
+
+ * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
+ (file_dialog_callback): Fix locating the window handle of the File Name
+ text field. After disabling it, set focus on the list control.
+ (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
+ Name text field to "Current Directory" if it does not already have
+ another value. (Bug#8181)
+
+2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
+ parameter for hbar cursors. Based on a patch by Ben Key
+ <bkey76@gmail.com>.
+
2011-03-06 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
* xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
(produce_glyphless_glyph): Make a pointer "const"
since it might point to immutable storage.
- (update_window_cursor): Now static, since it's not used elsewhere.
+ (update_window_cursor): Now static, since it's not used elsewhere.
(SKIP_GLYPHS): Removed unused macro.
2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
as per recent filemodestring API change. Reported by Jonas Öster in
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
-2011-02-23 Ben Key <bkey76@gmail.com> (tiny change)
+2011-02-23 Ben Key <bkey76@gmail.com>
* nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
directly, for bar cursors.