From dd1404cca3cf6bc459bc53f9aa9528170e30efd4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 7 Apr 2015 00:00:06 -0700 Subject: Rename ChangeLogs for gitlog-to-changelog This patch was implemented via the following shell commands: find * -name ChangeLog | sed 's,.*,git mv & &.1, s, lisp/ChangeLog\.1$, lisp/ChangeLog.17, s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09, s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3, s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2, s, src/ChangeLog\.1$, src/ChangeLog.13,' | sh git commit -am"[this commit message]" --- lwlib/ChangeLog | 1982 ----------------------------------------------------- lwlib/ChangeLog.1 | 1982 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1982 insertions(+), 1982 deletions(-) delete mode 100644 lwlib/ChangeLog create mode 100644 lwlib/ChangeLog.1 (limited to 'lwlib') diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog deleted file mode 100644 index e5dfed2342..0000000000 --- a/lwlib/ChangeLog +++ /dev/null @@ -1,1982 +0,0 @@ -2015-03-18 Stefan Monnier - - * xlwmenu.c (pop_up_menu): Remove debugging code. - -2015-02-28 Jan Djärv - - * xlwmenu.c (remap_menubar): Re-realize menu to force move under - Gnome 3. - -2015-01-04 Paul Eggert - - Less 'make' chatter for lwlib - * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1) - (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros. - (liblw.a): Use them. - -2014-12-25 Paul Eggert - - * xlwmenu.c (resource_widget_value): - Rewrite to avoid the need for strcat, typically by using stpcpy - and/or lispstpcpy. strcat tends to be part of O(N**2) algorithms. - -2014-10-20 Glenn Morris - - * Merge in all changes up to 24.4 release. - -2014-09-01 Paul Eggert - - --enable-silent-rules now suppresses more chatter. - * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_) - (am__v_CC_0, am__v_CC_1): New macros, taken from Automake. - (.c.o): Use them. - -2014-07-15 Dmitry Antipov - - * lwlib.h (toplevel): Use unsigned int for LWLIB_ID. - -2014-06-28 Glenn Morris - - * Makefile.in: Use gcc auto-dependency information. - Move old dependency information to new file deps.mk. - (MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag): - New, set by configure. - (DEPDIR): New variable. - (ALL_CFLAGS): Add DEPFLAGS. - (.c.o): Add MKDEPDIR. - (clean, mostlyclean): Delete DEPDIR. - * deps.mk, autodeps.mk: New files. - -2014-06-17 Paul Eggert - - Omit redundant extern decls. - From Dmitry Antipov. - * lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value) - (xm_create_dialog, xm_destroy_instance, xm_popup_menu) - (xm_set_keyboard_focus, xm_set_main_areas): Remove decls. - -2014-06-15 Glenn Morris - - * Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'. - - * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): - Declare as PHONY. - (bootstrap-clean): New. - -2014-06-13 Glenn Morris - - * Makefile.in ($(globals_h)): - GNU make automatically passes command-line arguments to sub-makes. - -2014-06-04 Dmitry Antipov - - * lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit - fields conditionally. - -2014-06-03 Paul Eggert - - Do not require libXt-devel when building with gtk. - * lwlib-widget.h: New file, with contents taken from lwlib.h. - (widget_value) [HAVE_NTGUI]: New member 'title'. - * lwlib.h: Include lwlib-widget.h. - (change_type, enum button_type, widget_value): - Move to lwlib-widget.h. - -2014-06-03 Dmitry Antipov - - * xlwmenu.c (openXftFont): Do not load regular X font here. - (XlwMenuInitialize): Remove ancient #if 0 code. - (XlwMenuDestroy): Likewise. Free regular X font here. - -2014-06-02 Dmitry Antipov - - Use common memory management functions for widgets. - * lwlib.h (widget_value): Do not maintain a free list any more. - (malloc_widget_value, free_widget_value): Remove prototypes. - * lwlib.c (malloc_widget_value, free_widget_value): - (widget_value_free_list, malloc_cpt): Remove. - (free_widget_value_tree, copy_widget_value_tree): Adjust users. - -2014-05-30 Dmitry Antipov - - Use common string allocation and freeing functions where applicable. - * lwlib.h (safe_strdup): Remove prototype. - * lwlib.c (safe_strdup, safe_free_str): Remove. - (copy_widget_value_tree, allocate_widget_info, free_widget_info): - (merge_widget_value): Prefer xstrdup, xfree and dupstring. - * lwlib-Xm.c (make_destroyed_instance, xm_update_one_value): Ditto. - -2013-12-14 Paul Eggert - - Use bool for boolean, focusing on headers. - * xlwmenuP.h (XlwMenu_part): Use bool_bf for boolean bit-fields. - -2013-11-14 Paul Eggert - - * lwlib.c (safe_strdup): Prefer tail calls. - -2013-11-02 Glenn Morris - - Use relative filenames in TAGS files. - * Makefile.in (abs_srcdir): Remove it again. - (ctagsfiles, TAGS): Use relative filenames. - - * Makefile.in (abs_srcdir): New, set by configure. - (ETAGS, ctagsfiles): New variables. - (TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again. - -2013-10-24 Glenn Morris - - * Makefile.in (abs_top_srcdir): New, set by configure. - -2013-09-04 Paul Eggert - - Makefile improvements. - * Makefile.in (all): Put this first. Don't use double-colon - rules, as they are not portable according to POSIX. Mark as phony. - -2013-06-30 Paul Eggert - - Fix minor problems found by static checking. - * lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): - * lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): - * lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: - Now const. - -2012-10-06 Ulrich Müller - - * Makefile.in (AR, ARFLAGS): Get values from configure. - -2012-08-16 Paul Eggert - - Use ASCII tests for character types. - * lwlib-Xaw.c, lwlib.c, xlwmenu.c: - Don't include ; no longer needed. - * lwlib-Xaw.c (openFont): - * xlwmenu.c (openXftFont): Test just for ASCII digits. - -2012-08-01 Glenn Morris - - * Makefile.in (config_h): Add conf_post.h. - -2012-07-31 Dmitry Antipov - - Avoid unused variable warning if --with-x-toolkit=motif. - * lwlib-Xm.c (make_menu_in_widget): Remove unused variable. - -2012-07-06 Paul Eggert - - Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). - * lwlib.c: Include c-strcase.h. - (lwlib_strcasecmp): Remove. All uses replaced with c_strcasecmp. - -2012-06-26 Paul Eggert - - Clean out last vestiges of the old HAVE_CONFIG_H stuff. - * Makefile.in (ALL_CFLAGS): Remove -DHAVE_CONFIG_H. - * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c: - * xlwmenu.c: Include unconditionally. - -2012-06-25 Dmitry Antipov - - * lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which - may be defined to library function strcasecmp if available. - -2012-06-24 Paul Eggert - - Switch from NO_RETURN to C11's _Noreturn (Bug#11750). - * xlwmenu.c (abort_gracefully): - Use _Noreturn rather than NO_RETURN. - No need for separate decl merely because of _Noreturn. - -2012-05-31 Paul Eggert - - Remove obsolete '#define static' cruft. - * xlwmenu.c [emacs]: Include "bitmaps/gray.xbm". - (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]: - Remove; all uses replaced with definiens. - -2012-04-18 Paul Eggert - - configure: new option --enable-gcc-warnings (Bug#11207) - * Makefile.in (C_WARNINGS_SWITCH): Remove. - (WARN_CFLAGS, WERROR_CFLAGS): New macros. - (ALL_CFLAGS): Use new macros rather than old. - -2012-04-11 Glenn Morris - - * Makefile.in (C_SWITCH_X_SYSTEM): Remove. - (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM. - -2011-10-13 Dmitry Antipov - - * lwlib-Xaw.c (openFont, xaw_destroy_instance): Replace free with - xfree to avoid crash when xmalloc overrun checking is enabled. - * lwlib-Xm.c (free_destroyed_instance, xm_update_one_value): Ditto. - * lwlib-utils.c (XtApplyToWidgets): Ditto. - * lwlib.c (safe_free_str, free_widget_value, free_widget_value_tree) - (free_widget_info, free_widget_instance, name_to_widget): Ditto. - * xlwmenu.c (openXftFont): Ditto. - -2011-06-27 YAMAMOTO Mitsuharu - - * Makefile.in (ALL_CFLAGS): Add -I../lib for generated header files - in out-of-tree build. - -2011-06-06 Paul Eggert - - * Makefile.in (ALL_CFLAGS): Add -I$(srcdir)/../lib. - This is needed because lisp.h includes intprops.h now (Bug#8794). - -2011-04-16 Paul Eggert - - Static checks with GCC 4.6.0 and non-default toolkits. - - * lwlib-Xm.c (make_dialog): Rename local to avoid shadowing. - (make_menu_in_widget): Add cast to avoid warning. - * lwlib-utils.c (XtCompositeChildren): Likewise. - - * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;". - (first_child) [USE_MOTIF]: Protoize. - - * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. - - * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. - (MINL): Define only if not emacs. - -2011-03-07 Chong Yidong - - * Version 23.3 released. - -2011-02-14 Jan Djärv - - * xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace. - - * xlwmenuP.h (_XlwMenu_part): Remove faceName. Add fontName. - - * xlwmenu.c (xlwmenu_default_font): Remove, does not work for - multi-display. - (xlwMenuResources): Remove XtNfaceName and XtNdefaultFace. - Make XtNFont a String resource. - (make_windows_if_needed): Call XFlush so later changes are seen by the - X server. - (remap_menubar): Use XtMoveWidget and then - XtResizeWidget/XtResizeWindow after XtPopup. Works better with - Compiz. - (make_drawing_gcs): Check if mw->menu.font is set. - (getDefaultXftFont): New function. - (openXftFont): faceName is now fontName. Try XLoadQueryFont first - and then XftFontOpenName. - (XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont. - (XlwMenuClassInitialize): Remove initialization of - xlwmenu_default_font. - (fontname_changed): Renamed from facename_changed. - (XlwMenuSetValues): Use facename_changed. - - * lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts. Try - XLoadQueryFont first and then Xft fonts. - -2011-02-13 Glenn Morris - - * lwlib-utils.c (index, rindex): Don't undef (neither used in lwlib/, - nor set in config.h). - -2011-02-11 Glenn Morris - - * Makefile.in (USE_X_TOOLKIT, RM, TOOLKIT_DEFINES): Remove. - (ALL_CFLAGS): Remove -I. - (config_h, lisp_h, src_h): New variables. - (globals_h): Rename from $globals. - ($(globals_h)): Check cd exit status. - (lwlib.o): Remove special rule. - (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o) - (xlwmenu.o): Add lisp.h and config.h to prereqs. - (lwlib-utils.o): Add lwlib.h to prereqs. - (lwlib.o): Add lwlib-utils.h and lwlib-Xm.h to prereqs. - (lwlib-Xlw.o): Add xlwmenu.h to prereqs. - (xlwmenu.o): Add ../src/xterm.h to prereqs. - (mostlyclean): Forget about "core" files. - -2011-02-10 Glenn Morris - - * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c: - * xlwmenu.c: Standardize on <> for includes from the ../src directory. - -2011-02-09 Glenn Morris - - * Makefile.in (@SET_MAKE@): New, set by configure. - (globals): New variable and rule. - (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o) - (xlwmenu.o): Add dependency on src/globals.h. - -2011-01-31 Jan Djärv - - * lwlib-Xm.c (make_destroyed_instance): - * lwlib-utils.c (XtApplyToWidgets): - * lwlib.c (safe_strdup, malloc_widget_value) - (allocate_widget_info, allocate_widget_instance): Use xmalloc - instead of malloc. - -2011-01-25 Werner Meisner - - * lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference - (Bug#7690). - -2010-09-26 Dan Nicolaescu - - Use const for some pointer arguments. - * lwlib.h (my_strcasecmp, safe_strcmp, name_to_widget) - (find_in_table, dialog_spec_p, lw_separator_p): - * lwlib.c (my_strcasecmp, safe_strcmp, name_to_widget) - (find_in_table, dialog_spec_p, lw_separator_p): Use const. - -2010-09-20 Dan Nicolaescu - - * lwlib.h (lw_register_widget, lw_create_widget): - * lwlib.c (allocate_widget_info, lw_register_widget) - (lw_create_widget, separator_table): Use const. - -2010-07-29 Dan Nicolaescu - - * xlwmenu.c (abort_gracefully): Mark as NO_RETURN. - -2010-07-26 Dan Nicolaescu - - * xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations. - -2010-07-12 Andreas Schwab - - * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from - substitution. - (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}. - -2010-07-08 Jan Djärv - - * xlwmenu.c (size_menu_item): Change from K&R to prototype. - Change label_width and height to int. - (draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus) - (draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu) - (map_event_to_widget_value): Reformat. - (display_menu_item): Change from K&R to prototype. - - * lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R - to prototype. - (lw_internal_update_other_instances, merge_widget_value): Reformat. - - * lwlib-int.h (widget_creation_function): Fix prototype. - - * lwlib-Xm.c (x_print_complete_resource_name) - (make_destroyed_instance, free_destroyed_instance, first_child) - (lw_motif_widget_p, resource_motif_string, destroy_all_children) - (xm_arm_callback, xm_update_label, xm_update_list) - (xm_update_pushbutton, xm_update_cascadebutton) - (xm_update_toggle, xm_update_radiobox, make_menu_in_widget) - (update_one_menu_entry, xm_update_menu, xm_update_text) - (xm_update_text_field, xm_update_one_widget) - (xm_update_one_value, activate_button, dialog_key_cb) - (make_dialog, mark_dead_instance_destroyed) - (find_matching_instance, recenter_widget, recycle_instance) - (xm_create_dialog, make_menubar, remove_grabs, make_popup_menu) - (make_main, xm_destroy_instance, xm_popup_menu) - (set_min_dialog_size, xm_pop_instance, do_call) - (xm_internal_update_other_instances, xm_generic_callback) - (xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback) - (xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change - from K&R to prototype. - - * lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to - prototype. - (xlw_update_one_value): Reformat. - - * lwlib-Xaw.c (xaw_generic_callback, command_reset) - (xaw_update_one_value): Reformat. - (xaw_update_one_widget): Reformat and remove dead code. - (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar) - (xaw_update_scrollbar): Remove (not used). - (make_dialog): Change from K&R to prototype. Remove dead code. - (xaw_creation_table): Remove scrollbar entry. - -2010-07-08 Dan Nicolaescu - - * lwlib.c (allocate_widget_instance, get_widget_info) - (get_widget_instance, find_instance, set_one_value) - (update_one_widget_instance, update_all_widget_values) - (lw_modify_all_widgets, lw_get_widget, lw_make_widget) - (lw_create_widget, lw_pop_all_widgets, lw_show_busy) - (lw_refigure_widget, lw_allow_resizing): Remove alternative K&R - declarations. - * lwlib-Xlw.c (xlw_update_one_widget, xlw_pop_instance): Likewise. - * lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance): - Likewise. - * lwlib-Xm.c (P_): Remove. - -2010-07-07 Andreas Schwab - - * lwlib.c (lwlib_memset, lwlib_bcopy): Remove. - (malloc_widget_value, free_widget_info, allocate_widget_instance) - (lw_separator_p): Replace lwlib_memset, lwlib_bcopy, bzero, bcmp by - memset, memcpy, memcmp. - * lwlib-utils.c (XtApplyToWidgets): Likewise. - * xlwmenu.c (XlwMenuInitialize): Likewise. - * lwlib.h (lwlib_bcopy): Remove declaration. - -2010-07-05 Jan Djärv - - * xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype. - (display_menu_item): Remove unused variable gi. - (make_windows_if_needed): Remove unused variable screen. - (XlwMenuRedisplay): Remove unused variable i. - - * lwlib-Xaw.c: Include for isdigit. - (fill_xft_data, set_text): Remove unused variable screen. - (draw_text): Cast bp to FcChar8*. - (find_xft_data): Return 0 if inst or xft_data is not set. - (wm_delete_window): Correct prototype. Initialize widget to 0 - and return if widget is still 0 after loop. - -2010-07-04 Dan Nicolaescu - - * lwlib-Xaw.c: Convert function definitions to standard C. - * lwlib-Xlw.c: - * lwlib-utils.c: - * lwlib.c: - * lwlib.h: - * xlwmenu.c: Likewise. - -2010-07-02 Jan Djärv - - * lwlib-Xm.c: Remove __P and P_ from .c and .m files. - * lwlib-Xm.c: - * lwlib.c: - * xlwmenu.c: Likewise. - - Remove P_ and __P macros. - * lwlib-Xaw.h: Remove P_ and __P macros. - * lwlib-Xlw.h: - * lwlib-Xm.h: - * lwlib-int.h: - * lwlib-utils.h: - * lwlib.h: Likewise. - -2010-05-15 Glenn Morris - - * Makefile.in (mostlyclean): Remove references to non-existent files. - -2010-05-13 Jan Djärv - - * lwlib-Xaw.c (make_dialog): Remove extra arg to XtVaGetSubresources. - -2010-05-08 Jan Djärv - - * xlwmenu.c (XlwMenuDestroy): Remove XtDestroyWidget on subwidgets - (Bug #6127). - -2010-05-07 Chong Yidong - - * Version 23.2 released. - -2010-05-06 Glenn Morris - - * Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables. - -2010-05-04 Glenn Morris - - * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): - Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of - @c_switch_system@, @c_switch_machine@. - -2010-04-27 Dan Nicolaescu - - * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf. - -2010-04-21 Jan Djärv - - * xlwmenu.c (expose_cb): - * lwlib-Xaw.c (fill_xft_data): Declarations before code. - -2010-04-17 Jan Djärv - - * xlwmenu.c: Include Shell.h, remove duplicate declaration of - XlwMenuRedisplay. - (display_menu_item): Replace ws->window with ws->pixmap, remove - call to XftDrawRect. - (display_menu): Remove this and that argument. - Remove just_compute_this_one_p. Fill pixmap at start and copy it to - window at end. - (expose_cb): New function. - (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup. - Add eventhandler for expose to expose_cb. Remove creation of xft_draw. - (create_pixmap_for_menu): New function. - (remap_menubar): Pop down menus that aren't the same as in old_stack. - Set width, height, x, y on widget with XtVaSetValues. - Call create_pixmap_for_menu. - Replace XUnmapWindow with XtPopdown. - Remowe two last parameters to display_menu. - (map_event_to_widget_value, XlwMenuRedisplay, Key, Select) - (pop_up_menu): Remowe two last parameters to display_menu. - (XlwMenuRealize): Call create_pixmap_for_menu, set w and pixmap. - Remove call to XftDrawCreate. - (XlwMenuDestroy): Free pixmap. Call XtDestroyWidget instead of - XDestroyWindow. - (handle_motion_event): Only call handle_single_motion_event once. - (set_window_type): New function. - (make_windows_if_needed, XlwMenuRealize): Call set_window_type. - - * xlwmenuP.h (window_state): Add pixmap and w. - -2010-04-16 YAMAMOTO Mitsuharu - - * xlwmenu.c (facename_changed): Put function in #ifdef HAVE_XFT. - -2010-04-11 Dan Nicolaescu - - * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE) - (C_SWITCH_X_SITE): Define using autoconf. - -2010-04-11 Jan Djärv - - * lwlib-Xaw.c (widget_xft_data): New for Xft data. - (fill_xft_data, openFont, get_text_width_and_height) - (draw_text, set_text, find_xft_data, command_press) - (command_reset): New functions. - (xaw_update_one_widget): Call set_text for dialog and buttons - if HAVE_XFT. Also set internalHeight for buttons. - (xaw_destroy_instance): Free all Xft related data. - (button_actions, buttonTrans): New structures. - (make_dialog): Call XtAppAddActions for button_actions. - Find xft font to use and call fill_xft_data for widgets. - (xaw_create_dialog): Pass instance parameter to make_dialog. - - * lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT. - Override translations for buttons. If depth is 16 or more, tell - Xaw3d to not be nice to colormap. - Remove separator widget, use XtNhorizDistance on first right button - instead. - -2010-04-08 Jan Djärv - - * xlwmenu.c (xlwmenu_default_font): Make static. - (xlwMenuResources): Add XtNfaceName and XtNdefaultFace. - (string_width): Use XftTextExtentsUtf8 if HAVE_XFT. - (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for - HAVE_XFT. - (size_menu): Set max_rest_width in window_state structure. - (display_menu_item): If HAVE_XFT and xft_draw is set, use - XftDrawRect and XftDrawStringUtf8 to draw text. - (make_windows_if_needed): Set max_rest_width and xft_draw - in windows[i]. - (openXftFont): New. - (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font - is not set, load font fixed and save it in xlwmenu_default_font. - (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. - (XlwMenuClassInitialize): Initialize xlwmenu_default_font. - (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and - windows[0].xft_draw if xft_font is set. - (XlwMenuDestroy): Destroy all xft_draw and close xft_font. - (facename_changed): New. - (XlwMenuSetValues): Call facename_changed. If face name did change, - close old fonts and destroy xft_draw:s. Then create new ones. - - * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, - XtCDefaultFace): New. - - * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw. - (_XlwMenu_part): Add faceName, xft_fg, xft_bg, xft_disabled_fg and - xft_font. - -2010-03-10 Chong Yidong - - * Branch for 23.2. - -2009-10-19 Dan Nicolaescu - - * xlwmenu.c: - * lwlib.c: - * lwlib-utils.c: - * lwlib-Xm.c: - * lwlib-Xlw.c: - * lwlib-Xaw.c: Include setjmp.h. - -2009-06-21 Chong Yidong - - * Branch for 23.1. - -2008-07-23 Dan Nicolaescu - - * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE. - -2008-06-26 Dan Nicolaescu - - * lwlib.c: Remove references to obsolete variables. - -2008-06-02 Jim Meyering - - Remove useless if-before-free tests. - * lwlib-Xm.c (xm_update_one_value): Likewise. - * lwlib.c (safe_free_str, free_widget_value_tree): Likewise. - -2008-04-18 Stefan Monnier - - * Makefile.in (TOOLKIT_DEFINES): Remove. - -2007-08-29 Károly Lőrentey - - * xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up - cursor shape. - -2007-07-25 Glenn Morris - - * Relicense all FSF files to GPLv3 or later. - - * COPYING: Switch to GPLv3. - -2007-06-13 Chong Yidong - - * lwlib-Xaw.c, lwlib.c: Link to xaw3d if available. - -2007-06-02 Chong Yidong - - * Version 22.1 released. - -2007-02-28 Glenn Morris - - * Makefile.in (distclean): Delete Makefile. - (maintainer-clean): Delete TAGS. - -2007-01-01 Jan Djärv - - * xlwmenu.c (xlwMenuResources): Add XtNleaveCallback, XtNenterCallback. - (display_menu, map_event_to_widget_value): Generate enter and - leave callbacks. - (pop_up_menu): Initialize mw->menu.inside_entry. - - * xlwmenu.h (XtNleaveCallback, XtNenterCallback): New strings. - - * xlwmenuP.h (_XlwMenu_part): Add enter/leave callbacks and - inside_entry. - - * lwlib-Xlw.c (enter_hook, leave_hook): New functions. - (xlw_create_menubar, xlw_create_popup_menu): Connect XtNenter/leave - to enter/leave_hook. - -2006-10-30 Chong Yidong - - * Makefile.in (lwlib-utils.o): Use CPPFLAGS. - -2006-09-15 Jay Belanger - - * COPYING: Replace "Library Public License" by "Lesser Public - License" throughout. - -2006-05-23 Jan Djärv - - * xlwmenu.c: Include xterm.h if emacs instead of declaring functions - used. - (string_width): Declare as static. - (Start, pop_up_menu): Set is_hint to 0 before calling - handle_motion_event. - (pop_up_menu): Return value and parameters for x_catch_errors and - x_uncatch_errors changed. - -2005-09-27 Dan Nicolaescu - - * xlwmenu.c (find_next_selectable, find_prev_selectable): - Add missing parameter declarations. - -2005-09-24 Dan Nicolaescu - - * xlwmenu.c: Fix the return type for x_clear_errors and - x_uncatch_errors. - -2005-07-19 Jan Djärv - - * lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for - labels in menu bar. - -2005-07-04 Lute Kamstra - - Update FSF's address in GPL notices. - -2005-04-01 Jan Djärv - - Reenable support for I18N to Lucid menus. - - * xlwmenuP.h (_XlwMenu_part): Add fontSet resource. - - * xlwmenu.c (string_width, MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto. - (display_menu_item, make_drawing_gcs, XlwMenuInitialize) - (XlwMenuSetValues): Use font if fontSet is NULL, use only - font for !HAVE_X_I18N. - (xlwMenuResources): Add fontSet resource. - -2005-03-22 Jan Djärv - - * xlwmenuP.h: Temporary #undef HAVE_X_I18N until FontSet for UTF-8 - on XFree86 is investigated. - - * xlwmenu.c: Ditto. - -2005-03-17 Stefan Monnier - - Add support for I18N to Lucid menus. - - * xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be - a fontset. Add a `font_extents' element. - - * xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the - `font' resource. - (string_width) [HAVE_X_I18N]: Use XmbTextExtents. - (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros. - (arrow_width, toggle_button_width, size_menu_item, draw_arrow) - (draw_toggle, draw_radio, display_menu_item): Use them. - (display_menu_item) [HAVE_X_I18N]: Use XmbDrawString. - (make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts. - (XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents. - (XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes. - - * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended - XmStringCreateLocalized function. Add missing copyright. - - * lwlib-Xm.h: Add missing copyright and license notice. - -2005-03-12 Stefan Monnier - - * xlwmenuP.h: - * xlwmenu.h: Add missing copyright and license notice. - -2004-12-27 Jan Djärv - - * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as an - action procedure for compatibility with Lesstif/Motif. - - * Makefile.in (mostlyclean): Don't remove *~ on clean. - -2004-12-26 Jan Djärv - - * lwlib-Xaw.c: Put Escape in dialogOverride so dialogs only - pops down on Escape, not any keypress. - -2004-11-01 Jan Djärv - - * xlwmenu.c (find_first_selectable, find_next_selectable) - (find_prev_selectable): Rename parameter skip_no_call_data to - skip_titles. Recognize titles as having no call_data and no contents. - (Down, Up): Comment update. - -2004-08-30 Jan Djärv - - * lwlib.h (_widget_value): Add lname and lkey. - -2004-01-12 Jan Djärv - - * xlwmenuP.h (_XlwMenu_part): Add top_depth. - - * xlwmenu.h: Removed declaration of pop_up_menu. - - * xlwmenu.c (Start): Get correct time if time in event is CurrentTime. - (find_first_selectable, find_next_selectable) - (find_prev_selectable): Add parameter skip_no_call_data to skip - over items with no call data (popup menu titles). - (Down, Up): Compare old_depth to top_depth instead of 2. - Pass True to find_*_selectable:s new parameter if this is a popup menu. - (Left, Right): Compare old_depth to top_depth instead of 2. - Pass 0 to find_*_selectable:s new parameter. - (pop_up_menu): Set top_depth to 1 for pop up menus and 2 for - menu bar menus, to enable keyboard traversal of popups. - - * lwlib-Xm.c (dialog_key_cb): New function. - (make_dialog): Add event handlers to dialog_key_cb for key press - so we can pop down on ESC. - - * lwlib-Xlw.c (xlw_popup_menu): Replace call to pop_up_menu with - XtCallActionProc ("start"). Use a full XEvent since "start" copies it. - - * lwlib-Xaw.c (make_dialog): Add override so dialog pops down on ESC. - (wm_delete_window): If widget isn't a shell, use the parent. - -2003-05-22 Dave Love - - * xlwmenu.c: Include lisp.h, not ../src/lisp.h. - (make_drawing_gcs): Remove unused `xswa', `mask'. - - * lwlib-Xlw.c: Include lisp.h, not ../src/lisp.h. - (lw_lucid_widget_p): Remove unused `mw'. - (xlw_update_one_widget, xlw_pop_instance) [PROTOTYPES]: - Provide ISO C arglists. - -2003-04-30 Lute Kamstra - - * Makefile.in: Make things function properly in case both LessTif - and Open Motif are installed. - -2003-01-26 Jan Djärv - - * lwlib-Xm.c (update_one_menu_entry): Deallocate widget_list. - (destroy_all_children): Call it self to destroy sub menu children. - -2002-12-22 Richard M. Stallman - - * xlwmenu.c (pop_new_stack_if_no_contents): Do nothing if - new_depth is 1. - (remap_menubar): Don't look in new_stack[0]. - (Left): At level 1, do the same thing Right does. - -2002-11-21 Dave Love - - * lwlib-Xaw.c [PROTOTYPES]: Provide ISO C arglists for functions - with Boolean args. - -2002-11-20 Dave Love - - * lwlib.c: Remove obsolete USE_OLIT code. - [PROTOTYPES]: Provide ISO C arglists for functions with Boolean args. - (lwlib_memset): Declare length arg as size_t. - (malloc_widget_value): Cast arg of lwlib_memset. - - * xlwmenu.c (separator_height): Prototype. - -2002-05-07 Miles Bader - - * xlwmenu.c (make_drawing_gcs): The scaling factor passed to - `x_alloc_lighter_color_for_widget' is a float, not an int, and - it's a multiplicative factor, so the name `delta' is inaccurate. - Always base disabled foreground on the normal foreground. - Don't use the temporary variable `temp'. - -2002-05-06 Pavel Janík - - * xlwmenu.c (xlwMenuResources): New resource. - (find_next_selectable): Return current item when the menu is not - popped up. - Rename `inactive_gc' to `disabled_gc'. - Use lighter/darker color for disabled menu items instead of using - stipple. Use stipple only when better color can not be - determined automatically. - - * xlwmenu.h (XtNdisabledForeground, XtCDisabledForeground): - New resource names. - - * xlwmenuP.h (_XlwMenu_part): Add new member `disabled_foreground'. - Rename `inactive_gc' to `disabled_gc'. - -2002-04-29 Pavel Janík - - * xlwmenu.c : - Change default values. - -2002-04-28 Jan Djärv - - * xlwmenu.c: Do not grab keyboard if installation-directory is - non-nil (not installed Emacs). To simplify debugging. - -2002-04-28 Pavel Janík - - * Makefile.in: Remove OpenLook file dependencies. - (xrdb-cpp.o): Remove target. - Remove unused defines. - - * xrdb.c, xrdb-cpp.c, Imakefile, dispatch.c, dispatch.h: - Remove unused file. - - * lwlib.c (instantiate_widget_instance): Remove duplicated prototype. - -2002-04-25 Pavel Janík - - * lwlib-Xol.c, lwlib-Xol.h, lwlib-Xolmb.c, lwlib-Xolmb.h - * lwlib-XolmbP.h: Remove file. - -2002-04-22 Jan Djärv - - * lwlib-Xm.c: Removed compiler warning. - - * xlwmenu.c: Add calls to GrabKeyboard to remove strange - interactions with window managers that steal keypresses. - Call ungrab_all instead of XtUngrabPointer. - (pop_up_menu): Add call to XtGrabKeyboard. - (ungrab_all): New function. - -2002-04-20 Pavel Janík - - * xlwmenu.c (find_next_selectable): New function. - (Down, Up, Right): Use it. - (find_next_selectable): Prevent endless loops when only one item - is enabled in the menu. - -2002-04-19 Pavel Janík - - These changes allow moving in menu via keyboard. - - * xlwmenu.c (xlwMenuTranslations, xlwMenuActionsList): - Add translations for cursor keys and RET. - (find_next_selectable, find_prev_selectable): New functions used - for finding menu-items. - (Down, Up, Left, Right): New functions. - -2002-04-19 Eli Zaretskii - - * Makefile.in (TAGS): Don't use -t, it's the default behavior for - etags, so it barfs if invoked with -t. - -2002-03-17 Richard M. Stallman - - * lwlib.c (P_): Definitions deleted. - -2002-03-16 Eli Zaretskii - - * lwlib.c (P_): Don't define if already defined. - -2002-01-27 Pavel Janík - - * lwlib-Xaw.c (xaw_update_scrollbar, xaw_scrollbar_scroll) - (xaw_scrollbar_jump): Put whole functions in #if 0. - -2002-01-09 Pavel Janík - - * lwlib-Xaw.c (xaw_create_dialog): Initialize icon_name to - suppress compiler warnings. - -2001-12-18 Pavel Janík - - * lwlib.c (separator_names): Add missing braces around initializers. - -2001-12-08 Pavel Janík - - * COPYING: New file. - -2001-12-01 Richard M. Stallman - - * lwlib.h (_widget_value): `help' has type Lisp_Object. - - * xlwmenu.c, lwlib-Xaw.c, lwlib-Xlw.c: Include ../src/lisp.h. - * lwlib-Xm.c, lwlib-Xol.c, lwlib-Xolmb.c: Include ../src/lisp.h. - * lwlib-utils.c: Include ../src/lisp.h. - - * lwlib.c: Include ../src/lisp.h. Don't declare xmalloc. - (free_widget_value_tree): Don't free `help' field. - (copy_widget_value_tree): Copy `help' simply, without safe_strdup. - (merge_widget_value): Compare and copy `help' simply. - -2001-11-28 Richard M. Stallman - - * Makefile.in (TAGS): Find the source files in $(srcdir). - -2001-10-20 Gerd Moellmann - - * (Version 21.1 released.) - -2001-10-09 Gerd Moellmann - - * lwlib-Xaw.c (xaw_create_scrollbar) [!0]: Return NULL. - From Hallvard B Furuseth . - -2001-10-05 Gerd Moellmann - - * Branch for 21.1. - -2001-04-30 Gerd Moellmann - - * xlwmenu.c (xlwmenu_window_p): New function. - -2001-03-23 Gerd Moellmann - - * lwlib-Xlw.c (x_print_complete_resource_name) [0]: New function. - -2001-03-22 Gerd Moellmann - - * lwlib-Xm.c (x_print_complete_resource_name) [0]: New function. - -2001-03-13 Gerd Moellmann - - * lwlib-Xm.c (make_menu_in_widget): Remove code forcing LessTif to - recompute centered text; it works fine without with current LessTif. - - * lwlib-Xm.c (make_menu_in_widget): Add an XmNpopdownCallback - instead of an XmNunmapCallback. - (xm_unmap_callback): Remove. - - * lwlib-Xm.c (make_menubar): Take out code in #if 0. - - * lwlib-Xm.c (xm_popup_menu): Don't set XmNmenuPost unless - necessary. From Rick Scott . - -2001-02-28 Gerd Moellmann - - * lwlib-Xm.c (xm_arm_callback): Don't compare widgets with `None', - use NULL instead. - - * lwlib-Xaw.c (xaw_update_one_widget): Use XtSetSensitive instead - of setting the value of XtNsensitive. - - * lwlib-Xm.c (xm_update_radiobox, update_one_menu_entry) - (xm_update_one_widget): Use XtSetSensitive instead of setting the - value of XmNsensitive. From Rick Scott . - -2000-12-14 Dave Love - - * xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from declaration. - -2000-12-11 Dave Love - - * xlwmenu.c (draw_separator) : - : Fix call of draw_separator. - -2000-12-07 Gerd Moellmann - - * lwlib-Xm.c (xm_arm_callback): Fix last change. - -2000-11-30 Gerd Moellmann - - * lwlib-Xm.c (xm_arm_callback): Handle case that W is null; - also see comment there. - -2000-11-21 Gerd Moellmann - - * xlwmenu.c (xlwmenu_redisplay): New function. - -2000-09-30 Stefan Monnier - - * lwlib.c (lw_separator_p): Init separator_p (bug with "-- some text"). - -2000-09-28 Sam Steingold - - * xlwmenu.c: Before including on SUN, define SUNOS41 - to avoid redefining struct timeval and struct timezone. - -2000-09-04 Miles Bader - - * xlwmenu.c (XlwMenuSetValues): Only frob the display if the menu - is actually displayed. - (remap_menubar): Only include the menu-margin in the initial X & Y - positions for horizontal menu-bars. - (fit_to_screen): If moving a sub-menu to the left-side, increment - its x-position by the shadow-thickness to make it look more - attached to the invoking menu-item (similarly to the way it would - be displayed on the right side). - -2000-09-03 Miles Bader - - * xlwmenu.c (x_alloc_lighter_color_for_widget): New extern declaration. - (make_shadow_gcs) [emacs]: Use x_alloc_lighter_color_for_widget to - do shadow calculation. - (make_shadow_gcs): Remove code that tests whether the top shadow - is dimmer than the bottom shadow--it shouldn't ever happen. - -2000-08-30 Miles Bader - - * xlwmenu.c (XlwMenuSetValues): If the background color has - changed, re-make the shadow-gcs too. - -2000-08-03 Gerd Moellmann - - * lwlib.c, lwlib-Xm.c, lwlib-Xaw.c: Use NULL at the end of the - variable argument lists of XtVaSetValues and XtVaGetValues - functions because 0 is not sufficient on systems where sizeof - (int) < sizeof (void *). - -2000-07-19 Gerd Moellmann - - * xlwmenu.c [emacs]: Don't include because that - leads to redefinition errors when static is defined as empty in - config.h. Refer to the gray bitmap in xfns.c, instead. - -2000-07-18 Dave Love - - * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy. - -2000-06-23 Dave Love - - * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu. - - * lwlib-utils.c: Include lwlib.h. - -2000-06-16 Gerd Moellmann - - * xlwmenuP.h (_XlwMenu_part): Add free_top_shadow_color_p and - free_bottom_shadow_color_p. - - * xlwmenu.c (make_shadow_gcs): Set free_top_shadow_color_p - and free_top_shadow_color_p flags in the menu widget if - top and bottom shadow colors must be freed. - (release_shadow_gcs): Free colors only if they must be freed. - -2000-06-12 Gerd Moellmann - - * xlwmenu.c (make_shadow_gcs): Free and copy colors so that - color reference counts are right. - (release_shadow_gcs): Free colors. - -2000-06-06 Dave Love - - * xlwmenu.c (x_alloc_nearest_color_for_widget, x_catch_errors) - (x_uncatch_errors, x_had_errors_p, x_clear_errors): Add prototypes - -- should be moved into separate header. - (make_shadow_gcs) : Cast first arg. - (Start) : Cast second arg. - - * lwlib.c (P_): Use PROTOTYPES. - (safe_strdup): Declare arg const. - (lw_modify_all_widgets) : Return 0. - - * lwlib-Xm.c (P_): Use PROTOTYPES. - - * xlwmenu.h, lwlib.h, lwlib-utils.h, lwlib-int.h, lwlib-Xm.h: - * lwlib-Xlw.h, lwlib-Xaw.h: Enable prototypes. - - * lwlib-Xaw.c (xaw_popup_menu): Add EVENT arg. - - * Makefile.in (lwlib.o): Depend on lwlib-Xlw.h. - (lwlib-Xlw.o): Depend on lwlib-Xlw.h. - (lwlib-Xaw.o): Depend on lwlib-Xaw.h. - (lwlib-Xm.o): Depend on lwlib-Xm.h. - -2000-03-12 Gerd Moellmann - - * lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set - XmNresizeHeight and XmNresizeWidth. - -2000-03-08 Dave Love - - * Makefile.in (liblw.a): Don't bother testing for ranlib failing - since configure sets it up. - -2000-03-06 Gerd Moellmann - - * lwlib-Xm.c (make_menubar): Set XmNresizeHeight and - XmNresizeWidth resources only if LESSTIF_VERSION is defined. - -2000-03-05 Gerd Moellmann - - * lwlib-Xm.c (xm_manage_resizing): Rewritten. - - * lwlib.c (lw_modify_all_widgets): Return non-zero if widget - tree was changed. - (merge_widget_value): Add parameter CHANGE_P. Set *CHANGE_P - to 1 if a change occurs. - - * lwlib.h (lw_modify_all_widgets): Change prototype. - -2000-03-04 Gerd Moellmann - - * xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead - of the screen's default colormap. - -2000-02-18 Gerd Moellmann - - * lwlib.c (merge_widget_value): Fix incorrect assignment of - safe_strdup'd help string. - -2000-01-25 Gerd Moellmann - - * lwlib-Xm.c (make_menu_in_widget): Don't add XmNpopdownCallback, - add XmNunmapCallback. - (xm_unmap_callback): New function. - (xm_pull_down_callback): Call pre-activate callback only if - parent is the menu bar. - -2000-01-17 Gerd Moellmann - - * lwlib-Xm.c (xm_arm_callback): New function. - (make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and - XmNdisarmCallback for buttons (not supported for other widgets). - (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False. - - * lwlib-Xlw.c (highlight_hook): New function. - (xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as - callback XtNhighlightCallback. - - * lwlib.c (copy_widget_value_tree): Copy help string. - (free_widget_value_tree): Free help string. - (merge_widget_value): Handle help string. - (allocate_widget_info, lw_register_widget, lw_create_widget): - Add parameter HIGHLIGHT_CB. - (lw_get_widget_instance): New function. - - * lwlib-int.h: Add prototype for lw_get_widget_instance. - - * lwlib.h (_widget_value): Add help string. - - * xlwmenu.c (xlwMenuResources): All XtNhighlightCallback. - (remap_menubar): Call highlight callback. - - * xlwmenu.h (XtNhighlightCallback): New define. - - * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list. - -1999-10-19 Paul Eggert - - Add support for large files, plus some locale improvements. - - * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, - * xrdb-cpp.c, xrdb.c: - Include before any system include files. - - * lwlib-Xm.c, lwlib.c: - Do not include or , as does this. - -1999-10-07 Gerd Moellmann - - * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): - Use widgets instead of gadgets to be able to set colors. - -1999-09-17 Richard Stallman - - * lwlib-Xaw.c (wm_delete_window): Check all the shell's children, - not just the first, to find the dialog box. - -1999-09-14 Gerd Moellmann - - * lwlib.c (lw_separator_p): Check for new-style separators differently. - -1999-09-10 Gerd Moellmann - - * lwlib.c (lw_separator_p): Add `--:space' with the same - meaning as `--:noLine'. - -1999-09-06 Gerd Moellmann - - * lwlib.c (lw_separator_p): Add alternative separator type names. - -1999-09-03 Gerd Moellmann - - * xlwmenu.c (make_shadow_gcs): Call x_alloc_nearest_color_for_widget. - -1999-07-12 Gerd Moellmann - - * lwlib-Xm.c: Add function prototypes. - - * lwlib-Xm.c (xm_update_label): Use val->name to look up - a label string from resources. - (xm_update_label): Add some comments. - -1999-07-12 Gerd Moellmann - - * xlwmenu.c (all_dashes_p): Removed. - (size_menu_item): Call lw_separator_p. - (display_menu_item): Ditto. - (display_menu): Ditto. - (draw_separator): New. - (display_menu_item): Call it. - (separator_height): New. - (size_menu_item): Call it. - - * lwlib-Xm.c (all_dashes_p): Removed. - (make_menu_in_widget): Use lw_separator_p. Set Motif separator type. - - * lwlib.c (lw_separator_p): New. - - * lwlib.h (enum menu_separator): New. - -1999-07-12 Gerd Moellmann - - * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu - title after all widgets have been created. - -1999-07-12 Gerd Moellmann - - * xlwmenu.c (toggle_button_width): Renamed from - toggle_or_radio_button_width. - (radio_button_width): New. - (size_menu_item): Use new functions. - (draw_shadow_rhombus): New. - (draw_radio): Use radio_button_width and draw_shadow_rhombus. - (draw_toggle): Use toggle_button_width. - -1999-07-12 Gerd Moellmann - - * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback - instead of xm_internal_update_other_instances. - - * lwlib-Xm.c (make_menu_in_widget): Do help button before managing - children to get it to the right place. - (make_menu_in_widget): Create toggle buttons. - (update_one_menu_entry): Update toggle buttons. - - * xlwmenu.c (size_menu_item): Add parameter button_width. - (size_menu): Compute button_width. - (toggle_or_radio_button_width): New. - (draw_toggle): New. - (draw_radio): New. - (draw_shadow_rectangle): Add parameter `down_p'. - - * xlwmenuP.h (_window_state): Add button_width. - -1999-07-12 Gerd Moellmann - - * xlwmenu.c (make_shadow_gcs) [emacs]: Use x_alloc_nearest_color. - - * lwlib.c (merge_widget_value): Handle button_type. - (copy_widget_value_tree): Copy button_type. - - * lwlib.h (enum button_type): New. - (_widget_value): New member button_type. - -1999-07-12 Gerd Moellmann - - * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets - using XmNrowColumnType. - -1999-07-12 Gerd Moellmann - - * xlwmenu.c (abort_gracefully): New. - (display_menu): Use it instead of abort. - (size_menu): Ditto. - -1999-07-12 Gerd Moellmann - - * xlwmenu.c (xlwMenuResources): Change previously unused - XtNmargin to 4. - (size_menu): Take margin into account. - (display_menu_item): Ditto. - (remap_menubar): Ditto. - (draw_arrow): Draw it 3D. - -1999-07-12 Richard Stallman - - * Version 20.4 released. - -1998-08-19 Richard Stallman - - * Version 20.3 released. - -1998-07-30 Paul Eggert - - * Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o) - (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o): - Add dependencies to corresponding .c files for Solaris 2.x VPATH make. - -1998-04-06 Andreas Schwab - - * lwlib.c: Always declare xmalloc. - [USE_XAW]: Include . - (lwlib_memset, lwlib_bcopy): Explicitly declare return type. - -1997-12-20 Richard Stallman - - * lwlib-Xm.c (update_one_menu_entry): - Add conditional in case XmNpositionIndex is missing. - -1997-09-19 Richard Stallman - - * Version 20.2 released. - - * xlwmenu.c (motion_event_is_in_menu): Extend the left and - top windows by the shadow width. - -1997-09-15 Richard Stallman - - * Version 20.1 released. - -1997-07-23 Richard Stallman - - * xlwmenu.c (display_menu): If an item is disabled, - don't display its submenu (if any). - -1997-05-01 Richard Stallman - - * xlwmenu.c (pop_up_menu): Update the call to x_catch_errors. - -1997-01-21 Richard Stallman - - * xlwmenu.c (fit_to_screen): If new menu would overlap the previous - one from the side, try moving it up or down. - -1996-08-11 Richard Stallman - - * Version 19.33 released. - - * lwlib-Xm.c (update_one_menu_entry): Fix previous change: - When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget, - just modify the existing one. - -1996-08-09 Marcus G. Daniels - - * lwlib.c (merge_widget_value): Undo previous change. - - * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown - in an existing but empty menu item, in order to get a new functional - pulldown, the menu item must be switched from an XmPushButtonGadget - into a XmCascadeButtonGadget. - -1996-07-31 Richard Stallman - - * Version 19.32 released. - -1996-07-31 Marcus G. Daniels - - * lwlib-Xm.c (make_menubar): Turn off menu accelerator. - -1996-07-24 Marcus G. Daniels - - * lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change - flag from merged_contents. - -1996-07-13 Karl Heuer - - * lwlib-Xm.c (xm_update_menu): Fix loop termination test. - -1996-07-07 Karl Heuer - - * lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change. - -1996-07-03 Marcus G. Daniels - - * lwlib-Xm.h: Declare lw_motif_menu_related_event_p. - - * lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to - identify keyboard events intended only for menus. - - * lwlib.h: Declare lw_toolkit_related_event_p. - - * lwlib.c (lw_toolkit_related_event_p): A predicate to identify - toolkit-specific events. - -1996-06-07 Marcus G. Daniels - - * lwlib-Xm.c (make_menu_in_widget): Set mapping delay - for cascade buttons to zero. - -1996-05-25 Karl Heuer - - * Version 19.31 released. - -1996-03-31 Richard Stallman - - * lwlib-Xm.c (destroy_all_children): When freeing a cascade button, - free its submenu too. - (make_menu_in_widget): Use a cascade button gadget, not a widget. - Include Xm/CascadeBG.h. - -1996-03-29 Richard Stallman - - * Makefile.in (tags): New target. - -1996-03-28 Richard Stallman - - * Makefile.in (TAGS): Renamed from `tags' and fixed to work. - -1996-03-26 Richard Stallman - - * Makefile.in (xlwmenu.o): New explicit target. - -1996-03-24 Richard Stallman - - * lwlib.h (struct widget_value): New field this_one_change. - * lwlib.c (merge_widget_value): Set the this_one_change field. - * lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy. - (make_menu_in_widget): New arg keep_first_children. - (xm_update_menu): Preserve the first children even if later ones - have a structural change. - (update_one_menu_entry): Use this_one_change field. - -1996-03-01 Richard Stallman - - * xlwmenu.c (motion_event_is_in_menu): Make x and y signed. - -1996-02-25 Richard Stallman - - * lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]: - With Motif, the window WIN can be the menu bar widget itself. - -1996-02-21 Richard Stallman - - * lwlib.c (free_widget_value_tree, merge_widget_value): - Use XtFree for the toolkit_data. - -1996-02-19 Karl Heuer - - * lwlib.c (lw_internal_update_other_instances): Move static var - outside the function, and rename it to lwlib_updating. - -1996-01-04 Paul Eggert - - * lwlib.c (instantiate_widget_instance): Renamed from - instanciate_widget_instance (spelling correction). - All callers changed. - -1995-12-31 Richard Stallman - - * xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing". - (xlwMenuTranslations): Add translations for Key, KeyUp, - and for the modifier keysyms. - (Nothing, Key): New functions. - -1995-12-24 Richard Stallman - - * xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents - get replaced by empty contents. - - * lwlib.c (merge_widget_value): Treat disappearance of entire contents - as a STRUCTURAL_CHANGE. - -1995-12-20 Richard Stallman - - * lwlib-utils.c: Add #undef for index and rindex. - -1995-11-24 Richard Stallman - - * Version 19.30 released. - -1995-11-13 Richard Stallman - - * xlwmenu.c (display_menu_item): Fix previous change. - -1995-11-04 Richard Stallman - - * xlwmenu.c (display_menu_item): Don't treat buttons specially. - -1995-08-14 Richard Stallman - - * Makefile.in (RANLIB): Get this var from configure. - -1995-08-02 Richard Stallman - - * lwlib.c (lw_popup_menu): New arg `event', passed along. - * lwlib-Xlw.c (xlw_popup_menu): New arg `event'. - * lwlib-Xm.c (xm_popup_menu): New arg `event'. - -1995-06-19 Richard Stallman - - * Version 19.29 released. - -1995-06-11 Richard Stallman - - * lwlib.c (lwlib_toolkit_type): New variable. - -1995-05-26 Richard Stallman - - * xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set. - -1995-05-22 Karl Heuer - - * xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args. - -1995-05-20 Karl Heuer - - * lwlib.c: Don't use prototype. - * lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise. - -1995-05-05 Richard Stallman - - * lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if. - -1995-05-04 Richard Stallman - - * Makefile.in (ALL_CFLAGS): Add -I../src. - -1995-05-03 Morten Welinder - - * lwlib.c [__osf__]: Include string.h and stdlib.h. - [__osf__] (xmalloc): Declared. - -1995-04-13 Richard Stallman - - * lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget): - Specify more useful names in XmCreatePulldownMenu calls. - - * lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned. - - * xlwmenu.c (size_menu): Make height and label_width unsigned. - (fit_to_screen): Make screen_width and screen_height unsigned. - (motion_event_is_in_menu): Make x, y unsigned. - -1995-04-09 Richard Stallman - - * lwlib-utils.c: If HAVE_CONFIG_H, include config.h. - - * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H. - Add -I${srcdir}/../src. - -1995-04-08 Paul Reilly - - * lwlib-Xm.c: Remove function prototypes. - (xm_pop_down_callback): Call the deactivation callback only when - popping down the top level submenu. - -1995-04-07 Richard Stallman - - * Makefile.in (lwlib.o): Depend on Makefile. - - * lwlib-Xm.h: Remove function prototypes. - - * lwlib-Xm.c (remove_grabs): Use type Widget for `menu'. - -1995-02-15 Paul Reilly - - * Makefile.in (ALL_CFLAGS): Allow include files to be found in - `srcdir'. - -1995-02-07 Richard Stallman - - * Makefile.in (maintainer-clean): Renamed from realclean. - -1994-11-28 Richard Stallman - - * lwlib-int.h (safe_strdup): Don't use ANSI argument prototype. - -1994-11-15 Paul Reilly - - * lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW. - -1994-11-08 Paul Reilly - - * lwlib-Xm.c (make_menu_in_widget): Differentiate a separator - entry ("--") from a title. - (xm_pop_down_callback): Filter all but the last pop down callbacks. - -1994-11-07 Paul Reilly - - * lwlib-Xm.c (update_one_menu_entry): Use the parent of the - cascade button as the parent of the pulldown, rather than the - cascade button itself. This works around a Motif SIGSEGV in the - function `InSharedMenuHierarchy'. - -1994-10-26 Richard Stallman - - * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. - -1994-10-26 Richard Stallman - - * xlwmenu.c (xlwmenu_default_font): New global variable. - (XlwMenuInitialize): Use xlwmenu_default_font to default - the font if necessary. Make mw, itself, an argument. - - * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. - -1994-10-08 Richard Stallman - - * xlwmenu.c (fit_to_screen): Don't put the menu off the left or top. - -1994-10-02 Paul Reilly - - * xlwmenu.c (display_menu_item): Add support for displaying the - title in pop up menus. - - * lwlib.c (lw_set_main_areas): Use xm_set_main_areas(). - (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif. - -1994-09-25 Paul Reilly - - * lwlib-Xaw.c (xaw_create_main): New function to support the - toolkit independent creation of the main Emacs widget. * - lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set - resizing resources to disable showGrip and to enable both - resizeToPreferred and allowShellResize. - - * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing. - - * lwlib-Xm.c (make_menu_in_widget): Add support for displaying a - title in pop up menus. - (make_main, xm_set_main_areas, xm_manage_resizing): New functions to - create and manage a Motif Main Window widget. - - * xlwmenu.c: Add #include for X11R4. - -1994-09-18 Frederic Pierresteguy - - * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons, - set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a - margin of 10 pixels. - -1994-09-16 Paul Reilly - - * lwlib-Xm.c (make_main): New function to support toolkit - independent creation of the main Emacs widget. - (make_destroyed_instance): Use safe_strdup() instead of strdup(). - - * lwlib-int.h: Declare safe_strdup. - - * lwlib.c (lw_refigure_widget): New function. Handle geometry - management inside lwlib instead of in Emacs. - (lw_window_is_in_menubar): New function. Determine if the pointer - is in a menubar. - (lw_set_main_areas): New function. Set the main window widgets for - Motif. - - * lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(), - lw_set_main_areas(). - - * xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and - Xt{Na,CA}llowResize. - - * xlwmenu.c (Start): Use pop_up_menu() to post the submenus. - (Select): Remove the pointer grab when popping down a menubar submenu. - (pop_up_menu): Handle popping up submenus from a menubar, i.e. when - the menu widget parent is not a shell widget. - -1994-08-25 Richard Stallman - - * xlwmenu.c (pop_up_menu): Clear next_release_must_exit. - (Start): Clear next_release_must_exit when popping up the menu. - -1994-08-24 Richard Stallman - - * xlwmenu.c (Start): Set menu_post_event or next_release_must_exit. - (Select): Do nothing if the menu should be left posted. - -1994-07-28 Richard Stallman - - * xlwmenu.c (make_windows_if_needed, pop_up_menu): - Enable mouse motion events even when no button down. - -1994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (pointer_grabbed): New variable. - (pop_up_menu): Set the variable. - (XlwMenuDestroy): Maybe call XtUngrabPointer. - -1994-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib.c (max): Function deleted. Define as macro instead, - but only if not already defined. - -1994-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness. - -1994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget. - -1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib.c (lwlib_memset: New function, used instead of memset. - All callers changed. - * lwlib.c (lwlib_bcopy): New function. - * lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy. - - * lwlib.c: Delete definitions for use of alloca. - (name_to_widget): Use xmalloc, not alloca. - -1994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed. - (XlwMenuRedisplay): If it's set, truncate the old_depth to 1. - -1994-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h. - * lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h. - * lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy. - * lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h. - * xlwmenu.c: Don't include string.h, unistd.h, stdlib.h. - * lwlib.c: Don't include string.h, unistd.h, stdlib.h. - (safe_strdup): No longer static. - * lwlib-Xm.c: Use safe_strdup, not strdup. - - * xlwmenu.c (string_width): No longer static. - -1994-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor - for foreground and cursor_shape fields. - - * xlwmenu.c (XlwMenuSetValues): Check for change of font. - -1994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in: Delete all SRCS variables (unused). - (lwlib.o, xrdb-cpp.o): Mention srcdir in dep. - -1994-04-15 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4. - - * xrdb.c: Define HAVE_X11R5 as in xterm.h. - Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. - (_XtDisplayInitialize): Test HAVE_X11R5. - - * dispatch.c: Define HAVE_X11R5 as in xterm.h. - Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. - (_XtConvertTypeToMask): Conditionalize on HAVE_X11R5. - (WouldDispatchEvent): Likewise. - -1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib-Xaw.c (xaw_generic_callback): Declare without arg names. - -1994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu) - - * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the - user. - -1994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize - itself. Therefore reset the size to its initial value. - -1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues. - Don't test for scrollbar widget. - -1994-03-14 Frederic Pierresteguy (fp@gnu.ai.mit.edu) - - * lwlib-int.h: Declare lw_get_widget_info. - - * lwlib.c (lw_get_widget_info): Comment out arg in function decl. - - * lwlib-Xaw.h: Comment out args in function decls. - * lwlib-Xaw.c: Convert all function definitions to non-prototype K&R. - (xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues, - not XtVaSetValues. - -1994-03-11 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - - * xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to - right justify the arrow in the pane. - - * lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then - define USE_XAW. - - * Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc]. - - * lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release. - * lwlib.c (_AIX): Replace the AIXV3 directive. - (USE_XAW): New macro to conditionalize the use of the athena toolkit. - (lw_get_widget_info): New function. - (set_one_value): Handle USE_XAW. - (instanciate_widget_instance): Likewise. - (destroy_one_instance): Likewise. - (lw_pop_all_widgets): Likewise. - (lw_pop_down_all_widgets): Likewise. - (get_one_value): Likewise. - - * lwlib-Xaw.c, lwlib-Xaw.h: New files. - -1994-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes. - - * lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu): - Use XtCreate..., not XtVaCreate... - No need to copy instance->info->val any more. - (xlw_update_one_widget): Use XtSetValues, not XtVaSetValues. - -1994-02-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails. - -1994-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags. - - * lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value. - Use malloc for allocation. - (xlw_create_popup_menu): Likewise. - -1994-02-18 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * lwlib.c (malloc_cpt): New static variable. - (malloc_widget_value): Increment malloc_cpt when allocating a cell. - (free_widget_value): Really free the cells when the number of - allocated ones is bigger than 25. - - * lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and - free_widget_value instead of XtMalloc and XtFree. - (xlw_create_popup_menu): Likewise. - -1994-02-17 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in (ALL_CFLAGS): Specify -Demacs. - - * xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors - in XtGrabPointer. - -1994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to - XtVaCreateManagedWidget, not instance->info->val. - (xlw_create_menubar): Likewise. - -1994-02-15 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val - before calling XtVaCreateManagedWidget and then free the copy. - (xlw_create_menubar): Likewise. - -1994-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents. - (XlwMenuDestroy): Free mw->menu.contents. - -1994-02-09 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make - visible/invisible the selection of the menubar items. - -1994-02-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - - * lwlib.c (strcasecmp): Renamed to my_strcasecmp. - (find_in_table): Changed only caller. - -1994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - - * xlwmenu.c (display_menu_item): When dealing with the menubar, - always call XDrawRectangle to clear the selection after popping down - the pulldown menu. - -1994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib.c: Include ctype.h. - -1994-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib.c (strcasecmp): New function. - -1994-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c: - Convert all function definitions to non-prototype K&R. - - * lwlib-Xlw.h: Comment out args in function decls. - * lwlib.h: Comment out args in function decls. - * lwlib-utils.h: Comment out args in function decls. - -1994-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * lwlib.c: Include StringDefs.h after lwlib.h. - -1994-01-22 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - - * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name - instead of $*. - (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were - superfluous and didn't work when configured outside srcdir. - The implicit .c.o rule works fine. - -1994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * xlwmenu.c (resource_widget_value): Avoid using strdup. - -1994-01-18 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in: New file. - - * lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c. - * lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h. - * lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h. - - * lwlib-int.h: Renamed from lwlib-internal.h. - - - -;; Local Variables: -;; coding: utf-8 -;; End: - - Copyright (C) 1995-1999, 2001-2015 Free Software Foundation, Inc. - - This file is part of GNU Emacs. - - GNU Emacs is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - GNU Emacs is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNU Emacs. If not, see . diff --git a/lwlib/ChangeLog.1 b/lwlib/ChangeLog.1 new file mode 100644 index 0000000000..e5dfed2342 --- /dev/null +++ b/lwlib/ChangeLog.1 @@ -0,0 +1,1982 @@ +2015-03-18 Stefan Monnier + + * xlwmenu.c (pop_up_menu): Remove debugging code. + +2015-02-28 Jan Djärv + + * xlwmenu.c (remap_menubar): Re-realize menu to force move under + Gnome 3. + +2015-01-04 Paul Eggert + + Less 'make' chatter for lwlib + * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1) + (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros. + (liblw.a): Use them. + +2014-12-25 Paul Eggert + + * xlwmenu.c (resource_widget_value): + Rewrite to avoid the need for strcat, typically by using stpcpy + and/or lispstpcpy. strcat tends to be part of O(N**2) algorithms. + +2014-10-20 Glenn Morris + + * Merge in all changes up to 24.4 release. + +2014-09-01 Paul Eggert + + --enable-silent-rules now suppresses more chatter. + * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_) + (am__v_CC_0, am__v_CC_1): New macros, taken from Automake. + (.c.o): Use them. + +2014-07-15 Dmitry Antipov + + * lwlib.h (toplevel): Use unsigned int for LWLIB_ID. + +2014-06-28 Glenn Morris + + * Makefile.in: Use gcc auto-dependency information. + Move old dependency information to new file deps.mk. + (MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag): + New, set by configure. + (DEPDIR): New variable. + (ALL_CFLAGS): Add DEPFLAGS. + (.c.o): Add MKDEPDIR. + (clean, mostlyclean): Delete DEPDIR. + * deps.mk, autodeps.mk: New files. + +2014-06-17 Paul Eggert + + Omit redundant extern decls. + From Dmitry Antipov. + * lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value) + (xm_create_dialog, xm_destroy_instance, xm_popup_menu) + (xm_set_keyboard_focus, xm_set_main_areas): Remove decls. + +2014-06-15 Glenn Morris + + * Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'. + + * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): + Declare as PHONY. + (bootstrap-clean): New. + +2014-06-13 Glenn Morris + + * Makefile.in ($(globals_h)): + GNU make automatically passes command-line arguments to sub-makes. + +2014-06-04 Dmitry Antipov + + * lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit + fields conditionally. + +2014-06-03 Paul Eggert + + Do not require libXt-devel when building with gtk. + * lwlib-widget.h: New file, with contents taken from lwlib.h. + (widget_value) [HAVE_NTGUI]: New member 'title'. + * lwlib.h: Include lwlib-widget.h. + (change_type, enum button_type, widget_value): + Move to lwlib-widget.h. + +2014-06-03 Dmitry Antipov + + * xlwmenu.c (openXftFont): Do not load regular X font here. + (XlwMenuInitialize): Remove ancient #if 0 code. + (XlwMenuDestroy): Likewise. Free regular X font here. + +2014-06-02 Dmitry Antipov + + Use common memory management functions for widgets. + * lwlib.h (widget_value): Do not maintain a free list any more. + (malloc_widget_value, free_widget_value): Remove prototypes. + * lwlib.c (malloc_widget_value, free_widget_value): + (widget_value_free_list, malloc_cpt): Remove. + (free_widget_value_tree, copy_widget_value_tree): Adjust users. + +2014-05-30 Dmitry Antipov + + Use common string allocation and freeing functions where applicable. + * lwlib.h (safe_strdup): Remove prototype. + * lwlib.c (safe_strdup, safe_free_str): Remove. + (copy_widget_value_tree, allocate_widget_info, free_widget_info): + (merge_widget_value): Prefer xstrdup, xfree and dupstring. + * lwlib-Xm.c (make_destroyed_instance, xm_update_one_value): Ditto. + +2013-12-14 Paul Eggert + + Use bool for boolean, focusing on headers. + * xlwmenuP.h (XlwMenu_part): Use bool_bf for boolean bit-fields. + +2013-11-14 Paul Eggert + + * lwlib.c (safe_strdup): Prefer tail calls. + +2013-11-02 Glenn Morris + + Use relative filenames in TAGS files. + * Makefile.in (abs_srcdir): Remove it again. + (ctagsfiles, TAGS): Use relative filenames. + + * Makefile.in (abs_srcdir): New, set by configure. + (ETAGS, ctagsfiles): New variables. + (TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again. + +2013-10-24 Glenn Morris + + * Makefile.in (abs_top_srcdir): New, set by configure. + +2013-09-04 Paul Eggert + + Makefile improvements. + * Makefile.in (all): Put this first. Don't use double-colon + rules, as they are not portable according to POSIX. Mark as phony. + +2013-06-30 Paul Eggert + + Fix minor problems found by static checking. + * lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): + * lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): + * lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: + Now const. + +2012-10-06 Ulrich Müller + + * Makefile.in (AR, ARFLAGS): Get values from configure. + +2012-08-16 Paul Eggert + + Use ASCII tests for character types. + * lwlib-Xaw.c, lwlib.c, xlwmenu.c: + Don't include ; no longer needed. + * lwlib-Xaw.c (openFont): + * xlwmenu.c (openXftFont): Test just for ASCII digits. + +2012-08-01 Glenn Morris + + * Makefile.in (config_h): Add conf_post.h. + +2012-07-31 Dmitry Antipov + + Avoid unused variable warning if --with-x-toolkit=motif. + * lwlib-Xm.c (make_menu_in_widget): Remove unused variable. + +2012-07-06 Paul Eggert + + Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). + * lwlib.c: Include c-strcase.h. + (lwlib_strcasecmp): Remove. All uses replaced with c_strcasecmp. + +2012-06-26 Paul Eggert + + Clean out last vestiges of the old HAVE_CONFIG_H stuff. + * Makefile.in (ALL_CFLAGS): Remove -DHAVE_CONFIG_H. + * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c: + * xlwmenu.c: Include unconditionally. + +2012-06-25 Dmitry Antipov + + * lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which + may be defined to library function strcasecmp if available. + +2012-06-24 Paul Eggert + + Switch from NO_RETURN to C11's _Noreturn (Bug#11750). + * xlwmenu.c (abort_gracefully): + Use _Noreturn rather than NO_RETURN. + No need for separate decl merely because of _Noreturn. + +2012-05-31 Paul Eggert + + Remove obsolete '#define static' cruft. + * xlwmenu.c [emacs]: Include "bitmaps/gray.xbm". + (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]: + Remove; all uses replaced with definiens. + +2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * Makefile.in (C_WARNINGS_SWITCH): Remove. + (WARN_CFLAGS, WERROR_CFLAGS): New macros. + (ALL_CFLAGS): Use new macros rather than old. + +2012-04-11 Glenn Morris + + * Makefile.in (C_SWITCH_X_SYSTEM): Remove. + (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM. + +2011-10-13 Dmitry Antipov + + * lwlib-Xaw.c (openFont, xaw_destroy_instance): Replace free with + xfree to avoid crash when xmalloc overrun checking is enabled. + * lwlib-Xm.c (free_destroyed_instance, xm_update_one_value): Ditto. + * lwlib-utils.c (XtApplyToWidgets): Ditto. + * lwlib.c (safe_free_str, free_widget_value, free_widget_value_tree) + (free_widget_info, free_widget_instance, name_to_widget): Ditto. + * xlwmenu.c (openXftFont): Ditto. + +2011-06-27 YAMAMOTO Mitsuharu + + * Makefile.in (ALL_CFLAGS): Add -I../lib for generated header files + in out-of-tree build. + +2011-06-06 Paul Eggert + + * Makefile.in (ALL_CFLAGS): Add -I$(srcdir)/../lib. + This is needed because lisp.h includes intprops.h now (Bug#8794). + +2011-04-16 Paul Eggert + + Static checks with GCC 4.6.0 and non-default toolkits. + + * lwlib-Xm.c (make_dialog): Rename local to avoid shadowing. + (make_menu_in_widget): Add cast to avoid warning. + * lwlib-utils.c (XtCompositeChildren): Likewise. + + * lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;". + (first_child) [USE_MOTIF]: Protoize. + + * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. + + * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. + (MINL): Define only if not emacs. + +2011-03-07 Chong Yidong + + * Version 23.3 released. + +2011-02-14 Jan Djärv + + * xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace. + + * xlwmenuP.h (_XlwMenu_part): Remove faceName. Add fontName. + + * xlwmenu.c (xlwmenu_default_font): Remove, does not work for + multi-display. + (xlwMenuResources): Remove XtNfaceName and XtNdefaultFace. + Make XtNFont a String resource. + (make_windows_if_needed): Call XFlush so later changes are seen by the + X server. + (remap_menubar): Use XtMoveWidget and then + XtResizeWidget/XtResizeWindow after XtPopup. Works better with + Compiz. + (make_drawing_gcs): Check if mw->menu.font is set. + (getDefaultXftFont): New function. + (openXftFont): faceName is now fontName. Try XLoadQueryFont first + and then XftFontOpenName. + (XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont. + (XlwMenuClassInitialize): Remove initialization of + xlwmenu_default_font. + (fontname_changed): Renamed from facename_changed. + (XlwMenuSetValues): Use facename_changed. + + * lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts. Try + XLoadQueryFont first and then Xft fonts. + +2011-02-13 Glenn Morris + + * lwlib-utils.c (index, rindex): Don't undef (neither used in lwlib/, + nor set in config.h). + +2011-02-11 Glenn Morris + + * Makefile.in (USE_X_TOOLKIT, RM, TOOLKIT_DEFINES): Remove. + (ALL_CFLAGS): Remove -I. + (config_h, lisp_h, src_h): New variables. + (globals_h): Rename from $globals. + ($(globals_h)): Check cd exit status. + (lwlib.o): Remove special rule. + (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o) + (xlwmenu.o): Add lisp.h and config.h to prereqs. + (lwlib-utils.o): Add lwlib.h to prereqs. + (lwlib.o): Add lwlib-utils.h and lwlib-Xm.h to prereqs. + (lwlib-Xlw.o): Add xlwmenu.h to prereqs. + (xlwmenu.o): Add ../src/xterm.h to prereqs. + (mostlyclean): Forget about "core" files. + +2011-02-10 Glenn Morris + + * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c: + * xlwmenu.c: Standardize on <> for includes from the ../src directory. + +2011-02-09 Glenn Morris + + * Makefile.in (@SET_MAKE@): New, set by configure. + (globals): New variable and rule. + (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o) + (xlwmenu.o): Add dependency on src/globals.h. + +2011-01-31 Jan Djärv + + * lwlib-Xm.c (make_destroyed_instance): + * lwlib-utils.c (XtApplyToWidgets): + * lwlib.c (safe_strdup, malloc_widget_value) + (allocate_widget_info, allocate_widget_instance): Use xmalloc + instead of malloc. + +2011-01-25 Werner Meisner + + * lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference + (Bug#7690). + +2010-09-26 Dan Nicolaescu + + Use const for some pointer arguments. + * lwlib.h (my_strcasecmp, safe_strcmp, name_to_widget) + (find_in_table, dialog_spec_p, lw_separator_p): + * lwlib.c (my_strcasecmp, safe_strcmp, name_to_widget) + (find_in_table, dialog_spec_p, lw_separator_p): Use const. + +2010-09-20 Dan Nicolaescu + + * lwlib.h (lw_register_widget, lw_create_widget): + * lwlib.c (allocate_widget_info, lw_register_widget) + (lw_create_widget, separator_table): Use const. + +2010-07-29 Dan Nicolaescu + + * xlwmenu.c (abort_gracefully): Mark as NO_RETURN. + +2010-07-26 Dan Nicolaescu + + * xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations. + +2010-07-12 Andreas Schwab + + * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from + substitution. + (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}. + +2010-07-08 Jan Djärv + + * xlwmenu.c (size_menu_item): Change from K&R to prototype. + Change label_width and height to int. + (draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus) + (draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu) + (map_event_to_widget_value): Reformat. + (display_menu_item): Change from K&R to prototype. + + * lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R + to prototype. + (lw_internal_update_other_instances, merge_widget_value): Reformat. + + * lwlib-int.h (widget_creation_function): Fix prototype. + + * lwlib-Xm.c (x_print_complete_resource_name) + (make_destroyed_instance, free_destroyed_instance, first_child) + (lw_motif_widget_p, resource_motif_string, destroy_all_children) + (xm_arm_callback, xm_update_label, xm_update_list) + (xm_update_pushbutton, xm_update_cascadebutton) + (xm_update_toggle, xm_update_radiobox, make_menu_in_widget) + (update_one_menu_entry, xm_update_menu, xm_update_text) + (xm_update_text_field, xm_update_one_widget) + (xm_update_one_value, activate_button, dialog_key_cb) + (make_dialog, mark_dead_instance_destroyed) + (find_matching_instance, recenter_widget, recycle_instance) + (xm_create_dialog, make_menubar, remove_grabs, make_popup_menu) + (make_main, xm_destroy_instance, xm_popup_menu) + (set_min_dialog_size, xm_pop_instance, do_call) + (xm_internal_update_other_instances, xm_generic_callback) + (xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback) + (xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change + from K&R to prototype. + + * lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to + prototype. + (xlw_update_one_value): Reformat. + + * lwlib-Xaw.c (xaw_generic_callback, command_reset) + (xaw_update_one_value): Reformat. + (xaw_update_one_widget): Reformat and remove dead code. + (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar) + (xaw_update_scrollbar): Remove (not used). + (make_dialog): Change from K&R to prototype. Remove dead code. + (xaw_creation_table): Remove scrollbar entry. + +2010-07-08 Dan Nicolaescu + + * lwlib.c (allocate_widget_instance, get_widget_info) + (get_widget_instance, find_instance, set_one_value) + (update_one_widget_instance, update_all_widget_values) + (lw_modify_all_widgets, lw_get_widget, lw_make_widget) + (lw_create_widget, lw_pop_all_widgets, lw_show_busy) + (lw_refigure_widget, lw_allow_resizing): Remove alternative K&R + declarations. + * lwlib-Xlw.c (xlw_update_one_widget, xlw_pop_instance): Likewise. + * lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance): + Likewise. + * lwlib-Xm.c (P_): Remove. + +2010-07-07 Andreas Schwab + + * lwlib.c (lwlib_memset, lwlib_bcopy): Remove. + (malloc_widget_value, free_widget_info, allocate_widget_instance) + (lw_separator_p): Replace lwlib_memset, lwlib_bcopy, bzero, bcmp by + memset, memcpy, memcmp. + * lwlib-utils.c (XtApplyToWidgets): Likewise. + * xlwmenu.c (XlwMenuInitialize): Likewise. + * lwlib.h (lwlib_bcopy): Remove declaration. + +2010-07-05 Jan Djärv + + * xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype. + (display_menu_item): Remove unused variable gi. + (make_windows_if_needed): Remove unused variable screen. + (XlwMenuRedisplay): Remove unused variable i. + + * lwlib-Xaw.c: Include for isdigit. + (fill_xft_data, set_text): Remove unused variable screen. + (draw_text): Cast bp to FcChar8*. + (find_xft_data): Return 0 if inst or xft_data is not set. + (wm_delete_window): Correct prototype. Initialize widget to 0 + and return if widget is still 0 after loop. + +2010-07-04 Dan Nicolaescu + + * lwlib-Xaw.c: Convert function definitions to standard C. + * lwlib-Xlw.c: + * lwlib-utils.c: + * lwlib.c: + * lwlib.h: + * xlwmenu.c: Likewise. + +2010-07-02 Jan Djärv + + * lwlib-Xm.c: Remove __P and P_ from .c and .m files. + * lwlib-Xm.c: + * lwlib.c: + * xlwmenu.c: Likewise. + + Remove P_ and __P macros. + * lwlib-Xaw.h: Remove P_ and __P macros. + * lwlib-Xlw.h: + * lwlib-Xm.h: + * lwlib-int.h: + * lwlib-utils.h: + * lwlib.h: Likewise. + +2010-05-15 Glenn Morris + + * Makefile.in (mostlyclean): Remove references to non-existent files. + +2010-05-13 Jan Djärv + + * lwlib-Xaw.c (make_dialog): Remove extra arg to XtVaGetSubresources. + +2010-05-08 Jan Djärv + + * xlwmenu.c (XlwMenuDestroy): Remove XtDestroyWidget on subwidgets + (Bug #6127). + +2010-05-07 Chong Yidong + + * Version 23.2 released. + +2010-05-06 Glenn Morris + + * Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables. + +2010-05-04 Glenn Morris + + * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): + Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of + @c_switch_system@, @c_switch_machine@. + +2010-04-27 Dan Nicolaescu + + * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf. + +2010-04-21 Jan Djärv + + * xlwmenu.c (expose_cb): + * lwlib-Xaw.c (fill_xft_data): Declarations before code. + +2010-04-17 Jan Djärv + + * xlwmenu.c: Include Shell.h, remove duplicate declaration of + XlwMenuRedisplay. + (display_menu_item): Replace ws->window with ws->pixmap, remove + call to XftDrawRect. + (display_menu): Remove this and that argument. + Remove just_compute_this_one_p. Fill pixmap at start and copy it to + window at end. + (expose_cb): New function. + (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup. + Add eventhandler for expose to expose_cb. Remove creation of xft_draw. + (create_pixmap_for_menu): New function. + (remap_menubar): Pop down menus that aren't the same as in old_stack. + Set width, height, x, y on widget with XtVaSetValues. + Call create_pixmap_for_menu. + Replace XUnmapWindow with XtPopdown. + Remowe two last parameters to display_menu. + (map_event_to_widget_value, XlwMenuRedisplay, Key, Select) + (pop_up_menu): Remowe two last parameters to display_menu. + (XlwMenuRealize): Call create_pixmap_for_menu, set w and pixmap. + Remove call to XftDrawCreate. + (XlwMenuDestroy): Free pixmap. Call XtDestroyWidget instead of + XDestroyWindow. + (handle_motion_event): Only call handle_single_motion_event once. + (set_window_type): New function. + (make_windows_if_needed, XlwMenuRealize): Call set_window_type. + + * xlwmenuP.h (window_state): Add pixmap and w. + +2010-04-16 YAMAMOTO Mitsuharu + + * xlwmenu.c (facename_changed): Put function in #ifdef HAVE_XFT. + +2010-04-11 Dan Nicolaescu + + * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE) + (C_SWITCH_X_SITE): Define using autoconf. + +2010-04-11 Jan Djärv + + * lwlib-Xaw.c (widget_xft_data): New for Xft data. + (fill_xft_data, openFont, get_text_width_and_height) + (draw_text, set_text, find_xft_data, command_press) + (command_reset): New functions. + (xaw_update_one_widget): Call set_text for dialog and buttons + if HAVE_XFT. Also set internalHeight for buttons. + (xaw_destroy_instance): Free all Xft related data. + (button_actions, buttonTrans): New structures. + (make_dialog): Call XtAppAddActions for button_actions. + Find xft font to use and call fill_xft_data for widgets. + (xaw_create_dialog): Pass instance parameter to make_dialog. + + * lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT. + Override translations for buttons. If depth is 16 or more, tell + Xaw3d to not be nice to colormap. + Remove separator widget, use XtNhorizDistance on first right button + instead. + +2010-04-08 Jan Djärv + + * xlwmenu.c (xlwmenu_default_font): Make static. + (xlwMenuResources): Add XtNfaceName and XtNdefaultFace. + (string_width): Use XftTextExtentsUtf8 if HAVE_XFT. + (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for + HAVE_XFT. + (size_menu): Set max_rest_width in window_state structure. + (display_menu_item): If HAVE_XFT and xft_draw is set, use + XftDrawRect and XftDrawStringUtf8 to draw text. + (make_windows_if_needed): Set max_rest_width and xft_draw + in windows[i]. + (openXftFont): New. + (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font + is not set, load font fixed and save it in xlwmenu_default_font. + (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. + (XlwMenuClassInitialize): Initialize xlwmenu_default_font. + (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and + windows[0].xft_draw if xft_font is set. + (XlwMenuDestroy): Destroy all xft_draw and close xft_font. + (facename_changed): New. + (XlwMenuSetValues): Call facename_changed. If face name did change, + close old fonts and destroy xft_draw:s. Then create new ones. + + * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, + XtCDefaultFace): New. + + * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw. + (_XlwMenu_part): Add faceName, xft_fg, xft_bg, xft_disabled_fg and + xft_font. + +2010-03-10 Chong Yidong + + * Branch for 23.2. + +2009-10-19 Dan Nicolaescu + + * xlwmenu.c: + * lwlib.c: + * lwlib-utils.c: + * lwlib-Xm.c: + * lwlib-Xlw.c: + * lwlib-Xaw.c: Include setjmp.h. + +2009-06-21 Chong Yidong + + * Branch for 23.1. + +2008-07-23 Dan Nicolaescu + + * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE. + +2008-06-26 Dan Nicolaescu + + * lwlib.c: Remove references to obsolete variables. + +2008-06-02 Jim Meyering + + Remove useless if-before-free tests. + * lwlib-Xm.c (xm_update_one_value): Likewise. + * lwlib.c (safe_free_str, free_widget_value_tree): Likewise. + +2008-04-18 Stefan Monnier + + * Makefile.in (TOOLKIT_DEFINES): Remove. + +2007-08-29 Károly Lőrentey + + * xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up + cursor shape. + +2007-07-25 Glenn Morris + + * Relicense all FSF files to GPLv3 or later. + + * COPYING: Switch to GPLv3. + +2007-06-13 Chong Yidong + + * lwlib-Xaw.c, lwlib.c: Link to xaw3d if available. + +2007-06-02 Chong Yidong + + * Version 22.1 released. + +2007-02-28 Glenn Morris + + * Makefile.in (distclean): Delete Makefile. + (maintainer-clean): Delete TAGS. + +2007-01-01 Jan Djärv + + * xlwmenu.c (xlwMenuResources): Add XtNleaveCallback, XtNenterCallback. + (display_menu, map_event_to_widget_value): Generate enter and + leave callbacks. + (pop_up_menu): Initialize mw->menu.inside_entry. + + * xlwmenu.h (XtNleaveCallback, XtNenterCallback): New strings. + + * xlwmenuP.h (_XlwMenu_part): Add enter/leave callbacks and + inside_entry. + + * lwlib-Xlw.c (enter_hook, leave_hook): New functions. + (xlw_create_menubar, xlw_create_popup_menu): Connect XtNenter/leave + to enter/leave_hook. + +2006-10-30 Chong Yidong + + * Makefile.in (lwlib-utils.o): Use CPPFLAGS. + +2006-09-15 Jay Belanger + + * COPYING: Replace "Library Public License" by "Lesser Public + License" throughout. + +2006-05-23 Jan Djärv + + * xlwmenu.c: Include xterm.h if emacs instead of declaring functions + used. + (string_width): Declare as static. + (Start, pop_up_menu): Set is_hint to 0 before calling + handle_motion_event. + (pop_up_menu): Return value and parameters for x_catch_errors and + x_uncatch_errors changed. + +2005-09-27 Dan Nicolaescu + + * xlwmenu.c (find_next_selectable, find_prev_selectable): + Add missing parameter declarations. + +2005-09-24 Dan Nicolaescu + + * xlwmenu.c: Fix the return type for x_clear_errors and + x_uncatch_errors. + +2005-07-19 Jan Djärv + + * lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for + labels in menu bar. + +2005-07-04 Lute Kamstra + + Update FSF's address in GPL notices. + +2005-04-01 Jan Djärv + + Reenable support for I18N to Lucid menus. + + * xlwmenuP.h (_XlwMenu_part): Add fontSet resource. + + * xlwmenu.c (string_width, MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto. + (display_menu_item, make_drawing_gcs, XlwMenuInitialize) + (XlwMenuSetValues): Use font if fontSet is NULL, use only + font for !HAVE_X_I18N. + (xlwMenuResources): Add fontSet resource. + +2005-03-22 Jan Djärv + + * xlwmenuP.h: Temporary #undef HAVE_X_I18N until FontSet for UTF-8 + on XFree86 is investigated. + + * xlwmenu.c: Ditto. + +2005-03-17 Stefan Monnier + + Add support for I18N to Lucid menus. + + * xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be + a fontset. Add a `font_extents' element. + + * xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the + `font' resource. + (string_width) [HAVE_X_I18N]: Use XmbTextExtents. + (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros. + (arrow_width, toggle_button_width, size_menu_item, draw_arrow) + (draw_toggle, draw_radio, display_menu_item): Use them. + (display_menu_item) [HAVE_X_I18N]: Use XmbDrawString. + (make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts. + (XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents. + (XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes. + + * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended + XmStringCreateLocalized function. Add missing copyright. + + * lwlib-Xm.h: Add missing copyright and license notice. + +2005-03-12 Stefan Monnier + + * xlwmenuP.h: + * xlwmenu.h: Add missing copyright and license notice. + +2004-12-27 Jan Djärv + + * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as an + action procedure for compatibility with Lesstif/Motif. + + * Makefile.in (mostlyclean): Don't remove *~ on clean. + +2004-12-26 Jan Djärv + + * lwlib-Xaw.c: Put Escape in dialogOverride so dialogs only + pops down on Escape, not any keypress. + +2004-11-01 Jan Djärv + + * xlwmenu.c (find_first_selectable, find_next_selectable) + (find_prev_selectable): Rename parameter skip_no_call_data to + skip_titles. Recognize titles as having no call_data and no contents. + (Down, Up): Comment update. + +2004-08-30 Jan Djärv + + * lwlib.h (_widget_value): Add lname and lkey. + +2004-01-12 Jan Djärv + + * xlwmenuP.h (_XlwMenu_part): Add top_depth. + + * xlwmenu.h: Removed declaration of pop_up_menu. + + * xlwmenu.c (Start): Get correct time if time in event is CurrentTime. + (find_first_selectable, find_next_selectable) + (find_prev_selectable): Add parameter skip_no_call_data to skip + over items with no call data (popup menu titles). + (Down, Up): Compare old_depth to top_depth instead of 2. + Pass True to find_*_selectable:s new parameter if this is a popup menu. + (Left, Right): Compare old_depth to top_depth instead of 2. + Pass 0 to find_*_selectable:s new parameter. + (pop_up_menu): Set top_depth to 1 for pop up menus and 2 for + menu bar menus, to enable keyboard traversal of popups. + + * lwlib-Xm.c (dialog_key_cb): New function. + (make_dialog): Add event handlers to dialog_key_cb for key press + so we can pop down on ESC. + + * lwlib-Xlw.c (xlw_popup_menu): Replace call to pop_up_menu with + XtCallActionProc ("start"). Use a full XEvent since "start" copies it. + + * lwlib-Xaw.c (make_dialog): Add override so dialog pops down on ESC. + (wm_delete_window): If widget isn't a shell, use the parent. + +2003-05-22 Dave Love + + * xlwmenu.c: Include lisp.h, not ../src/lisp.h. + (make_drawing_gcs): Remove unused `xswa', `mask'. + + * lwlib-Xlw.c: Include lisp.h, not ../src/lisp.h. + (lw_lucid_widget_p): Remove unused `mw'. + (xlw_update_one_widget, xlw_pop_instance) [PROTOTYPES]: + Provide ISO C arglists. + +2003-04-30 Lute Kamstra + + * Makefile.in: Make things function properly in case both LessTif + and Open Motif are installed. + +2003-01-26 Jan Djärv + + * lwlib-Xm.c (update_one_menu_entry): Deallocate widget_list. + (destroy_all_children): Call it self to destroy sub menu children. + +2002-12-22 Richard M. Stallman + + * xlwmenu.c (pop_new_stack_if_no_contents): Do nothing if + new_depth is 1. + (remap_menubar): Don't look in new_stack[0]. + (Left): At level 1, do the same thing Right does. + +2002-11-21 Dave Love + + * lwlib-Xaw.c [PROTOTYPES]: Provide ISO C arglists for functions + with Boolean args. + +2002-11-20 Dave Love + + * lwlib.c: Remove obsolete USE_OLIT code. + [PROTOTYPES]: Provide ISO C arglists for functions with Boolean args. + (lwlib_memset): Declare length arg as size_t. + (malloc_widget_value): Cast arg of lwlib_memset. + + * xlwmenu.c (separator_height): Prototype. + +2002-05-07 Miles Bader + + * xlwmenu.c (make_drawing_gcs): The scaling factor passed to + `x_alloc_lighter_color_for_widget' is a float, not an int, and + it's a multiplicative factor, so the name `delta' is inaccurate. + Always base disabled foreground on the normal foreground. + Don't use the temporary variable `temp'. + +2002-05-06 Pavel Janík + + * xlwmenu.c (xlwMenuResources): New resource. + (find_next_selectable): Return current item when the menu is not + popped up. + Rename `inactive_gc' to `disabled_gc'. + Use lighter/darker color for disabled menu items instead of using + stipple. Use stipple only when better color can not be + determined automatically. + + * xlwmenu.h (XtNdisabledForeground, XtCDisabledForeground): + New resource names. + + * xlwmenuP.h (_XlwMenu_part): Add new member `disabled_foreground'. + Rename `inactive_gc' to `disabled_gc'. + +2002-04-29 Pavel Janík + + * xlwmenu.c : + Change default values. + +2002-04-28 Jan Djärv + + * xlwmenu.c: Do not grab keyboard if installation-directory is + non-nil (not installed Emacs). To simplify debugging. + +2002-04-28 Pavel Janík + + * Makefile.in: Remove OpenLook file dependencies. + (xrdb-cpp.o): Remove target. + Remove unused defines. + + * xrdb.c, xrdb-cpp.c, Imakefile, dispatch.c, dispatch.h: + Remove unused file. + + * lwlib.c (instantiate_widget_instance): Remove duplicated prototype. + +2002-04-25 Pavel Janík + + * lwlib-Xol.c, lwlib-Xol.h, lwlib-Xolmb.c, lwlib-Xolmb.h + * lwlib-XolmbP.h: Remove file. + +2002-04-22 Jan Djärv + + * lwlib-Xm.c: Removed compiler warning. + + * xlwmenu.c: Add calls to GrabKeyboard to remove strange + interactions with window managers that steal keypresses. + Call ungrab_all instead of XtUngrabPointer. + (pop_up_menu): Add call to XtGrabKeyboard. + (ungrab_all): New function. + +2002-04-20 Pavel Janík + + * xlwmenu.c (find_next_selectable): New function. + (Down, Up, Right): Use it. + (find_next_selectable): Prevent endless loops when only one item + is enabled in the menu. + +2002-04-19 Pavel Janík + + These changes allow moving in menu via keyboard. + + * xlwmenu.c (xlwMenuTranslations, xlwMenuActionsList): + Add translations for cursor keys and RET. + (find_next_selectable, find_prev_selectable): New functions used + for finding menu-items. + (Down, Up, Left, Right): New functions. + +2002-04-19 Eli Zaretskii + + * Makefile.in (TAGS): Don't use -t, it's the default behavior for + etags, so it barfs if invoked with -t. + +2002-03-17 Richard M. Stallman + + * lwlib.c (P_): Definitions deleted. + +2002-03-16 Eli Zaretskii + + * lwlib.c (P_): Don't define if already defined. + +2002-01-27 Pavel Janík + + * lwlib-Xaw.c (xaw_update_scrollbar, xaw_scrollbar_scroll) + (xaw_scrollbar_jump): Put whole functions in #if 0. + +2002-01-09 Pavel Janík + + * lwlib-Xaw.c (xaw_create_dialog): Initialize icon_name to + suppress compiler warnings. + +2001-12-18 Pavel Janík + + * lwlib.c (separator_names): Add missing braces around initializers. + +2001-12-08 Pavel Janík + + * COPYING: New file. + +2001-12-01 Richard M. Stallman + + * lwlib.h (_widget_value): `help' has type Lisp_Object. + + * xlwmenu.c, lwlib-Xaw.c, lwlib-Xlw.c: Include ../src/lisp.h. + * lwlib-Xm.c, lwlib-Xol.c, lwlib-Xolmb.c: Include ../src/lisp.h. + * lwlib-utils.c: Include ../src/lisp.h. + + * lwlib.c: Include ../src/lisp.h. Don't declare xmalloc. + (free_widget_value_tree): Don't free `help' field. + (copy_widget_value_tree): Copy `help' simply, without safe_strdup. + (merge_widget_value): Compare and copy `help' simply. + +2001-11-28 Richard M. Stallman + + * Makefile.in (TAGS): Find the source files in $(srcdir). + +2001-10-20 Gerd Moellmann + + * (Version 21.1 released.) + +2001-10-09 Gerd Moellmann + + * lwlib-Xaw.c (xaw_create_scrollbar) [!0]: Return NULL. + From Hallvard B Furuseth . + +2001-10-05 Gerd Moellmann + + * Branch for 21.1. + +2001-04-30 Gerd Moellmann + + * xlwmenu.c (xlwmenu_window_p): New function. + +2001-03-23 Gerd Moellmann + + * lwlib-Xlw.c (x_print_complete_resource_name) [0]: New function. + +2001-03-22 Gerd Moellmann + + * lwlib-Xm.c (x_print_complete_resource_name) [0]: New function. + +2001-03-13 Gerd Moellmann + + * lwlib-Xm.c (make_menu_in_widget): Remove code forcing LessTif to + recompute centered text; it works fine without with current LessTif. + + * lwlib-Xm.c (make_menu_in_widget): Add an XmNpopdownCallback + instead of an XmNunmapCallback. + (xm_unmap_callback): Remove. + + * lwlib-Xm.c (make_menubar): Take out code in #if 0. + + * lwlib-Xm.c (xm_popup_menu): Don't set XmNmenuPost unless + necessary. From Rick Scott . + +2001-02-28 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): Don't compare widgets with `None', + use NULL instead. + + * lwlib-Xaw.c (xaw_update_one_widget): Use XtSetSensitive instead + of setting the value of XtNsensitive. + + * lwlib-Xm.c (xm_update_radiobox, update_one_menu_entry) + (xm_update_one_widget): Use XtSetSensitive instead of setting the + value of XmNsensitive. From Rick Scott . + +2000-12-14 Dave Love + + * xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from declaration. + +2000-12-11 Dave Love + + * xlwmenu.c (draw_separator) : + : Fix call of draw_separator. + +2000-12-07 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): Fix last change. + +2000-11-30 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): Handle case that W is null; + also see comment there. + +2000-11-21 Gerd Moellmann + + * xlwmenu.c (xlwmenu_redisplay): New function. + +2000-09-30 Stefan Monnier + + * lwlib.c (lw_separator_p): Init separator_p (bug with "-- some text"). + +2000-09-28 Sam Steingold + + * xlwmenu.c: Before including on SUN, define SUNOS41 + to avoid redefining struct timeval and struct timezone. + +2000-09-04 Miles Bader + + * xlwmenu.c (XlwMenuSetValues): Only frob the display if the menu + is actually displayed. + (remap_menubar): Only include the menu-margin in the initial X & Y + positions for horizontal menu-bars. + (fit_to_screen): If moving a sub-menu to the left-side, increment + its x-position by the shadow-thickness to make it look more + attached to the invoking menu-item (similarly to the way it would + be displayed on the right side). + +2000-09-03 Miles Bader + + * xlwmenu.c (x_alloc_lighter_color_for_widget): New extern declaration. + (make_shadow_gcs) [emacs]: Use x_alloc_lighter_color_for_widget to + do shadow calculation. + (make_shadow_gcs): Remove code that tests whether the top shadow + is dimmer than the bottom shadow--it shouldn't ever happen. + +2000-08-30 Miles Bader + + * xlwmenu.c (XlwMenuSetValues): If the background color has + changed, re-make the shadow-gcs too. + +2000-08-03 Gerd Moellmann + + * lwlib.c, lwlib-Xm.c, lwlib-Xaw.c: Use NULL at the end of the + variable argument lists of XtVaSetValues and XtVaGetValues + functions because 0 is not sufficient on systems where sizeof + (int) < sizeof (void *). + +2000-07-19 Gerd Moellmann + + * xlwmenu.c [emacs]: Don't include because that + leads to redefinition errors when static is defined as empty in + config.h. Refer to the gray bitmap in xfns.c, instead. + +2000-07-18 Dave Love + + * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy. + +2000-06-23 Dave Love + + * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu. + + * lwlib-utils.c: Include lwlib.h. + +2000-06-16 Gerd Moellmann + + * xlwmenuP.h (_XlwMenu_part): Add free_top_shadow_color_p and + free_bottom_shadow_color_p. + + * xlwmenu.c (make_shadow_gcs): Set free_top_shadow_color_p + and free_top_shadow_color_p flags in the menu widget if + top and bottom shadow colors must be freed. + (release_shadow_gcs): Free colors only if they must be freed. + +2000-06-12 Gerd Moellmann + + * xlwmenu.c (make_shadow_gcs): Free and copy colors so that + color reference counts are right. + (release_shadow_gcs): Free colors. + +2000-06-06 Dave Love + + * xlwmenu.c (x_alloc_nearest_color_for_widget, x_catch_errors) + (x_uncatch_errors, x_had_errors_p, x_clear_errors): Add prototypes + -- should be moved into separate header. + (make_shadow_gcs) : Cast first arg. + (Start) : Cast second arg. + + * lwlib.c (P_): Use PROTOTYPES. + (safe_strdup): Declare arg const. + (lw_modify_all_widgets) : Return 0. + + * lwlib-Xm.c (P_): Use PROTOTYPES. + + * xlwmenu.h, lwlib.h, lwlib-utils.h, lwlib-int.h, lwlib-Xm.h: + * lwlib-Xlw.h, lwlib-Xaw.h: Enable prototypes. + + * lwlib-Xaw.c (xaw_popup_menu): Add EVENT arg. + + * Makefile.in (lwlib.o): Depend on lwlib-Xlw.h. + (lwlib-Xlw.o): Depend on lwlib-Xlw.h. + (lwlib-Xaw.o): Depend on lwlib-Xaw.h. + (lwlib-Xm.o): Depend on lwlib-Xm.h. + +2000-03-12 Gerd Moellmann + + * lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set + XmNresizeHeight and XmNresizeWidth. + +2000-03-08 Dave Love + + * Makefile.in (liblw.a): Don't bother testing for ranlib failing + since configure sets it up. + +2000-03-06 Gerd Moellmann + + * lwlib-Xm.c (make_menubar): Set XmNresizeHeight and + XmNresizeWidth resources only if LESSTIF_VERSION is defined. + +2000-03-05 Gerd Moellmann + + * lwlib-Xm.c (xm_manage_resizing): Rewritten. + + * lwlib.c (lw_modify_all_widgets): Return non-zero if widget + tree was changed. + (merge_widget_value): Add parameter CHANGE_P. Set *CHANGE_P + to 1 if a change occurs. + + * lwlib.h (lw_modify_all_widgets): Change prototype. + +2000-03-04 Gerd Moellmann + + * xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead + of the screen's default colormap. + +2000-02-18 Gerd Moellmann + + * lwlib.c (merge_widget_value): Fix incorrect assignment of + safe_strdup'd help string. + +2000-01-25 Gerd Moellmann + + * lwlib-Xm.c (make_menu_in_widget): Don't add XmNpopdownCallback, + add XmNunmapCallback. + (xm_unmap_callback): New function. + (xm_pull_down_callback): Call pre-activate callback only if + parent is the menu bar. + +2000-01-17 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): New function. + (make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and + XmNdisarmCallback for buttons (not supported for other widgets). + (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False. + + * lwlib-Xlw.c (highlight_hook): New function. + (xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as + callback XtNhighlightCallback. + + * lwlib.c (copy_widget_value_tree): Copy help string. + (free_widget_value_tree): Free help string. + (merge_widget_value): Handle help string. + (allocate_widget_info, lw_register_widget, lw_create_widget): + Add parameter HIGHLIGHT_CB. + (lw_get_widget_instance): New function. + + * lwlib-int.h: Add prototype for lw_get_widget_instance. + + * lwlib.h (_widget_value): Add help string. + + * xlwmenu.c (xlwMenuResources): All XtNhighlightCallback. + (remap_menubar): Call highlight callback. + + * xlwmenu.h (XtNhighlightCallback): New define. + + * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list. + +1999-10-19 Paul Eggert + + Add support for large files, plus some locale improvements. + + * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, + * xrdb-cpp.c, xrdb.c: + Include before any system include files. + + * lwlib-Xm.c, lwlib.c: + Do not include or , as does this. + +1999-10-07 Gerd Moellmann + + * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): + Use widgets instead of gadgets to be able to set colors. + +1999-09-17 Richard Stallman + + * lwlib-Xaw.c (wm_delete_window): Check all the shell's children, + not just the first, to find the dialog box. + +1999-09-14 Gerd Moellmann + + * lwlib.c (lw_separator_p): Check for new-style separators differently. + +1999-09-10 Gerd Moellmann + + * lwlib.c (lw_separator_p): Add `--:space' with the same + meaning as `--:noLine'. + +1999-09-06 Gerd Moellmann + + * lwlib.c (lw_separator_p): Add alternative separator type names. + +1999-09-03 Gerd Moellmann + + * xlwmenu.c (make_shadow_gcs): Call x_alloc_nearest_color_for_widget. + +1999-07-12 Gerd Moellmann + + * lwlib-Xm.c: Add function prototypes. + + * lwlib-Xm.c (xm_update_label): Use val->name to look up + a label string from resources. + (xm_update_label): Add some comments. + +1999-07-12 Gerd Moellmann + + * xlwmenu.c (all_dashes_p): Removed. + (size_menu_item): Call lw_separator_p. + (display_menu_item): Ditto. + (display_menu): Ditto. + (draw_separator): New. + (display_menu_item): Call it. + (separator_height): New. + (size_menu_item): Call it. + + * lwlib-Xm.c (all_dashes_p): Removed. + (make_menu_in_widget): Use lw_separator_p. Set Motif separator type. + + * lwlib.c (lw_separator_p): New. + + * lwlib.h (enum menu_separator): New. + +1999-07-12 Gerd Moellmann + + * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu + title after all widgets have been created. + +1999-07-12 Gerd Moellmann + + * xlwmenu.c (toggle_button_width): Renamed from + toggle_or_radio_button_width. + (radio_button_width): New. + (size_menu_item): Use new functions. + (draw_shadow_rhombus): New. + (draw_radio): Use radio_button_width and draw_shadow_rhombus. + (draw_toggle): Use toggle_button_width. + +1999-07-12 Gerd Moellmann + + * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback + instead of xm_internal_update_other_instances. + + * lwlib-Xm.c (make_menu_in_widget): Do help button before managing + children to get it to the right place. + (make_menu_in_widget): Create toggle buttons. + (update_one_menu_entry): Update toggle buttons. + + * xlwmenu.c (size_menu_item): Add parameter button_width. + (size_menu): Compute button_width. + (toggle_or_radio_button_width): New. + (draw_toggle): New. + (draw_radio): New. + (draw_shadow_rectangle): Add parameter `down_p'. + + * xlwmenuP.h (_window_state): Add button_width. + +1999-07-12 Gerd Moellmann + + * xlwmenu.c (make_shadow_gcs) [emacs]: Use x_alloc_nearest_color. + + * lwlib.c (merge_widget_value): Handle button_type. + (copy_widget_value_tree): Copy button_type. + + * lwlib.h (enum button_type): New. + (_widget_value): New member button_type. + +1999-07-12 Gerd Moellmann + + * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets + using XmNrowColumnType. + +1999-07-12 Gerd Moellmann + + * xlwmenu.c (abort_gracefully): New. + (display_menu): Use it instead of abort. + (size_menu): Ditto. + +1999-07-12 Gerd Moellmann + + * xlwmenu.c (xlwMenuResources): Change previously unused + XtNmargin to 4. + (size_menu): Take margin into account. + (display_menu_item): Ditto. + (remap_menubar): Ditto. + (draw_arrow): Draw it 3D. + +1999-07-12 Richard Stallman + + * Version 20.4 released. + +1998-08-19 Richard Stallman + + * Version 20.3 released. + +1998-07-30 Paul Eggert + + * Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o) + (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o): + Add dependencies to corresponding .c files for Solaris 2.x VPATH make. + +1998-04-06 Andreas Schwab + + * lwlib.c: Always declare xmalloc. + [USE_XAW]: Include . + (lwlib_memset, lwlib_bcopy): Explicitly declare return type. + +1997-12-20 Richard Stallman + + * lwlib-Xm.c (update_one_menu_entry): + Add conditional in case XmNpositionIndex is missing. + +1997-09-19 Richard Stallman + + * Version 20.2 released. + + * xlwmenu.c (motion_event_is_in_menu): Extend the left and + top windows by the shadow width. + +1997-09-15 Richard Stallman + + * Version 20.1 released. + +1997-07-23 Richard Stallman + + * xlwmenu.c (display_menu): If an item is disabled, + don't display its submenu (if any). + +1997-05-01 Richard Stallman + + * xlwmenu.c (pop_up_menu): Update the call to x_catch_errors. + +1997-01-21 Richard Stallman + + * xlwmenu.c (fit_to_screen): If new menu would overlap the previous + one from the side, try moving it up or down. + +1996-08-11 Richard Stallman + + * Version 19.33 released. + + * lwlib-Xm.c (update_one_menu_entry): Fix previous change: + When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget, + just modify the existing one. + +1996-08-09 Marcus G. Daniels + + * lwlib.c (merge_widget_value): Undo previous change. + + * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown + in an existing but empty menu item, in order to get a new functional + pulldown, the menu item must be switched from an XmPushButtonGadget + into a XmCascadeButtonGadget. + +1996-07-31 Richard Stallman + + * Version 19.32 released. + +1996-07-31 Marcus G. Daniels + + * lwlib-Xm.c (make_menubar): Turn off menu accelerator. + +1996-07-24 Marcus G. Daniels + + * lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change + flag from merged_contents. + +1996-07-13 Karl Heuer + + * lwlib-Xm.c (xm_update_menu): Fix loop termination test. + +1996-07-07 Karl Heuer + + * lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change. + +1996-07-03 Marcus G. Daniels + + * lwlib-Xm.h: Declare lw_motif_menu_related_event_p. + + * lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to + identify keyboard events intended only for menus. + + * lwlib.h: Declare lw_toolkit_related_event_p. + + * lwlib.c (lw_toolkit_related_event_p): A predicate to identify + toolkit-specific events. + +1996-06-07 Marcus G. Daniels + + * lwlib-Xm.c (make_menu_in_widget): Set mapping delay + for cascade buttons to zero. + +1996-05-25 Karl Heuer + + * Version 19.31 released. + +1996-03-31 Richard Stallman + + * lwlib-Xm.c (destroy_all_children): When freeing a cascade button, + free its submenu too. + (make_menu_in_widget): Use a cascade button gadget, not a widget. + Include Xm/CascadeBG.h. + +1996-03-29 Richard Stallman + + * Makefile.in (tags): New target. + +1996-03-28 Richard Stallman + + * Makefile.in (TAGS): Renamed from `tags' and fixed to work. + +1996-03-26 Richard Stallman + + * Makefile.in (xlwmenu.o): New explicit target. + +1996-03-24 Richard Stallman + + * lwlib.h (struct widget_value): New field this_one_change. + * lwlib.c (merge_widget_value): Set the this_one_change field. + * lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy. + (make_menu_in_widget): New arg keep_first_children. + (xm_update_menu): Preserve the first children even if later ones + have a structural change. + (update_one_menu_entry): Use this_one_change field. + +1996-03-01 Richard Stallman + + * xlwmenu.c (motion_event_is_in_menu): Make x and y signed. + +1996-02-25 Richard Stallman + + * lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]: + With Motif, the window WIN can be the menu bar widget itself. + +1996-02-21 Richard Stallman + + * lwlib.c (free_widget_value_tree, merge_widget_value): + Use XtFree for the toolkit_data. + +1996-02-19 Karl Heuer + + * lwlib.c (lw_internal_update_other_instances): Move static var + outside the function, and rename it to lwlib_updating. + +1996-01-04 Paul Eggert + + * lwlib.c (instantiate_widget_instance): Renamed from + instanciate_widget_instance (spelling correction). + All callers changed. + +1995-12-31 Richard Stallman + + * xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing". + (xlwMenuTranslations): Add translations for Key, KeyUp, + and for the modifier keysyms. + (Nothing, Key): New functions. + +1995-12-24 Richard Stallman + + * xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents + get replaced by empty contents. + + * lwlib.c (merge_widget_value): Treat disappearance of entire contents + as a STRUCTURAL_CHANGE. + +1995-12-20 Richard Stallman + + * lwlib-utils.c: Add #undef for index and rindex. + +1995-11-24 Richard Stallman + + * Version 19.30 released. + +1995-11-13 Richard Stallman + + * xlwmenu.c (display_menu_item): Fix previous change. + +1995-11-04 Richard Stallman + + * xlwmenu.c (display_menu_item): Don't treat buttons specially. + +1995-08-14 Richard Stallman + + * Makefile.in (RANLIB): Get this var from configure. + +1995-08-02 Richard Stallman + + * lwlib.c (lw_popup_menu): New arg `event', passed along. + * lwlib-Xlw.c (xlw_popup_menu): New arg `event'. + * lwlib-Xm.c (xm_popup_menu): New arg `event'. + +1995-06-19 Richard Stallman + + * Version 19.29 released. + +1995-06-11 Richard Stallman + + * lwlib.c (lwlib_toolkit_type): New variable. + +1995-05-26 Richard Stallman + + * xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set. + +1995-05-22 Karl Heuer + + * xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args. + +1995-05-20 Karl Heuer + + * lwlib.c: Don't use prototype. + * lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise. + +1995-05-05 Richard Stallman + + * lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if. + +1995-05-04 Richard Stallman + + * Makefile.in (ALL_CFLAGS): Add -I../src. + +1995-05-03 Morten Welinder + + * lwlib.c [__osf__]: Include string.h and stdlib.h. + [__osf__] (xmalloc): Declared. + +1995-04-13 Richard Stallman + + * lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget): + Specify more useful names in XmCreatePulldownMenu calls. + + * lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned. + + * xlwmenu.c (size_menu): Make height and label_width unsigned. + (fit_to_screen): Make screen_width and screen_height unsigned. + (motion_event_is_in_menu): Make x, y unsigned. + +1995-04-09 Richard Stallman + + * lwlib-utils.c: If HAVE_CONFIG_H, include config.h. + + * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H. + Add -I${srcdir}/../src. + +1995-04-08 Paul Reilly + + * lwlib-Xm.c: Remove function prototypes. + (xm_pop_down_callback): Call the deactivation callback only when + popping down the top level submenu. + +1995-04-07 Richard Stallman + + * Makefile.in (lwlib.o): Depend on Makefile. + + * lwlib-Xm.h: Remove function prototypes. + + * lwlib-Xm.c (remove_grabs): Use type Widget for `menu'. + +1995-02-15 Paul Reilly + + * Makefile.in (ALL_CFLAGS): Allow include files to be found in + `srcdir'. + +1995-02-07 Richard Stallman + + * Makefile.in (maintainer-clean): Renamed from realclean. + +1994-11-28 Richard Stallman + + * lwlib-int.h (safe_strdup): Don't use ANSI argument prototype. + +1994-11-15 Paul Reilly + + * lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW. + +1994-11-08 Paul Reilly + + * lwlib-Xm.c (make_menu_in_widget): Differentiate a separator + entry ("--") from a title. + (xm_pop_down_callback): Filter all but the last pop down callbacks. + +1994-11-07 Paul Reilly + + * lwlib-Xm.c (update_one_menu_entry): Use the parent of the + cascade button as the parent of the pulldown, rather than the + cascade button itself. This works around a Motif SIGSEGV in the + function `InSharedMenuHierarchy'. + +1994-10-26 Richard Stallman + + * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. + +1994-10-26 Richard Stallman + + * xlwmenu.c (xlwmenu_default_font): New global variable. + (XlwMenuInitialize): Use xlwmenu_default_font to default + the font if necessary. Make mw, itself, an argument. + + * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. + +1994-10-08 Richard Stallman + + * xlwmenu.c (fit_to_screen): Don't put the menu off the left or top. + +1994-10-02 Paul Reilly + + * xlwmenu.c (display_menu_item): Add support for displaying the + title in pop up menus. + + * lwlib.c (lw_set_main_areas): Use xm_set_main_areas(). + (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif. + +1994-09-25 Paul Reilly + + * lwlib-Xaw.c (xaw_create_main): New function to support the + toolkit independent creation of the main Emacs widget. * + lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set + resizing resources to disable showGrip and to enable both + resizeToPreferred and allowShellResize. + + * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing. + + * lwlib-Xm.c (make_menu_in_widget): Add support for displaying a + title in pop up menus. + (make_main, xm_set_main_areas, xm_manage_resizing): New functions to + create and manage a Motif Main Window widget. + + * xlwmenu.c: Add #include for X11R4. + +1994-09-18 Frederic Pierresteguy + + * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons, + set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a + margin of 10 pixels. + +1994-09-16 Paul Reilly + + * lwlib-Xm.c (make_main): New function to support toolkit + independent creation of the main Emacs widget. + (make_destroyed_instance): Use safe_strdup() instead of strdup(). + + * lwlib-int.h: Declare safe_strdup. + + * lwlib.c (lw_refigure_widget): New function. Handle geometry + management inside lwlib instead of in Emacs. + (lw_window_is_in_menubar): New function. Determine if the pointer + is in a menubar. + (lw_set_main_areas): New function. Set the main window widgets for + Motif. + + * lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(), + lw_set_main_areas(). + + * xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and + Xt{Na,CA}llowResize. + + * xlwmenu.c (Start): Use pop_up_menu() to post the submenus. + (Select): Remove the pointer grab when popping down a menubar submenu. + (pop_up_menu): Handle popping up submenus from a menubar, i.e. when + the menu widget parent is not a shell widget. + +1994-08-25 Richard Stallman + + * xlwmenu.c (pop_up_menu): Clear next_release_must_exit. + (Start): Clear next_release_must_exit when popping up the menu. + +1994-08-24 Richard Stallman + + * xlwmenu.c (Start): Set menu_post_event or next_release_must_exit. + (Select): Do nothing if the menu should be left posted. + +1994-07-28 Richard Stallman + + * xlwmenu.c (make_windows_if_needed, pop_up_menu): + Enable mouse motion events even when no button down. + +1994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (pointer_grabbed): New variable. + (pop_up_menu): Set the variable. + (XlwMenuDestroy): Maybe call XtUngrabPointer. + +1994-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib.c (max): Function deleted. Define as macro instead, + but only if not already defined. + +1994-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness. + +1994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget. + +1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib.c (lwlib_memset: New function, used instead of memset. + All callers changed. + * lwlib.c (lwlib_bcopy): New function. + * lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy. + + * lwlib.c: Delete definitions for use of alloca. + (name_to_widget): Use xmalloc, not alloca. + +1994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed. + (XlwMenuRedisplay): If it's set, truncate the old_depth to 1. + +1994-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h. + * lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h. + * lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy. + * lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h. + * xlwmenu.c: Don't include string.h, unistd.h, stdlib.h. + * lwlib.c: Don't include string.h, unistd.h, stdlib.h. + (safe_strdup): No longer static. + * lwlib-Xm.c: Use safe_strdup, not strdup. + + * xlwmenu.c (string_width): No longer static. + +1994-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor + for foreground and cursor_shape fields. + + * xlwmenu.c (XlwMenuSetValues): Check for change of font. + +1994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in: Delete all SRCS variables (unused). + (lwlib.o, xrdb-cpp.o): Mention srcdir in dep. + +1994-04-15 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4. + + * xrdb.c: Define HAVE_X11R5 as in xterm.h. + Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. + (_XtDisplayInitialize): Test HAVE_X11R5. + + * dispatch.c: Define HAVE_X11R5 as in xterm.h. + Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. + (_XtConvertTypeToMask): Conditionalize on HAVE_X11R5. + (WouldDispatchEvent): Likewise. + +1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib-Xaw.c (xaw_generic_callback): Declare without arg names. + +1994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu) + + * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the + user. + +1994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize + itself. Therefore reset the size to its initial value. + +1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues. + Don't test for scrollbar widget. + +1994-03-14 Frederic Pierresteguy (fp@gnu.ai.mit.edu) + + * lwlib-int.h: Declare lw_get_widget_info. + + * lwlib.c (lw_get_widget_info): Comment out arg in function decl. + + * lwlib-Xaw.h: Comment out args in function decls. + * lwlib-Xaw.c: Convert all function definitions to non-prototype K&R. + (xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues, + not XtVaSetValues. + +1994-03-11 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) + + * xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to + right justify the arrow in the pane. + + * lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then + define USE_XAW. + + * Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc]. + + * lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release. + * lwlib.c (_AIX): Replace the AIXV3 directive. + (USE_XAW): New macro to conditionalize the use of the athena toolkit. + (lw_get_widget_info): New function. + (set_one_value): Handle USE_XAW. + (instanciate_widget_instance): Likewise. + (destroy_one_instance): Likewise. + (lw_pop_all_widgets): Likewise. + (lw_pop_down_all_widgets): Likewise. + (get_one_value): Likewise. + + * lwlib-Xaw.c, lwlib-Xaw.h: New files. + +1994-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes. + + * lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu): + Use XtCreate..., not XtVaCreate... + No need to copy instance->info->val any more. + (xlw_update_one_widget): Use XtSetValues, not XtVaSetValues. + +1994-02-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails. + +1994-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags. + + * lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value. + Use malloc for allocation. + (xlw_create_popup_menu): Likewise. + +1994-02-18 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * lwlib.c (malloc_cpt): New static variable. + (malloc_widget_value): Increment malloc_cpt when allocating a cell. + (free_widget_value): Really free the cells when the number of + allocated ones is bigger than 25. + + * lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and + free_widget_value instead of XtMalloc and XtFree. + (xlw_create_popup_menu): Likewise. + +1994-02-17 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in (ALL_CFLAGS): Specify -Demacs. + + * xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors + in XtGrabPointer. + +1994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to + XtVaCreateManagedWidget, not instance->info->val. + (xlw_create_menubar): Likewise. + +1994-02-15 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val + before calling XtVaCreateManagedWidget and then free the copy. + (xlw_create_menubar): Likewise. + +1994-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents. + (XlwMenuDestroy): Free mw->menu.contents. + +1994-02-09 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make + visible/invisible the selection of the menubar items. + +1994-02-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu) + + * lwlib.c (strcasecmp): Renamed to my_strcasecmp. + (find_in_table): Changed only caller. + +1994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) + + * xlwmenu.c (display_menu_item): When dealing with the menubar, + always call XDrawRectangle to clear the selection after popping down + the pulldown menu. + +1994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib.c: Include ctype.h. + +1994-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib.c (strcasecmp): New function. + +1994-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c: + Convert all function definitions to non-prototype K&R. + + * lwlib-Xlw.h: Comment out args in function decls. + * lwlib.h: Comment out args in function decls. + * lwlib-utils.h: Comment out args in function decls. + +1994-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * lwlib.c: Include StringDefs.h after lwlib.h. + +1994-01-22 Roland McGrath (roland@churchy.gnu.ai.mit.edu) + + * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name + instead of $*. + (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were + superfluous and didn't work when configured outside srcdir. + The implicit .c.o rule works fine. + +1994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * xlwmenu.c (resource_widget_value): Avoid using strdup. + +1994-01-18 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in: New file. + + * lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c. + * lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h. + * lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h. + + * lwlib-int.h: Renamed from lwlib-internal.h. + + + +;; Local Variables: +;; coding: utf-8 +;; End: + + Copyright (C) 1995-1999, 2001-2015 Free Software Foundation, Inc. + + This file is part of GNU Emacs. + + GNU Emacs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs. If not, see . -- cgit v1.2.3 From 23468561682aea0705249a469f614bb873e4f411 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 7 Apr 2015 00:00:55 -0700 Subject: Generate a ChangeLog file from commit logs * .gitignore: Add 'ChangeLog'. * build-aux/gitlog-to-changelog: New file, from Gnulib. * build-aux/gitlog-to-emacslog: New file. * CONTRIBUTE: Document the revised workflow. * Makefile.in (clean): Remove *.tmp and etc/*.tmp* instead of just special cases. (CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars. (ChangeLog, unchanged-history-files, change-history) (change-history-commit): New rules. * admin/admin.el (make-manuals-dist--1): Don't worry about doc/ChangeLog. * admin/authors.el: Add a FIXME. * admin/make-tarball.txt: * lisp/calendar/icalendar.el: * lisp/gnus/deuglify.el: * lisp/obsolete/gulp.el: * lwlib/README: Adjust to renamed ChangeLog history files. * admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog. * admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr. Remove obsolete discussion of merging ChangeLog files. New section "Maintaining ChangeLog history". * build-aux/git-hooks/pre-commit: Reject attempts to commit files named 'ChangeLog'. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * make-dist: Make and distribute top-level ChangeLog if there's a .git directory. Distribute the new ChangeLog history files instead of scattered ChangeLog files. Distribute the new files gitlog-to-changelog and gitlog-to-emacslog. Fixes: bug#19113 --- .gitignore | 1 + CONTRIBUTE | 85 ++++++-- Makefile.in | 40 +++- admin/admin.el | 6 +- admin/authors.el | 5 +- admin/make-tarball.txt | 24 ++- admin/merge-gnulib | 2 +- admin/notes/repo | 54 +++-- build-aux/git-hooks/pre-commit | 18 +- build-aux/gitlog-to-changelog | 445 +++++++++++++++++++++++++++++++++++++++++ build-aux/gitlog-to-emacslog | 69 +++++++ lib/gnulib.mk | 9 +- lisp/calendar/icalendar.el | 2 +- lisp/gnus/deuglify.el | 2 +- lisp/obsolete/gulp.el | 2 +- lwlib/README | 2 +- m4/gnulib-comp.m4 | 2 + make-dist | 38 ++-- 18 files changed, 717 insertions(+), 89 deletions(-) create mode 100755 build-aux/gitlog-to-changelog create mode 100755 build-aux/gitlog-to-emacslog (limited to 'lwlib') diff --git a/.gitignore b/.gitignore index 9810c1d22f..67d2865354 100644 --- a/.gitignore +++ b/.gitignore @@ -237,6 +237,7 @@ info/dir *~ .#* \#*\# +ChangeLog [0-9]*.patch # Built by 'make install'. diff --git a/CONTRIBUTE b/CONTRIBUTE index 005ca17a4e..5c8058a49b 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE @@ -32,22 +32,33 @@ entry in their name, not yours. git distinguishes between the author and the committer; use the --author option on the commit command to specify the actual author; the committer defaults to you. -** commit messages +** Commit messages -When using git, commit messages should use ChangeLog format, with the -following modifications: +Typically, a patch creates ChangeLog entries by putting them into its +commit message, not by changing a ChangeLog file. Here is an example +commit message (indented): + + Deactivate shifted region + + Do not silently extend a region that is not highlighted; + this can happen after a shift. + * doc/emacs/mark.texi (Shift Selection): Document the change. + * lisp/window.el (handle-select-window): + * src/frame.c (Fhandle_switch_frame, Fselected_frame): + Deactivate the mark. + Fixes: bug#19003 + +The general format is as follows. - Start with a single unindented summary line explaining the change, then an empty line, then unindented ChangeLog entries. - You can use various Emacs functions to ease this process; see (info - "(emacs)Change Log Commands") or - http://www.gnu.org/software/emacs/manual/html_node/emacs/Change-Log-Commands.html. - - Limit lines in commit messages to 78 characters, unless they consist - of a single word of at most 140 characters. If you have trouble - fitting the summary into 78 characters, add a summarizing paragraph - below the empty line and before the individual file descriptions. + of a single word of at most 140 characters; this is enforced by a + commit hook. It's nicer to limit the summary line to 50 characters; + this isn't enforced. If the change can't be summarized so briefly, + add a paragraph after the empty line and before the individual file + descriptions. - If only a single file is changed, the summary line can be the normal file first line (starting with the asterisk). Then there is no @@ -63,8 +74,6 @@ following modifications: - Commit messages should not contain the "Signed-off-by:" lines that are used in some other projects. -** ChangeLog notes - - Emacs generally follows the GNU coding standards when it comes to ChangeLogs: http://www.gnu.org/prep/standards/html_node/Change-Logs.html . One @@ -83,25 +92,30 @@ following modifications: and have a reasonable chance of being read in the future, so it's better that they have good presentation. -- There are multiple ChangeLogs in the emacs source; roughly one per - high-level directory. The ChangeLog entry for a commit belongs in the - lowest ChangeLog that is higher than or at the same level as any file - changed by the commit. - - Use the present tense; describe "what the change does", not "what the change did". - Preferred form for several entries with the same content: - * help.el (view-lossage): - * kmacro.el (kmacro-edit-lossage): - * edmacro.el (edit-kbd-macro): Fix docstring, lossage is now 300 keys. + * lisp/help.el (view-lossage): + * lisp/kmacro.el (kmacro-edit-lossage): + * lisp/edmacro.el (edit-kbd-macro): Fix docstring, lossage is now 300. (Rather than anything involving "ditto" and suchlike.) -- If the commit fixes a bug, add a separate line +- If the commit has authors other than yourself, the commit message + should contain a separate line like the following: + + Co-authored-by: Joe Schmoe + +- If the commit is a tiny change that is exempt from copyright paperwork, + the commit message should contain a separate line like the following: - Fixes: bug#NNNN + Copyright-paperwork-exempt: yes + +- If the commit fixes a bug, append a separate line + + Fixes: bug#NNNN where NNNN is the bug number. @@ -119,6 +133,29 @@ following modifications: of files such as 'configure'. "There is no need" means you don't have to, but you can if you want to. +- If a commit message's first line starts with "; ", the message is + ignored when generating ChangeLog history files via 'make changelog' + or via 'make change-history'. You can use "; " for minor commits + that do not need separate ChangeLog entries. + +** Generating ChangeLog entries + +- You can use various Emacs functions to ease the process of writing + ChangeLog entries; see (info "(emacs)Change Log Commands") or + http://www.gnu.org/software/emacs/manual/html_node/emacs/Change-Log-Commands.html. + +- If you use Emacs VC, one way to format ChangeLog entries is to create + a top-level ChangeLog file, and update it with 'C-x 4 a' file as + usual. Do not register the ChangeLog file under git; instead, use + 'C-c C-a' to insert its contents into into your *vc-log* buffer. + +- Alternatively, you can use the vc-dwim command to maintain commit + messages. When you create a source directory, run the shell command + 'git-changelog-symlink-init' to create a symbolic link from + ChangeLog to .git/c/ChangeLog. Edit this ChangeLog via its symlink + with Emacs commands like 'C-x 4 a', and commit the change using the + shell command 'vc-dwim --commit'. Type 'vc-dwim --help' for more. + ** branches Development normally takes places on the trunk. @@ -182,6 +219,10 @@ to the tracker at http://debbugs.gnu.org . You can subscribe to the mailing lists, or see the list archives, by following links from http://savannah.gnu.org/mail/?group=emacs . +To email a patch you can use a shell command like 'git format-patch -1' +to create a file, and then attach the file to your email. This nicely +packages the patch's commit message and changes. + ** Document your changes. Any change that matters to end-users should have an entry in etc/NEWS. diff --git a/Makefile.in b/Makefile.in index 4cdd293ebd..55fb54a156 100644 --- a/Makefile.in +++ b/Makefile.in @@ -833,7 +833,7 @@ clean: $(clean_dirs:=_clean) for dir in test/automated; do \ [ ! -d $$dir ] || $(MAKE) -C $$dir clean; \ done - -rm -f etc/emacs.tmpdesktop etc/emacs.tmpappdata + -rm -f *.tmp etc/*.tmp* -rm -rf info-dir.* ### `bootclean' @@ -1087,6 +1087,44 @@ bootstrap: bootstrap-clean $(MAKE) MAKEFILE_NAME=force-Makefile force-Makefile $(MAKE) all +# The newest revision that should not appear in the generated ChangeLog. +gen_origin = 9d56a21e6a696ad19ac65c4b405aeca44785884a +# Convert git commit log to ChangeLog file. make-dist uses this. +.PHONY: ChangeLog change-history unchanged-history-files +ChangeLog: + $(AM_V_GEN)distprefix=$(distprefix) srcprefix=$(srcdir)/ \ + $(srcdir)/build-aux/gitlog-to-emacslog $(gen_origin) + +# The ChangeLog history files are called ChangeLog.1, ChangeLog.2, ..., +# ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX). $(CHANGELOG_N) stands for +# the newest (highest-numbered) ChangeLog history file. +CHANGELOG_HISTORY_INDEX_MAX = 1 +CHANGELOG_N = ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX) + +# Check that history-relevant files match what's in the repository. +# Otherwise, 'make change-history' might mess up the ChangeLog history files. +unchanged-history-files: + x=$$(git diff-files --name-only $(CHANGELOG_N) Makefile.in) && \ + test -z "$$x" + +# Copy newer commit messages to the start of the ChangeLog history file, +# and consider them to be older. +change-history: ChangeLog unchanged-history-files + (sed '/^Copyright/,$$d' $(CHANGELOG_N).tmp + new_origin=$$(git log --pretty=format:%H HEAD^!) && \ + sed 's/^\(gen_origin *= *\).*/\1'"$$new_origin/" \ + Makefile.in.tmp + mv $(CHANGELOG_N).tmp $(CHANGELOG_N) + mv Makefile.in.tmp Makefile.in + $(MAKE) $@-commit + +# If 'make change-history' fails because the newest ChangeLog history +# file contains invalid text, fix the file by hand and then run +# 'make change-history-commit'. +change-history-commit: + git commit -m'; make $@' $(CHANGELOG_N) Makefile.in + .PHONY: check-declare check-declare: diff --git a/admin/admin.el b/admin/admin.el index 9bf503ef14..f7b915509f 100644 --- a/admin/admin.el +++ b/admin/admin.el @@ -28,10 +28,6 @@ (defvar add-log-time-format) ; in add-log -;; Does this information need to be in every ChangeLog, as opposed to -;; just the top-level one? Only if you allow changes the same -;; day as the release. -;; http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00161.html (defun add-release-logs (root version &optional date) "Add \"Version VERSION released.\" change log entries in ROOT. Root must be the root of an Emacs source tree. @@ -601,7 +597,7 @@ style=\"text-align:left\">") (copy-file "../doc/misc/texinfo.tex" stem) (or (equal type "emacs") (copy-file "../doc/emacs/emacsver.texi" stem)) (dolist (file (directory-files (format "../doc/%s" type) t)) - (if (or (string-match-p "\\(\\.texi\\'\\|/ChangeLog\\|/README\\'\\)" file) + (if (or (string-match-p "\\(\\.texi\\'\\|/README\\'\\)" file) (and (equal type "lispintro") (string-match-p "\\.\\(eps\\|pdf\\)\\'" file))) (copy-file file stem))) diff --git a/admin/authors.el b/admin/authors.el index 1e4af9bbac..1f7e542478 100644 --- a/admin/authors.el +++ b/admin/authors.el @@ -27,6 +27,9 @@ ;; Use M-x authors RET to create an *Authors* buffer that can used as ;; or merged with Emacs's AUTHORS file. +;; FIXME: This needs to modernized in the light of current practice, +;; which generates a single top-level ChangeLog file from commit logs. + ;;; Code: (defvar authors-coding-system 'utf-8 @@ -76,7 +79,7 @@ files.") ("Gerd Möllmann" "Gerd Moellmann") ("Hallvard B. Furuseth" "Hallvard B Furuseth" "Hallvard Furuseth") ("Hrvoje Nikšić" "Hrvoje Niksic") - ;; lisp/org/ChangeLog 2010-11-11. + ;; lisp/org/ChangeLog.1 2010-11-11. (nil "aaa bbb") (nil "Code Extracted") ; lisp/newcomment.el's "Author:" header ("Jaeyoun Chung" "Jae-youn Chung" "Jae-you Chung" "Chung Jae-youn") diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt index e902b023f8..8190e9edb8 100644 --- a/admin/make-tarball.txt +++ b/admin/make-tarball.txt @@ -31,28 +31,33 @@ General steps (for each step, check for possible errors): M-x authors RET If there is an "*Authors Errors*" buffer, address the issues. - If there was a ChangeLog typo, fix it. If a file was deleted or - renamed, consider adding an appropriate entry to authors-ignored-files, - authors-valid-file-names, or authors-renamed-files-alist. + If there was a ChangeLog typo, run "make change-history" and then + fix the newest ChangeLog history file. If a file was deleted or + renamed, consider adding an appropriate entry to + authors-ignored-files, authors-valid-file-names, or + authors-renamed-files-alist. If necessary, repeat M-x authors after making those changes. Save the "*Authors*" buffer as etc/AUTHORS. Check the diff looks reasonable. Maybe add entries to authors-ambiguous-files or authors-aliases, and repeat. - Commit any fixes to ChangeLogs or authors.el. + Commit any fixes to authors.el. 3. Set the version number (M-x load-file RET admin/admin.el RET, then M-x set-version RET). For a release, add released ChangeLog - entries (M-x add-release-logs RET). + entries (create a ChangeLog symlink a la vc-dwim, then run M-x + add-release-logs RET, then run the shell command 'vc-dwim --commit'). For a pretest, start at version .90. After .99, use .990 (so that it sorts). The final pretest should be a release candidate. Set the version number to that of the actual release. Pick a date about a week - from now when you intend to make the release. Use M-x add-release-logs - to add the ChangeLog entries for that date to the tar file (but - do not commit the entries to the repository until the actual release). + from now when you intend to make the release. Use vc-dwim and + M-x add-release-logs as described above to add commit messages + that will appear in the tarball's automatically-generated ChangeLog + file as entries for that date. + Name the tar file as emacs-XX.Y-rc1.tar. If all goes well in the following week, you can simply rename the file and use it for the actual release. If you need another release candidate, remember @@ -67,8 +72,7 @@ General steps (for each step, check for possible errors): 5. Copy lisp/loaddefs.el to lisp/ldefs-boot.el. Commit etc/AUTHORS, lisp/ldefs-boot.el, and the files changed - by M-x set-version. For a release, also commit the ChangeLog - files in all directories. + by M-x set-version. If someone else made a commit between step 1 and now, you need to repeat from step 4 onwards. (You can commit the files diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 9e2b10dc4c..e63422b0d5 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib @@ -31,7 +31,7 @@ GNULIB_MODULES=' crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync - getloadavg getopt-gnu gettime gettimeofday + getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat diff --git a/admin/notes/repo b/admin/notes/repo index 4f9dc59eb0..f38fd2cc3a 100644 --- a/admin/notes/repo +++ b/admin/notes/repo @@ -10,10 +10,10 @@ instructions. * Install changes only on one branch, let them get merged elsewhere if needed. In particular, install bug-fixes only on the release branch (if there -is one) and let them get synced to the trunk; do not install them by -hand on the trunk as well. E.g. if there is an active "emacs-24" branch +is one) and let them get synced to the master; do not install them by +hand on the master as well. E.g. if there is an active "emacs-24" branch and you have a bug-fix appropriate for the next emacs-24.x release, -install it only on the emacs-24 branch, not on the trunk as well. +install it only on the emacs-24 branch, not on the master as well. Installing things manually into more than one branch makes merges more difficult. @@ -21,10 +21,10 @@ difficult. http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01124.html The exception is, if you know that the change will be difficult to -merge to the trunk (eg because the trunk code has changed a lot). -In that case, it's helpful if you can apply the change to both trunk +merge to the master (eg because the master code has changed a lot). +In that case, it's helpful if you can apply the change to both master and branch yourself (when committing the branch change, indicate -in the commit log that it should not be merged to the trunk, by +in the commit log that it should not be merged to the master, by including the phrase "Not to be merged to master", or any other phrase that matches "merge"). @@ -32,14 +32,14 @@ that matches "merge"). If your branch has only a single commit, or many different real commits, it is fine to do a merge. If your branch has only a very -small number of "real" commits, but several "merge from trunks", it is -preferred that you take your branch's diff, apply it to the trunk, and +small number of "real" commits, but several "merge from masters", it is +preferred that you take your branch's diff, apply it to the master, and commit directly, not merge. This keeps the history cleaner. In general, when working on some feature in a separate branch, it is -preferable not to merge from trunk until you are done with the +preferable not to merge from master until you are done with the feature. Unless you really need some change that was done on the -trunk while you were developing on the branch, you don't really need +master while you were developing on the branch, you don't really need those merges; just merge once, when you are done with the feature, and Bazaar will take care of the rest. Bazaar is much better in this than CVS, so interim merges are unnecessary. @@ -66,22 +66,14 @@ variable in admin/merge-gnulib before running it. If you remove a gnulib module, or if a gnulib module removes a file, then remove the corresponding files by hand. -* How to merge changes from emacs-24 to trunk +* How to merge changes from emacs-24 to master -[The section on git merge procedure has not yet been written] - -Inspect the change log entries (e.g. in case too many entries have been -included or whitespace between entries needs fixing). If someone made -multiple change log entries on different days in the branch, you may -wish to collapse them all to a single entry for that author in the -trunk (because in the trunk they all appear under the same date). -Obviously, if there are multiple changes to the same file by different -authors, don't break the logical ordering in doing this. +[The section on git merge procedure has not yet been written.] You may see conflicts in autoload md5sums in comments. Strictly speaking, the right thing to do is merge everything else, resolve the -conflict by choosing either the trunk or branch version, then run -`make -C lisp autoloads' to update the md5sums to the correct trunk +conflict by choosing either the master or branch version, then run +`make -C lisp autoloads' to update the md5sums to the correct master value before committing. * Re-adding a file that has been removed from the repository @@ -124,3 +116,21 @@ again. This is a semi-automated way to find the revision that introduced a bug. Browse `git help bisect' for technical instructions. + +* Maintaining ChangeLog history + +Older ChangeLog entries are kept in history files named ChangeLog.1, +ChangeLog.2, etc., and can be edited just as any other source files +can. Newer ChangeLog entries are stored in the repository as commit +messages, which cannot be edited directly. + +'make ChangeLog' copies newer ChangeLog entries into a file +'ChangeLog' that is intended to be put into the distribution tarball. +This ChangeLog file is not put into the repository. + +'make change-history' copies all newer ChangeLog entries into the +start of the newest ChangeLog history file. These ChangeLog entries +are thereafter considered to be old, so later uses of 'make ChangeLog' +and/or 'make change-history' will no longer copy the entries. To +alter ChangeLog history, run 'make change-history', then edit +the ChangeLog history files manually and commit your changes. diff --git a/build-aux/git-hooks/pre-commit b/build-aux/git-hooks/pre-commit index d050c40a2e..8bce1f5ade 100755 --- a/build-aux/git-hooks/pre-commit +++ b/build-aux/git-hooks/pre-commit @@ -34,13 +34,15 @@ if test "$nbadchars" -ne 0; then exit 1 fi -new_names=`$git_diff HEAD` || exit -case " -$new_names" in - */-* | *' -'-*) - echo "File name component begins with '-'." - exit 1;; -esac +for new_name in `$git_diff HEAD`; do + case $new_name in + -* | */-*) + echo "$new_name: File name component begins with '-'." + exit 1;; + ChangeLog | */ChangeLog) + echo "$new_name: Please use git commit messages, not ChangeLog files." + exit 1;; + esac +done exec git diff-index --check --cached HEAD -- diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog new file mode 100755 index 0000000000..4fa4f29702 --- /dev/null +++ b/build-aux/gitlog-to-changelog @@ -0,0 +1,445 @@ +eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' + & eval 'exec perl -wS "$0" $argv:q' + if 0; +# Convert git log output to ChangeLog format. + +my $VERSION = '2015-03-21 01:01'; # UTC +# The definition above must lie within the first 8 lines in order +# for the Emacs time-stamp write hook (at end) to update it. +# If you change this file with Emacs, please let the write hook +# do its job. Otherwise, update this string manually. + +# Copyright (C) 2008-2015 Free Software Foundation, Inc. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Written by Jim Meyering + +use strict; +use warnings; +use Getopt::Long; +use POSIX qw(strftime); + +(my $ME = $0) =~ s|.*/||; + +# use File::Coda; # http://meyering.net/code/Coda/ +END { + defined fileno STDOUT or return; + close STDOUT and return; + warn "$ME: failed to close standard output: $!\n"; + $? ||= 1; +} + +sub usage ($) +{ + my ($exit_code) = @_; + my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); + if ($exit_code != 0) + { + print $STREAM "Try '$ME --help' for more information.\n"; + } + else + { + print $STREAM < ChangeLog + $ME -- -n 5 foo > last-5-commits-to-branch-foo + +SPECIAL SYNTAX: + +The following types of strings are interpreted specially when they appear +at the beginning of a log message line. They are not copied to the output. + + Copyright-paperwork-exempt: Yes + Append the "(tiny change)" notation to the usual "date name email" + ChangeLog header to mark a change that does not require a copyright + assignment. + Co-authored-by: Joe User + List the specified name and email address on a second + ChangeLog header, denoting a co-author. + Signed-off-by: Joe User + These lines are simply elided. + +In a FILE specified via --amend, comment lines (starting with "#") are ignored. +FILE must consist of pairs where SHA is a 40-byte SHA1 (alone on +a line) referring to a commit in the current project, and CODE refers to one +or more consecutive lines of Perl code. Pairs must be separated by one or +more blank line. + +Here is sample input for use with --amend=FILE, from coreutils: + +3a169f4c5d9159283548178668d2fae6fced3030 +# fix typo in title: +s/all tile types/all file types/ + +1379ed974f1fa39b12e2ffab18b3f7a607082202 +# Due to a bug in vc-dwim, I mis-attributed a patch by Paul to myself. +# Change the author to be Paul. Note the escaped "@": +s,Jim .*>,Paul Eggert , + +EOF + } + exit $exit_code; +} + +# If the string $S is a well-behaved file name, simply return it. +# If it contains white space, quotes, etc., quote it, and return the new string. +sub shell_quote($) +{ + my ($s) = @_; + if ($s =~ m![^\w+/.,-]!) + { + # Convert each single quote to '\'' + $s =~ s/\'/\'\\\'\'/g; + # Then single quote the string. + $s = "'$s'"; + } + return $s; +} + +sub quoted_cmd(@) +{ + return join (' ', map {shell_quote $_} @_); +} + +# Parse file F. +# Comment lines (starting with "#") are ignored. +# F must consist of pairs where SHA is a 40-byte SHA1 +# (alone on a line) referring to a commit in the current project, and +# CODE refers to one or more consecutive lines of Perl code. +# Pairs must be separated by one or more blank line. +sub parse_amend_file($) +{ + my ($f) = @_; + + open F, '<', $f + or die "$ME: $f: failed to open for reading: $!\n"; + + my $fail; + my $h = {}; + my $in_code = 0; + my $sha; + while (defined (my $line = )) + { + $line =~ /^\#/ + and next; + chomp $line; + $line eq '' + and $in_code = 0, next; + + if (!$in_code) + { + $line =~ /^([0-9a-fA-F]{40})$/ + or (warn "$ME: $f:$.: invalid line; expected an SHA1\n"), + $fail = 1, next; + $sha = lc $1; + $in_code = 1; + exists $h->{$sha} + and (warn "$ME: $f:$.: duplicate SHA1\n"), + $fail = 1, next; + } + else + { + $h->{$sha} ||= ''; + $h->{$sha} .= "$line\n"; + } + } + close F; + + $fail + and exit 1; + + return $h; +} + +# git_dir_option $SRCDIR +# +# From $SRCDIR, the --git-dir option to pass to git (none if $SRCDIR +# is undef). Return as a list (0 or 1 element). +sub git_dir_option($) +{ + my ($srcdir) = @_; + my @res = (); + if (defined $srcdir) + { + my $qdir = shell_quote $srcdir; + my $cmd = "cd $qdir && git rev-parse --show-toplevel"; + my $qcmd = shell_quote $cmd; + my $git_dir = qx($cmd); + defined $git_dir + or die "$ME: cannot run $qcmd: $!\n"; + $? == 0 + or die "$ME: $qcmd had unexpected exit code or signal ($?)\n"; + chomp $git_dir; + push @res, "--git-dir=$git_dir/.git"; + } + @res; +} + +{ + my $since_date; + my $until_date; + my $format_string = '%s%n%b%n'; + my $amend_file; + my $append_dot = 0; + my $cluster = 1; + my $ignore_matching; + my $strip_tab = 0; + my $strip_cherry_pick = 0; + my $srcdir; + GetOptions + ( + help => sub { usage 0 }, + version => sub { print "$ME version $VERSION\n"; exit }, + 'since=s' => \$since_date, + 'until=s' => \$until_date, + 'format=s' => \$format_string, + 'amend=s' => \$amend_file, + 'append-dot' => \$append_dot, + 'cluster!' => \$cluster, + 'ignore-matching=s' => \$ignore_matching, + 'strip-tab' => \$strip_tab, + 'strip-cherry-pick' => \$strip_cherry_pick, + 'srcdir=s' => \$srcdir, + ) or usage 1; + + defined $since_date + and unshift @ARGV, "--since=$since_date"; + defined $until_date + and unshift @ARGV, "--until=$until_date"; + + # This is a hash that maps an SHA1 to perl code (i.e., s/old/new/) + # that makes a correction in the log or attribution of that commit. + my $amend_code = defined $amend_file ? parse_amend_file $amend_file : {}; + + my @cmd = ('git', + git_dir_option $srcdir, + qw(log --log-size), + '--pretty=format:%H:%ct %an <%ae>%n%n'.$format_string, @ARGV); + open PIPE, '-|', @cmd + or die ("$ME: failed to run '". quoted_cmd (@cmd) ."': $!\n" + . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); + + my $prev_multi_paragraph; + my $prev_date_line = ''; + my @prev_coauthors = (); + while (1) + { + defined (my $in = ) + or last; + $in =~ /^log size (\d+)$/ + or die "$ME:$.: Invalid line (expected log size):\n$in"; + my $log_nbytes = $1; + + my $log; + my $n_read = read PIPE, $log, $log_nbytes; + $n_read == $log_nbytes + or die "$ME:$.: unexpected EOF\n"; + + # Extract leading hash. + my ($sha, $rest) = split ':', $log, 2; + defined $sha + or die "$ME:$.: malformed log entry\n"; + $sha =~ /^[0-9a-fA-F]{40}$/ + or die "$ME:$.: invalid SHA1: $sha\n"; + + # If this commit's log requires any transformation, do it now. + my $code = $amend_code->{$sha}; + if (defined $code) + { + eval 'use Safe'; + my $s = new Safe; + # Put the unpreprocessed entry into "$_". + $_ = $rest; + + # Let $code operate on it, safely. + my $r = $s->reval("$code") + or die "$ME:$.:$sha: failed to eval \"$code\":\n$@\n"; + + # Note that we've used this entry. + delete $amend_code->{$sha}; + + # Update $rest upon success. + $rest = $_; + } + + # Remove lines inserted by "git cherry-pick". + if ($strip_cherry_pick) + { + $rest =~ s/^\s*Conflicts:\n.*//sm; + $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m; + } + + my @line = split /\s*\n/, $rest; + my $author_line = shift @line; + defined $author_line + or die "$ME:$.: unexpected EOF\n"; + $author_line =~ /^(\d+) (.*>)$/ + or die "$ME:$.: Invalid line " + . "(expected date/author/email):\n$author_line\n"; + + # Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog + # `(tiny change)' annotation. + my $tiny = (grep (/^Copyright-paperwork-exempt:\s+[Yy]es$/, @line) + ? ' (tiny change)' : ''); + + my $date_line = sprintf "%s %s$tiny\n", + strftime ("%F", localtime ($1)), $2; + + my @coauthors = grep /^Co-authored-by:.*$/, @line; + # Omit meta-data lines we've already interpreted. + @line = grep !/^(?:Signed-off-by:[ ].*>$ + |Co-authored-by:[ ] + |Copyright-paperwork-exempt:[ ] + )/x, @line; + + # Remove leading and trailing blank lines. + if (@line) + { + while ($line[0] =~ /^\s*$/) { shift @line; } + while ($line[$#line] =~ /^\s*$/) { pop @line; } + } + + # Ignore commits that match the --ignore-matching pattern, if specified. + if (! (defined $ignore_matching + && @line && $line[0] =~ /$ignore_matching/)) + { + # Record whether there are two or more paragraphs. + my $multi_paragraph = grep /^\s*$/, @line; + + # Format 'Co-authored-by: A U Thor ' lines in + # standard multi-author ChangeLog format. + for (@coauthors) + { + s/^Co-authored-by:\s*/\t /; + s/\s*/ + or warn "$ME: warning: missing email address for " + . substr ($_, 5) . "\n"; + } + + # If clustering of commit messages has been disabled, if this header + # would be different from the previous date/name/etc. header, + # or if this or the previous entry consists of two or more paragraphs, + # then print the header. + if ( ! $cluster + || $date_line ne $prev_date_line + || "@coauthors" ne "@prev_coauthors" + || $multi_paragraph + || $prev_multi_paragraph) + { + $prev_date_line eq '' + or print "\n"; + print $date_line; + @coauthors + and print join ("\n", @coauthors), "\n"; + } + $prev_date_line = $date_line; + @prev_coauthors = @coauthors; + $prev_multi_paragraph = $multi_paragraph; + + # If there were any lines + if (@line == 0) + { + warn "$ME: warning: empty commit message:\n $date_line\n"; + } + else + { + if ($append_dot) + { + # If the first line of the message has enough room, then + if (length $line[0] < 72) + { + # append a dot if there is no other punctuation or blank + # at the end. + $line[0] =~ /[[:punct:]\s]$/ + or $line[0] .= '.'; + } + } + + # Remove one additional leading TAB from each line. + $strip_tab + and map { s/^\t// } @line; + + # Prefix each non-empty line with a TAB. + @line = map { length $_ ? "\t$_" : '' } @line; + + print "\n", join ("\n", @line), "\n"; + } + } + + defined ($in = ) + or last; + $in ne "\n" + and die "$ME:$.: unexpected line:\n$in"; + } + + close PIPE + or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n"; + # FIXME-someday: include $PROCESS_STATUS in the diagnostic + + # Complain about any unused entry in the --amend=F specified file. + my $fail = 0; + foreach my $sha (keys %$amend_code) + { + warn "$ME:$amend_file: unused entry: $sha\n"; + $fail = 1; + } + + exit $fail; +} + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "my $VERSION = '" +# time-stamp-format: "%:y-%02m-%02d %02H:%02M" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "'; # UTC" +# End: diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog new file mode 100755 index 0000000000..553607ae29 --- /dev/null +++ b/build-aux/gitlog-to-emacslog @@ -0,0 +1,69 @@ +#!/bin/sh + +# Convert git log output to ChangeLog format for GNU Emacs. + +# Copyright (C) 2014-2015 Free Software Foundation, Inc. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Written by Paul Eggert + +LC_ALL=C +export LC_ALL + +gen_origin=${1?} + +# If this is not a Git repository, just generate an empty ChangeLog. +test -d ${srcprefix}.git || { + # Remove any old ChangeLog, in case it is a vc-dwim symlink. + rm -f "${distprefix}ChangeLog" || exit + >"${distprefix}ChangeLog" + exit +} + +# Use Gnulib's packaged ChangeLog generator. +${srcprefix}build-aux/gitlog-to-changelog --ignore-matching='^; ' \ + "$gen_origin.." >"${distprefix}ChangeLog.tmp" || exit + +if test -s "${distprefix}ChangeLog.tmp"; then + + # Find the years covered by the generated ChangeLog, so that + # a proper copyright notice can be output. + years=` + sed -n 's/^\([0-9][0-9]*\).*/\1/p' "${distprefix}ChangeLog.tmp" | + sort -nu + ` + start_year= + end_year= + for year in $years; do + : ${start_year:=$year} + end_year=$year + done + + if test "$start_year" = "$end_year"; then + year_range=$start_year + else + year_range=$start_year-$end_year + fi + + # Append a proper copyright notice. + sed "1d + s/\\(Copyright[ (C)]*\\)[0-9]*-[0-9]*/\\1$year_range/ + s/^# // + /http:/q + " >"${distprefix}ChangeLog.tmp" || exit +fi + +# Install the generated ChangeLog. +mv -f "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog" diff --git a/lib/gnulib.mk b/lib/gnulib.mk index 7703cbfe28..273b018bdb 100644 --- a/lib/gnulib.mk +++ b/lib/gnulib.mk @@ -21,7 +21,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=stdarg --avoid=stdbool --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt binary-io byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stddef stdio stpcpy strftime strtoimax strtoumax symlink sys_stat sys_time time time_r timer-time timespec-add timespec-sub unsetenv update-copyright utimens vla warnings +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=stdarg --avoid=stdbool --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt binary-io byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stddef stdio stpcpy strftime strtoimax strtoumax symlink sys_stat sys_time time time_r timer-time timespec-add timespec-sub unsetenv update-copyright utimens vla warnings MOSTLYCLEANFILES += core *.stackdump @@ -539,6 +539,13 @@ EXTRA_libgnu_a_SOURCES += gettimeofday.c ## end gnulib module gettimeofday +## begin gnulib module gitlog-to-changelog + + +EXTRA_DIST += $(top_srcdir)/build-aux/gitlog-to-changelog + +## end gnulib module gitlog-to-changelog + ## begin gnulib module group-member if gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1 diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 452a672ae3..da5d85eaf2 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el @@ -39,7 +39,7 @@ ;;; History: -;; 0.07 onwards: see lisp/ChangeLog +;; 0.07 onwards: see commit logs and ../ChangeLog*. ;; 0.06: (2004-10-06) ;; - Bugfixes regarding icalendar-import-format-*. diff --git a/lisp/gnus/deuglify.el b/lisp/gnus/deuglify.el index 00d1ee999d..331b99b865 100644 --- a/lisp/gnus/deuglify.el +++ b/lisp/gnus/deuglify.el @@ -188,7 +188,7 @@ ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -;; See ChangeLog for other changes. +;; See commit log for other changes. ;; ;; Revision 1.5 2002/01/27 14:39:17 rscholz ;; * New variable `gnus-outlook-deuglify-no-wrap-chars' to inhibit diff --git a/lisp/obsolete/gulp.el b/lisp/obsolete/gulp.el index 5ff99f2df5..f0223fa2e1 100644 --- a/lisp/obsolete/gulp.el +++ b/lisp/obsolete/gulp.el @@ -70,7 +70,7 @@ please send them to me ASAP. Please don't send the whole file. Instead, please send a patch made with `diff -c' that shows precisely the changes you would like me to install. Also please include itemized change log entries for your changes; -please use lisp/ChangeLog as a guide for the style and for what kinds +please use lisp/ChangeLog* as a guide for the style and for what kinds of information to include. Thanks.") diff --git a/lwlib/README b/lwlib/README index 25c72eba83..ed7583d8fe 100644 --- a/lwlib/README +++ b/lwlib/README @@ -4,4 +4,4 @@ library was written by Lucid, Inc and released under the terms of the GPL version 1 (or later). It is not considered part of GNU Emacs. This version of the library differs from the original as described in -the ChangeLog file. +the ChangeLog.1 file. diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 949dd0e12f..f32a4ddca5 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 @@ -85,6 +85,7 @@ AC_DEFUN([gl_EARLY], # Code from module gettext-h: # Code from module gettime: # Code from module gettimeofday: + # Code from module gitlog-to-changelog: # Code from module group-member: # Code from module include_next: # Code from module intprops: @@ -810,6 +811,7 @@ AC_DEFUN([gltests_LIBSOURCES], [ # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ + build-aux/gitlog-to-changelog build-aux/snippet/_Noreturn.h build-aux/snippet/arg-nonnull.h build-aux/snippet/c++defs.h diff --git a/make-dist b/make-dist index 4e0559413d..1c7ce59e16 100755 --- a/make-dist +++ b/make-dist @@ -277,13 +277,20 @@ fi echo "Creating top directory: \`${tempdir}'" mkdir ${tempdir} +if test -d .git; then + echo "Making top-level ChangeLog" + make distprefix=${tempdir}/ ChangeLog +else + echo "No repository, so omitting top-level ChangeLog" +fi + ### We copy in the top-level files before creating the subdirectories in ### hopes that this will make the top-level files appear first in the ### tar file; this means that people can start reading the INSTALL and ### README while the rest of the tar file is still unpacking. Whoopee. echo "Making links to top-level files" ln INSTALL README BUGS ${tempdir} -ln ChangeLog Makefile.in autogen.sh configure configure.ac ${tempdir} +ln ChangeLog.*[0-9] Makefile.in autogen.sh configure configure.ac ${tempdir} ln config.bat make-dist .dir-locals.el ${tempdir} ln aclocal.m4 ${tempdir} @@ -333,7 +340,7 @@ done echo "Making links to \`leim' and its subdirectories" (cd leim ln makefile.w32-in ../${tempdir}/leim - ln ChangeLog README ../${tempdir}/leim + ln ChangeLog.*[0-9] README ../${tempdir}/leim ln CXTERM-DIC/README CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC ln MISC-DIC/README MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC @@ -344,6 +351,7 @@ echo "Making links to \`leim' and its subdirectories" echo "Making links to \`build-aux'" (cd build-aux ln compile config.guess config.sub depcomp msys-to-w32 ../${tempdir}/build-aux + ln gitlog-to-changelog gitlog-to-emacslog ../${tempdir}/build-aux ln install-sh missing move-if-change ../${tempdir}/build-aux ln update-copyright update-subdirs ../${tempdir}/build-aux ln dir_top make-info-dir ../${tempdir}/build-aux) @@ -360,7 +368,7 @@ echo "Making links to \`src'" ln [a-zA-Z]*.[chm] ../${tempdir}/src ln [a-zA-Z]*.in ../${tempdir}/src ln [a-zA-Z]*.mk ../${tempdir}/src - ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src + ln README ChangeLog.*[0-9] ../${tempdir}/src ln makefile.w32-in ../${tempdir}/src ln .gdbinit .dbxinit ../${tempdir}/src cd ../${tempdir}/src @@ -382,7 +390,7 @@ echo "Making links to \`lib'" echo "Making links to \`lib-src'" (cd lib-src ln [a-zA-Z]*.[ch] ../${tempdir}/lib-src - ln ChangeLog Makefile.in README ../${tempdir}/lib-src + ln ChangeLog.*[0-9] Makefile.in README ../${tempdir}/lib-src ln rcs2log ../${tempdir}/lib-src ln makefile.w32-in ../${tempdir}/lib-src ln update-game-score.exe.manifest ../${tempdir}/lib-src) @@ -398,7 +406,7 @@ echo "Making links to \`nt'" ln nmake.defs gmake.defs subdirs.el [a-z]*.bat [a-z]*.[ch] ../${tempdir}/nt ln *.in gnulib.mk ../${tempdir}/nt ln mingw-cfg.site epaths.nt INSTALL.OLD ../${tempdir}/nt - ln ChangeLog INSTALL README README.W32 makefile.w32-in ../${tempdir}/nt) + ln ChangeLog.*[0-9] INSTALL README README.W32 makefile.w32-in ../${tempdir}/nt) echo "Making links to \`nt/inc' and its subdirectories" for f in `find nt/inc -type f -name '[a-z]*.h'`; do @@ -412,13 +420,13 @@ echo "Making links to \`nt/icons'" echo "Making links to \`msdos'" (cd msdos - ln ChangeLog INSTALL README emacs.ico emacs.pif ../${tempdir}/msdos + ln ChangeLog.*[0-9] INSTALL README emacs.ico emacs.pif ../${tempdir}/msdos ln depfiles.bat inttypes.h ../${tempdir}/msdos ln mainmake.v2 sed*.inp ../${tempdir}/msdos) echo "Making links to \`nextstep'" (cd nextstep - ln ChangeLog README INSTALL Makefile.in ../${tempdir}/nextstep) + ln ChangeLog.*[0-9] README INSTALL Makefile.in ../${tempdir}/nextstep) echo "Making links to \`nextstep/templates'" (cd nextstep/templates @@ -439,12 +447,12 @@ echo "Making links to \`nextstep/GNUstep/Emacs.base/Resources'" echo "Making links to \`oldXMenu'" (cd oldXMenu ln *.[ch] *.in *.mk ../${tempdir}/oldXMenu - ln README ChangeLog ../${tempdir}/oldXMenu) + ln README ChangeLog.*[0-9] ../${tempdir}/oldXMenu) echo "Making links to \`lwlib'" (cd lwlib ln *.[ch] *.in *.mk ../${tempdir}/lwlib - ln README ChangeLog ../${tempdir}/lwlib) + ln README ChangeLog.*[0-9] ../${tempdir}/lwlib) ## It is important to distribute admin/ because it contains sources ## for generated lisp/international/uni-*.el files. @@ -484,27 +492,29 @@ ln `find info -type f -print` ${tempdir}/info echo "Making links to \`doc/emacs'" (cd doc/emacs - ln *.texi *.in makefile.w32-in ChangeLog* ../../${tempdir}/doc/emacs) + ln *.texi *.in makefile.w32-in ChangeLog.*[0-9] ../../${tempdir}/doc/emacs) echo "Making links to \`doc/misc'" (cd doc/misc - ln *.texi *.tex *.in makefile.w32-in gnus-news.el ChangeLog* ../../${tempdir}/doc/misc) + ln *.texi *.tex *.in makefile.w32-in gnus-news.el ChangeLog.*[0-9] \ + ../../${tempdir}/doc/misc) echo "Making links to \`doc/lispref'" (cd doc/lispref - ln *.texi *.in makefile.w32-in README ChangeLog* ../../${tempdir}/doc/lispref + ln *.texi *.in makefile.w32-in README ChangeLog.*[0-9] \ + ../../${tempdir}/doc/lispref ln spellfile ../../${tempdir}/doc/lispref ln two-volume.make two-volume-cross-refs.txt ../../${tempdir}/doc/lispref) echo "Making links to \`doc/lispintro'" (cd doc/lispintro ln *.texi *.in makefile.w32-in *.eps *.pdf ../../${tempdir}/doc/lispintro - ln README ChangeLog* ../../${tempdir}/doc/lispintro + ln README ChangeLog.*[0-9] ../../${tempdir}/doc/lispintro cd ../../${tempdir}/doc/lispintro) echo "Making links to \`doc/man'" (cd doc/man - ln ChangeLog* *.1 *.in ../../${tempdir}/doc/man + ln *.*[0-9] *.in ../../${tempdir}/doc/man cd ../../${tempdir}/doc/man rm -f emacs.1) -- cgit v1.2.3 From b5919771aea2d43c64be381b7d7b395eeb1191bd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 14 Apr 2015 00:58:07 -0700 Subject: Assume C89 offsetof in xterm.c, xlwmenu.c * lwlib/xlwmenu.c (offset): * src/xterm.c (cvt_string_to_pixel_args): Use offsetof, not XtOffset. --- lwlib/xlwmenu.c | 2 +- src/xterm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lwlib') diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 9317dea02b..61f175b3c2 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -105,7 +105,7 @@ xlwMenuTranslations [] = /* FIXME: F10 should enter the menu, the first one in the menu-bar. */ -#define offset(field) XtOffset(XlwMenuWidget, field) +#define offset(field) offsetof (XlwMenuRec, field) static XtResource xlwMenuResources[] = { diff --git a/src/xterm.c b/src/xterm.c index e904343387..48b250b81a 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1378,9 +1378,9 @@ x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap static XtConvertArgRec cvt_string_to_pixel_args[] = { - {XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.screen), + {XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.screen), sizeof (Screen *)}, - {XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.colormap), + {XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.colormap), sizeof (Colormap)} }; -- cgit v1.2.3