1. 01 Aug, 2012 1 commit
  2. 31 Jul, 2012 1 commit
    • Dmitry Antipov's avatar
      Miscellaneous fixes for non-default X toolkits. · c09bfb2f
      Dmitry Antipov authored
      * configure.ac (MOTIF): Check for /usr/include/openmotif
      and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif.
      * lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable.
      * src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings.
      * src/xterm.c (x_frame_of_widget): Remove redundant prototype.
      Move under #ifdef USE_LUCID.
      (x_create_toolkit_scroll_bar): Adjust scroll_bar_name
      definition and usage to avoid warnings.
  3. 14 Jul, 2012 1 commit
  4. 06 Jul, 2012 1 commit
  5. 26 Jun, 2012 1 commit
  6. 25 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * configure.in (AC_CHECK_FUNCS): Detect library functions · 3511c784
      Dmitry Antipov authored
      strcasecmp and strncasecmp.
      * lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to
      library functions strcasecmp and strncasecmp if available.
      * lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which
      may be defined to library function strcasecmp if available.
      * src/dispextern.c (xstrcasecmp): Define to library function
      strcasecmp if available.
      * src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
  7. 24 Jun, 2012 1 commit
  8. 01 Jun, 2012 1 commit
  9. 31 May, 2012 1 commit
    • Paul Eggert's avatar
      Remove obsolete '#define static' cruft. · ba93a187
      Paul Eggert authored
      * etc/PROBLEMS: Remove obsolete '#define static' cruft.
      * lwlib/xlwmenu.c [emacs]: Include "bitmaps/gray.xbm".
      (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]:
      Remove; all uses replaced with definiens.
      * src/s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
      This #undef was "temporary" in 2000; it is no longer needed
      now that '#define static' has gone away.
      * src/xfns.c, src/xterm.h (gray_bitmap_width, gray_bitmap_height)
      (gray_bitmap_bits): Remove; no longer needed.
      All uses replaced with definiens.
      * src/xterm.c: Include "bitmaps/gray.xbm".
  10. 11 Apr, 2012 1 commit
    • Glenn Morris's avatar
      Repurpose C_SWITCH_X_SYSTEM as GNUSTEP_CFLAGS · 2f097256
      Glenn Morris authored
      This is the only thing left that uses it.
      * configure.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
      * src/Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
      * lwlib/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
      * oldXMenu/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
      * msdos/sedlibmk.inp, msdos/sed1v2.inp:
  11. 09 Apr, 2012 1 commit
    • Paul Eggert's avatar
      configure: new option --enable-gcc-warnings · b8df54ff
      Paul Eggert authored
      I have been using this change for many months in my private copy
      of Emacs, and have used it to find several bugs.  It's mature
      enough to publish now.
      * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings.
      * configure.in: Support --enable-gcc-warnings, in the style of
      other GNU packages such as coreutils.
      (C_WARNINGS_SWITCH): Remove, replacing with...
      (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable.
      (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
      when including system files with GCC.
      * etc/NEWS: Mention --enable-gcc-warnings.
      * lib/Makefile.am (AM_CFLAGS): New macro.
      * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
      * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (BASE_CFLAGS): Use new macros rather than old.
      * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
      * src/regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
      -Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
      -Wunused-result, -Wunused-variable.  This should go away once
      the Emacs and Gnulib regex code is merged.
      (xmalloc, xrealloc): Now static.
  12. 19 Jan, 2012 1 commit
  13. 11 Jan, 2012 1 commit
  14. 05 Jan, 2012 1 commit
  15. 13 Oct, 2011 1 commit
  16. 27 Jun, 2011 1 commit
  17. 06 Jun, 2011 1 commit
  18. 16 Apr, 2011 7 commits
  19. 06 Apr, 2011 1 commit
  20. 07 Mar, 2011 1 commit
  21. 01 Mar, 2011 1 commit
  22. 14 Feb, 2011 1 commit
    • Jan Djärv's avatar
      Use *font for Xft font names for Lucid menus and dialogs. · 3928f2b6
      Jan Djärv authored
      * doc/emacs/xresources.texi (X Resources): Remove *faceName and replace it with
      *font for Lucid.
      * lwlib/lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts.  Try
      XLoadQueryFont first and then Xft fonts.
      * lwlib/xlwmenu.c (xlwmenu_default_font): Remove, does not work for
      (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
      (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
      (fontname_changed): Renamed from facename_changed.
      (XlwMenuSetValues): Use facename_changed.
      * lwlib/xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace.
      * lwlib/xlwmenuP.h (_XlwMenu_part): Remove faceName.  Add fontName.
      * src/xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
      (apply_systemfont_to_menu): Set resources *menubar*font and
      *popup*font.  Remove defflt.
      (set_frame_menubar, create_and_show_popup_menu): Call
      apply_systemfont_to_menu before lw_create_widget.
      * src/xrdb.c (x_load_resources): For LUCID and XFT, don't put a
      resource that specifies helvetica for menus and dialogs.
  23. 13 Feb, 2011 1 commit
    • Glenn Morris's avatar
      lwlib trivia. · c9a6cefc
      Glenn Morris authored
      * lwlib/lwlib-utils.c (index, rindex): Don't undef (neither used in lwlib/,
      nor set in config.h).
  24. 11 Feb, 2011 1 commit
    • Glenn Morris's avatar
      lwlib/Makefile.in misc cleanup. · 8f45ebb8
      Glenn Morris authored
      * lwlib/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.
  25. 10 Feb, 2011 1 commit
    • Glenn Morris's avatar
      lwlib/ trivia. · 67f02b82
      Glenn Morris authored
      * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c, xlwmenu.c:
      Standardize on <> for includes from the ../src directory.
  26. 09 Feb, 2011 1 commit
  27. 31 Jan, 2011 1 commit
    • Jan D's avatar
      Use xmalloc instead of malloc. · 3370edca
      Jan D authored
      * 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.
  28. 25 Jan, 2011 1 commit
  29. 23 Jan, 2011 1 commit
  30. 15 Jan, 2011 1 commit
  31. 02 Jan, 2011 1 commit
  32. 26 Sep, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const for some pointer arguments. · d6dcbe70
      Dan Nicolaescu authored
      * lwlib/lwlib.h (my_strcasecmp, safe_strcmp, name_to_widget)
      (find_in_table, dialog_spec_p, lw_separator_p):
      * lwlib/lwlib.c (my_strcasecmp, safe_strcmp, name_to_widget)
      (find_in_table, dialog_spec_p, lw_separator_p): Use const.
  33. 20 Sep, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const for constant arguments. · a953c1e3
      Dan Nicolaescu authored
      * lwlib/lwlib.h (lw_register_widget, lw_create_widget):
      * lwlib/lwlib.c (allocate_widget_info, lw_register_widget)
      (lw_create_widget, separator_table): Use const.
  34. 29 Jul, 2010 1 commit