* xmenu.c (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
[bpt/emacs.git] / src / ChangeLog
index 8582bf6..f1b08f6 100644 (file)
@@ -1,11 +1,33 @@
-2011-03-06  Paul Eggert  <eggert@cs.ucla.edu>
+2011-03-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xmenu.c (menu_highlight_callback): Now static.
+       (set_frame_menubar): Remove unused local.
+       (xmenu_show): Rename parameter to avoid shadowing.
+       (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
+       since they might point to immutable storage.
 
        * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
        Add a FIXME comment, since the code still doesn't look right.
        (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
        avoids a gcc -Wuninitialized diagnostic.
+       (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
+       (note_mouse_highlight): Mark variables that gcc -Wuninitialized
+       does not deduce are never used uninitialized.
+
+       * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
+
+       * xdisp.c (redisplay_window): Rename local to avoid shadowing.
+
+2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
-       current_column: Now returns EMACS_INT, fixing some iftc.
+       * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
+       change.
+
+2011-03-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       current_column: Now returns EMACS_INT, fixing some iftc
+       that was introduced in the 2002-06-02 change "temporarily"; see
+       <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
        * bytecode.c (Fbyte_code): Don't cast current_column () to int.
        * cmds.c (internal_self_insert): Likewise.
        * indent.c (Fcurrent_column): Likewise.
@@ -15,7 +37,6 @@
        to int.
        * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
        Likewise.
-
        * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
        not int or double, if they might contain a column number.
        * indent.c (current_column, Findent_to, indented_beyond_p):