From: Yuuki Harano Date: Mon, 29 Nov 2021 15:07:18 +0000 (+0900) Subject: Use /* */ comment style instead of // X-Git-Tag: emacs-29.0.90~3648^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b8e122bc7afc0830c6bb353e81a0face0d10746;p=emacs.git Use /* */ comment style instead of // * src/gtkutil.c (xg_create_frame_widgets): * src/pgtkfns.c (Fx_create_frame): (frame_geometry): * src/pgtkterm.c (pgtk_mouse_position): (pgtk_redisplay_interface): (pgtk_clear_frame): (pgtk_create_terminal): (struct pgtk_window_is_of_frame_recursive_t): (key_press_event): (syms_of_pgtkterm): --- diff --git a/src/gtkutil.c b/src/gtkutil.c index d4823f813bc..d15caf044f8 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1407,7 +1407,7 @@ xg_create_frame_widgets (struct frame *f) block_input (); -#ifndef HAVE_PGTK // gtk_plug not found. +#ifndef HAVE_PGTK /* gtk_plug not found. */ if (FRAME_X_EMBEDDED_P (f)) { GdkDisplay *gdpy = gdk_x11_lookup_xdisplay (FRAME_X_DISPLAY (f)); diff --git a/src/pgtkfns.c b/src/pgtkfns.c index 339d6dd45ae..afcb44f1223 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -1602,7 +1602,7 @@ This function is an internal primitive--use `make-frame' instead. */ ) #endif /* Create the X widget or window. */ - // x_window (f); + /* x_window (f); */ xg_create_frame_widgets (f); pgtk_set_event_handler (f); @@ -3591,7 +3591,7 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute) tab_bar_height = FRAME_TAB_BAR_HEIGHT (f); tab_bar_width = (tab_bar_height ? native_width - 2 * internal_border_width : 0); - // inner_top += tab_bar_height; + /* inner_top += tab_bar_height; */ /* Construct list. */ if (EQ (attribute, Qouter_edges)) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 0c286ca1510..d6103d4f151 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -3218,7 +3218,7 @@ pgtk_mouse_position (struct frame **fp, int insist, Lisp_Object * bar_window, f1 = pgtk_any_window_to_frame (win); else { - // crossing display server? + /* crossing display server? */ f1 = SELECTED_FRAME (); } } @@ -3488,8 +3488,8 @@ static struct redisplay_interface pgtk_redisplay_interface = { gui_clear_end_of_line, pgtk_scroll_run, pgtk_after_update_window_line, - NULL, // gui_update_window_begin, - NULL, // gui_update_window_end, + NULL, /* gui_update_window_begin, */ + NULL, /* gui_update_window_end, */ pgtk_flush_display, gui_clear_window_mouse_face, gui_get_glyph_overhangs, @@ -3505,7 +3505,7 @@ static struct redisplay_interface pgtk_redisplay_interface = { pgtk_draw_window_cursor, pgtk_draw_vertical_window_border, pgtk_draw_window_divider, - NULL, // pgtk_shift_glyphs_for_insert, + NULL, /* pgtk_shift_glyphs_for_insert, */ pgtk_show_hourglass, pgtk_hide_hourglass, pgtk_default_font_parameter, @@ -3527,7 +3527,7 @@ pgtk_clear_frame (struct frame *f) if (!FRAME_DEFAULT_FACE (f)) return; - // mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f))); + /* mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f))); */ block_input (); @@ -4794,10 +4794,10 @@ pgtk_create_terminal (struct pgtk_display_info *dpyinfo) terminal->update_begin_hook = pgtk_update_begin; terminal->update_end_hook = pgtk_update_end; terminal->read_socket_hook = pgtk_read_socket; - // terminal->frame_up_to_date_hook = pgtk_frame_up_to_date; + /* terminal->frame_up_to_date_hook = pgtk_frame_up_to_date; */ terminal->mouse_position_hook = pgtk_mouse_position; terminal->frame_rehighlight_hook = XTframe_rehighlight; - // terminal->frame_raise_lower_hook = pgtk_frame_raise_lower; + /* terminal->frame_raise_lower_hook = pgtk_frame_raise_lower; */ terminal->frame_visible_invisible_hook = pgtk_make_frame_visible_invisible; terminal->fullscreen_hook = pgtk_fullscreen_hook; terminal->menu_show_hook = pgtk_menu_show; @@ -4838,7 +4838,7 @@ struct pgtk_window_is_of_frame_recursive_t { GdkWindow *window; bool result; - GtkWidget *emacs_gtk_fixed; // stop on emacsgtkfixed other than this. + GtkWidget *emacs_gtk_fixed; /* stop on emacsgtkfixed other than this. */ }; static void @@ -5487,7 +5487,7 @@ key_press_event (GtkWidget * widget, GdkEvent * event, gpointer * user_data) evq_enqueue (&inev); } - // count += nchars; + /* count += nchars; */ inev.ie.kind = NO_EVENT; /* Already stored above. */ @@ -5501,7 +5501,7 @@ done: { XSETFRAME (inev.ie.frame_or_window, f); evq_enqueue (&inev); - // count++; + /* count++; */ } SAFE_FREE (); @@ -6831,7 +6831,7 @@ A value of nil means Emacs doesn't use toolkit scroll bars. With the X Window system, the value is a symbol describing the X toolkit. Possible values are: gtk, motif, xaw, or xaw3d. With MS Windows or Nextstep, the value is t. */ ); - // Vx_toolkit_scroll_bars = Qt; + /* Vx_toolkit_scroll_bars = Qt; */ Vx_toolkit_scroll_bars = intern_c_string ("gtk"); DEFVAR_BOOL ("x-use-underline-position-properties", x_use_underline_position_properties,