1. 13 Mar, 2011 1 commit
  2. 08 Mar, 2011 1 commit
    • Jan D's avatar
      Updates for compiling with Gtk+ 3.0 (--with-x-toolkit=gtk3). · 0afb4571
      Jan D authored
      * configure.in: Require 3.0 for --with-gtk3.  Add HAVE_GTK3.
      
      * doc/emacs/xresources.texi (GTK resources): ~/.emacs.d/gtkrc does not work
      for Gtk+ 3.
      
      * src/gtkutil.c: Include gtkx.h if HAVE_GTK3.  If ! HAVE_GTK3, define
      gdk_window_get_screen, gdk_window_get_geometry,
      gdk_x11_window_lookup_for_display and GDK_KEY_g.
      (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
      (xg_get_pixbuf_from_pixmap): New function.
      (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
      to Pixmap, take frame as parameter, remove GdkColormap parameter.
      Call xg_get_pixbuf_from_pixmap instead of
      gdk_pixbuf_get_from_drawable.
      (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
      xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
      (xg_check_special_colors): Use GtkStyleContext and its functions
      for HAVE_GTK3.
      (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
      (xg_prepare_tooltip, create_dialog, menubar_map_cb)
      (xg_update_frame_menubar, xg_tool_bar_detach_callback)
      (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
      gtk_widget_get_preferred_size.
      (xg_frame_resized): gdk_window_get_geometry only takes 5
      parameters.
      (xg_win_to_widget, xg_event_is_for_menubar): Call
      gdk_x11_window_lookup_for_display.
      (xg_set_widget_bg): New function.
      (delete_cb): New function.
      (xg_create_frame_widgets): connect delete-event to delete_cb.
      Call xg_set_widget_bg.  Only set backgrund pixmap for ! HAVE_GTK3
      (xg_set_background_color): Call xg_set_widget_bg.
      (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
      (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
      Only call gtk_range_set_update_policy if ! HAVE_GTK3.
      (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
      if ! HAVE_GTK3.
      (update_frame_tool_bar): Call gtk_widget_hide.
      (xg_initialize): Use GDK_KEY_g.
      
      * src/xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
      
      * src/xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
      if ! HAVE_GTK3
      (x_session_initialize): Call gdk_x11_set_sm_client_id.
      
      * src/xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
      (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
      Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
      
      * src/xterm.h (DEFAULT_GDK_DISPLAY): New define.
      (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
      for ! HAVE_GTK3.
      (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
      0afb4571
  3. 07 Mar, 2011 1 commit
  4. 06 Mar, 2011 1 commit
  5. 01 Mar, 2011 1 commit
  6. 26 Feb, 2011 2 commits
  7. 25 Feb, 2011 3 commits
  8. 24 Feb, 2011 1 commit
  9. 23 Feb, 2011 2 commits
  10. 22 Feb, 2011 2 commits
    • Paul Eggert's avatar
      [ChangeLog] · ae0d7250
      Paul Eggert authored
      Work around some portability problems with symlinks.
      * Makefile.in (GNULIB_MODULES): Add lstat, readlink, symlink.
      * configure.in (lstat, HAVE_LSTAT): Remove special hack.
      * lib/lstat.c, lib/readlink.c, lib/stat.c, lib/symlink.c:
      * m4/dos.m4, m4/lstat.m4, m4/readlink.m4, m4/stat.m4, m4/symlink.m4:
      New files, automatically generated from gnulib.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk:
      * lib/stdlib.in.h, m4/gl-comp.m4, m4/stdlib_h.m4: Regenerate.
      
      2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>
      [src/ChangeLog]
      Work around some portability problems with symlinks.
      * fileio.c (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
      Simplify the code by assuming that the readlink and symlink calls
      exist, even if they always fail on this host.
      (Ffile_readable_p): Likewise, for fifos.
      * config.in: Regenerate.
      ae0d7250
    • Paul Eggert's avatar
      [ChangeLog] · f68c809d
      Paul Eggert authored
      Assume S_ISLNK etc. work, since gnulib supports this.
      * Makefile.in (GNULIB_MODULES): Add sys_stat.
      * configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
      Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
      * configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
      [lib-src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * etags.c (S_ISREG): Remove.
      [src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * config.in: Regenerate.
      * dired.c (lstat): Remove.
      (file_name_completion): Assume S_ISDIR works.
      (file_name_completion_stat): Assume S_ISLNK works.
      Do not bother calling stat unless lstat says it's a symlink.
      * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
      (Fcopy_file): Assume S_ISREG and S_ISLNK work.
      (check_writable, Ffile_writable_p, Fset_file_times):
      Assume S_ISDIR works.
      (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
      fifos exist.
      (Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
      * filelock.c (S_ISLNK): Remove.
      * lread.c (openp): Assume S_ISDIR works.
      * xrdb.c (S_ISDIR): Remove.
      f68c809d
  11. 21 Feb, 2011 3 commits
    • Paul Eggert's avatar
      [ChangeLog] · ba01e9d7
      Paul Eggert authored
      * lib/min-max.h: New file, for "min" and "max".
      [lib-src/ChangeLog]
      New file "lib/min-max.h".
      * ebrowse.c (min, max): Define them by including <min-max.h>
      instead of defining it ourselves.
      * pop.c (min): Likewise.
      ba01e9d7
    • Christoph Scholtes's avatar
      Add stdint.h for MS-Windows. · 9f8370e6
      Christoph Scholtes authored
       nt/inc/stdint.h: New file, to support compilation with tool chains
       that do not have stdint.h (e.g. MSVC).
       lib/makefile.w32-in: ($(BLD)/md5.$(O)): Added dependency on
       $(EMACS_ROOT)/nt/inc/stdint.h.
      9f8370e6
    • Eli Zaretskii's avatar
      Adapt MS-Windows build to import of filemode.c from gnulib. · 25c51af3
      Eli Zaretskii authored
       nt/inc/sys/stat.h (S_ISUID, S_ISGID, S_ISVTX, S_IRGRP, S_IROTH)
       (S_IWGRP, S_IWOTH, S_IXGRP, S_IXOTH, S_ISSOCK, S_ISLNK, S_ISCTG)
       (S_ISDOOR, S_ISMPB, S_ISMPC, S_ISNWK, S_ISPORT, S_ISWHT)
       (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Define.
       (lstat): Define to stat.
       lib/makefile.w32-in ($(BLD)/filemode.$(O)): Move from
       src/makefile.w32-in and adapt.  Depend on stamp_BLD.
       (GNULIBOBJS): Add $(BLD)/filemode.$(O).
       src/makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
       lib/makefilw.w32-in.
       ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
       (GLOBAL_SOURCES): Remove filemode.c.
       (OBJ1): Remove $(BLD)/filemode.$(O).
       lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
       ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
       Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.
      25c51af3
  12. 20 Feb, 2011 4 commits
    • Eli Zaretskii's avatar
      Followup for 2011-02-20T18:50:26Z!eliz@gnu.org. · e1e6b4fb
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/md5.$(O)): Don't depend on
       $(EMACS_ROOT)/nt/inc/sys/stat.h.
      e1e6b4fb
    • Paul Eggert's avatar
    • Christoph Scholtes's avatar
      Fix the MS-Windows build due to import of md5 from gnulib. · 32159fc3
      Christoph Scholtes authored
       src/makefile.w32-in: Remove md5.$(O).
       ($(BLD)/md5.$(O)): Remove prerequisites, moved to
       lib/makefile.w32-in.
       ($(BLD)/fns.$(O)): Depend on $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
       lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from
       src/makefile.w32-in.
      32159fc3
    • Paul Eggert's avatar
      Import filemode module from gnulib. · 5fa4ac76
      Paul Eggert authored
      * .bzrignore: Add lib/sys/.
      * Makefile.in (GNULIB_MODULES): Add filemode.
      * lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
      * lib/filemode.c: Renamed from src/filemode.c and regenerated
      from gnulib.  This adds support for some more file types, e.g.,
      Cray DMF migrated files.
      * lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
      * lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
      * m4/sys_stat_h.m4: New files, generated from gnulib.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      Regenerate.
      
      2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>
      5fa4ac76
  13. 19 Feb, 2011 4 commits
    • Eli Zaretskii's avatar
      Fix generation of auto-dependency files in lib/. · 219463da
      Eli Zaretskii authored
       .bzrignore: Add lib/deps/.
       config.bat: Generate *.Po files in lib/deps.
       msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Fix editing of *-clean
       rules.
       msdos/depfiles.bat: New file.
      219463da
    • Eli Zaretskii's avatar
      Update .bzrignore for files produced by the MS-DOS build. · 152be435
      Eli Zaretskii authored
       .bzrignore: Ignore cxxdefs.h and lib/*.in-h files.
      152be435
    • Eli Zaretskii's avatar
      Initial version of fix for the MS-DOS build, not yet tested. · 9d9d12cd
      Eli Zaretskii authored
       config.bat: Configure in `lib'.
       msdos/sedlibmk.inp: New file.
       msdos/sedlibcf.inp: New file.
       msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty.
       (@true): Edit to "@rem".
       (move-if-change): Edit to "update".
       (echo): Edit to "djecho".
       (cd $(lib) && ...): Edit to "$(MAKE) -C ...".
       msdos/mainmake.v2 (version): Remove, no longer needed (config.in
       defines VERSION).
       (all): Add lib.
       (lib): New target and recipe.
       (lib-src): Depend on lib.
       (src): Depend on lib and lib-src.
       (clean, mostlyclean, distclean, maintainer-clean, extraclean)
       (bootstrap-clean): Recurse into lib.
       msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME ||
       BROKEN_MKTIME" stuff -- it's no longer in src/config.in.
       (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
       (HAVE__BOOL): Edit to 1.
       (VERSION, inline, restrict): Edit for DJGPP.
       src/s/msdos.h (strtold): Define to _strtold.
       admin/admin.el (set-version): Add msdos/sed2v2.inp.
      9d9d12cd
    • Paul Eggert's avatar
      Import simpler crypto/md5 module from gnulib, plus stdint module. · 5f90be1b
      Paul Eggert authored
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      * src/config.in: Regenerate.
      * lib/md5.c, lib/md5.h: Regenerate with simpler version, which
      assumes C99-style <stdint.h>, supplied by the stdint module.
      * lib/stdint.in.h, m4/longlong.m4, m4/stdint.m4: New files,
      generated from gnulib.
      * src/deps.mk (fns.o): Do not depend on md5.h, fixing a typo in
      the earlier patch.
      5f90be1b
  14. 18 Feb, 2011 2 commits
    • Paul Eggert's avatar
      Import crypto/md5 module from gnulib. · 942f733f
      Paul Eggert authored
      * Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
      * admin/notes/copyright: Remove src/md5.c and src/md5.h as
      special cases.
      * src/Makefile.in (base_obj): Remove md5.o, since this file
      is in lib now.
      * src/deps.mk (md5.o): Remove.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      Regenerate.
      * lib/md5.c: Regenerate.  This renames the file from src/md5.c,
      and adds some porting improvements from gnulib.
      * lib/md5.h: Regenerate, likwise; rename from src/md5.h.
      * m4/md5.m4: New file, from gnulib.
      
      2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
      942f733f
    • Paul Eggert's avatar
      Import IRIX 6.5 getloadavg fixes from gnulib. · 7d315eb6
      Paul Eggert authored
      * configure, lib/getloadavg.c, m4/getloadavg.m4: Regenerate.
      7d315eb6
  15. 16 Feb, 2011 2 commits
  16. 15 Feb, 2011 2 commits
  17. 13 Feb, 2011 1 commit
  18. 10 Feb, 2011 3 commits
  19. 09 Feb, 2011 2 commits
  20. 08 Feb, 2011 2 commits
    • Tom Tromey's avatar
      Make globals.h a generated header · 00b3c7ac
      Tom Tromey authored
      	* configure: Rebuild.
      	* configure.in (NS_OBJC_OBJ): New subst.
      lib-src
      	* make-docfile.c: Unconditionally include stdlib.h.
      	(generate_globals): New global.
      	(xrealloc): New function.
      	(main): Handle '-g'.  Call start_globals, write_globals.
      	(scan_file): Conditionally call put_filename.
      	(start_globals): New function.
      	(struct global): New.
      	(num_globals, globals): New globals.
      	(add_global, compare_globals, write_globals): New functions.
      	(scan_c_file): Update for "-g".
      	(scan_lisp_file): Fail if "-g".
      	(enum global_type): New.
      src
      	* Makefile.in (NS_OBJC_OBJ): New variable.
      	(base_obj): Rename from 'obj'.
      	(obj): New variable.
      	(globals.h, gl-stamp, $(obj)): New targets.
      	(GLOBAL_SOURCES): New variable.
      	* globals.h: Remove.
      	* nsselect.m (Vselection_alist): Define.  Reverts part of
      	2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
      	* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
      	variable.
      	* xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
      00b3c7ac
    • Paul Eggert's avatar
      Import getloadavg module from gnulib. · 79ab4b7f
      Paul Eggert authored
      79ab4b7f