1. 23 Sep, 2013 2 commits
    • Jan Djärv's avatar
      Suppress some unhelpful warnings when using clang. · 8762e524
      Jan Djärv authored
      * configure.ac: With clang, check for and use -Wno-switch,
      -Wno-tautological-constant-out-of-range-compare and -Wno-pointer-sign.
      
      * conf_post.h(assume): Use __builtin_unreachable for clang.
      
      * src/filelock.c (lock_file_1): Rearrange to remove compiler warning
      about excess arguments to snprintf.
      8762e524
    • Daniel Colascione's avatar
      Tell valgrind about conservative GC regions and suppress spurious · a84683fd
      Daniel Colascione authored
      warings.
      
      * alloc.c (USE_VALGRIND): New macro; on by default
      when ENABLE_CHECKING.
      (mark_maybe_object,mark_maybe_pointer)
      [USE_VALGRIND]: Mark conservatively-scanned regions valid for
      valgrind purposes.
      (valgrind_p) [USE_VALGRIND]: New variable.
      (init_alloc) [USE_VALGRIND]: Initialize valgrind_p.
      a84683fd
  2. 20 Sep, 2013 2 commits
  3. 19 Sep, 2013 2 commits
  4. 17 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      * configure.ac: Do not check for g_type_init because we · 19452b86
      Dmitry Antipov authored
      require glib >= 2.28 for GTK3, glib >= 2.10 for GTK2,
      glib >= 2.26 for GSettings and glib >= 2.7.0 for GConf, so
      suitable glib should provide g_type_init unconditionally.
      * src/image.c (fn_g_type_init) [WINDOWSNT]: Define and load
      only if Glib < 2.36.0.
      (fn_g_type_init) [!WINDOWSNT]: Define only if Glib < 2.36.0.
      * src/xsettings.c (init_gconf, init_gsettings): Do not check
      for g_type_init.
      19452b86
  5. 15 Sep, 2013 1 commit
    • Jan Djärv's avatar
      Port the font backend from the Mac port. · 3fa2054e
      Jan Djärv authored
      * configure.ac: Add check for OSX 10.5, required for macfont.o.
      
      * etc/NEWS: Mention the macfont backend.
      
      * src/Makefile.in (NS_OBJ, SOME_MACHINE_OBJECTS): Add macfont.o.
      
      * src/font.c (syms_of_font): Call syms_of_macfont.
      
      * src/font.h: Declare syms_of_macfont.
      
      * src/nsfns.m: Include macfont.h.
      (Fx_create_frame): Register macfont driver, make a better default font.
      (Fns_popup_font_panel): Get font from macfont driver, if used.
      
      * src/nsfont.m (ns_tmp_flags, ns_tmp_font): Remove.
      (nsfont_open): Set font driver type.
      Set font->ascent and font->descent.  Figure out font instead of
      ns_tmp_font, and flags instead of ns_tmp_flags.
      Fix indentation. Remove call to ns_draw_text_decoration,
      moved to nsterm.
      
      * src/nsterm.m: Include macfont.h.
      (ns_tmp_flags, ns_tmp_font): Remove.
      (ns_compute_glyph_string_overhangs): Check for driver Qns.
      (ns_draw_glyph_string): Use local variables instead of ns_tmp_flags,
      ns_tmp_font.  Call ns_draw_text_decoration here instead of nsfont.m.
      (changeFont:): Fix code style.  Check for font driver type when
      getiing font.
      
      * src/nsterm.h (FONT_DESCENT, FONT_ASCENT): Define to (f)->ascent and
      (f)->descent.
      3fa2054e
  6. 09 Sep, 2013 2 commits
  7. 08 Sep, 2013 2 commits
  8. 07 Sep, 2013 1 commit
    • Paul Eggert's avatar
      Port --without-x --enable-gcc-warnings to Fedora 19. · 4b73fc73
      Paul Eggert authored
      * configure.ac (WERROR_CFLAGS): Omit redundant use of
      -Wmissing-field-initializers, -Wswitch, -Wtype-limits,
      -Wunused-parameter.  If there is no window system, also omit
      -Wsuggest-attribute=const and -Wsuggest-attribute=noreturn; this
      is needed for Fedora 19.
      * src/gfilenotify.c (globals_of_gfilenotify):
      Call g_type_init only if using an older glib version that needs it.
      4b73fc73
  9. 05 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      Make --without-x compatible with --enable-gcc-warnings. · 257b3b03
      Dmitry Antipov authored
      * configure.ac: If both --without-x and --enable-gcc-warnings are
      specified, use -Wno-unused-variable, -Wno-unused-but-set-variable
      and -Wno-unused-but-set-parameter.
      * src/font.c (register_font_driver): Move check under HAVE_WINDOW_SYSTEM.
      * src/font.h (struct font_driver): Move draw, get_bitmap and free_bitmap
      members under HAVE_WINDOW_SYSTEM.
      * src/keyboard.c (make_lispy_focus_out): Likewise.
      (record_menu_key): Move under HAVE_MENUS.
      * src/xdisp.c (toplevel): Move hourglass_shown_p, hourglass_atimer and
      THIN_SPACE_WIDTH under HAVE_WINDOW_SYSTEM.
      (syms_of_xdisp): Adjust user.
      (window_box_edges): Define only if HAVE_WINDOW_SYSTEM.
      (start_hourglass, cancel_hourglass):
      * src/xfaces.c (toplevel): Likewise with PT_PER_INCH,
      clear_font_table_count, CLEAR_FONT_TABLE_COUNT
      and CLEAR_FONT_TABLE_NFONTS.
      (set_font_frame_param, clear_face_gcs, realize_non_ascii_face):
      Declare only if HAVE_WINDOW_SYSTEM.
      (lface_same_font_attributes_p, clear_face_gcs): Define only
      if HAVE_WINDOW_SYSTEM.
      257b3b03
  10. 04 Sep, 2013 1 commit
    • Paul Eggert's avatar
      Makefile improvements. · 224e313d
      Paul Eggert authored
      * Makefile.in (lib): Depend on am--refresh, to avoid a race.
      (src): Remove duplicate dependency on FRC.
      Invoke just one submake, not two.  Avoid the need for 'pwd'.
      * lwlib/Makefile.in (all): Put this first.  Don't use double-colon
      rules, as they are not portable according to POSIX.  Mark as phony.
      * oldXMenu/Makefile.in (all, tags): Don't use double-colon rules, as they
      are not portable according to POSIX.  Mark as phony.
      * src/Makefile.in (config.status): Don't use double-colon rules, as
      they are not portable according to POSIX.  Fix shell typo with `;
      I guess this rule has never been tested?
      (VCSWITNESS): New macro, to override any environment var.
      224e313d
  11. 02 Sep, 2013 1 commit
  12. 31 Aug, 2013 3 commits
  13. 28 Aug, 2013 2 commits
  14. 27 Aug, 2013 4 commits
    • Paul Eggert's avatar
      Simplify EMACS_TIME-related code. · 43aac990
      Paul Eggert authored
      This portability layer is no longer needed, since Emacs has been
      using struct timespec as a portability layer for some time.
      Merge from gnulib, incorporating:
      2013-08-27 timespec: new convenience constants and function
      * src/atimer.h, src/buffer.h, src/dispextern.h, src/xgselect.h:
      Include <time.h> rather than "systime.h"; that's all that's needed now.
      * src/dispnew.c: Include <timespec.h> rather than "systime.h";
      that's all that's needed now.
      * src/systime.h (EMACS_TIME): Remove.  All uses changed to struct timespec.
      (EMACS_TIME_RESOLUTION): Remove.  All uses changed to
      TIMESPEC_RESOLUTION.
      (LOG10_EMACS_TIME_RESOLUTION): Remove.  All uses changed to
      LOG10_TIMESPEC_RESOLUTION.
      (EMACS_SECS, emacs_secs_addr): Remove.  All uses changed to tv_sec.
      (EMACS_NSECS): Remove.  All uses changed to tv_nsec.
      (make_emacs_time): Remove.  All used changed to make_timespec.
      (invalid_timespec): Rename from invalid_emacs_time.  All uses changed.
      (current_timespec): Rename from current_emacs_time.  All uses changed.
      (add_emacs_time): Remove.  All uses changed to timespec_add.
      (sub_emacs_time): Remove.  All uses change dot timespec_sub.
      (EMACS_TIME_SIGN): Remove.  All uses changed to timespec_sign.
      (timespec_valid_p): Rename from EMACS_TIME_VALID_P.  All uses changed.
      (EMACS_TIME_FROM_DOUBLE): Remove.  All uses changed to dtotimespec.
      (EMACS_TIME_TO_DOUBLE): Remove.  All uses changed to timespectod.
      (current_timespec): Rename from current_emacs_time.  All uses changed.
      (EMACS_TIME_EQ, EMACS_TIME_LT, EMACS_TIME_LE): Remove.  All uses
      changed to timespec_cmp.
      * src/xgselect.c: Include <timespec.h>, since our .h files don't.
      43aac990
    • Dmitry Antipov's avatar
      * configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32) · 15091df5
      Dmitry Antipov authored
      (DOCMISC_PDF_W32, DOCMISC_PS_W32): No spaces!
      15091df5
    • Glenn Morris's avatar
      Move source for Emacs on MS Windows FAQ here from Emacs webpages repository · 1857cd3f
      Glenn Morris authored
      * Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
      (maintainer-clean, check-declare): Remove pointless subshells.
      Check cd return value.
      
      * configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
      (DOCMISC_PDF_W32, DOCMISC_PS_W32): New output variables.
      * Makefile.in (check-info-dir): Ignore efaq-w32.
      
      * admin/admin.el (manual-misc-manuals): Use INFO_COMMON rather than
      INFO_TARGETS.
      
      * doc/misc/efaq-w32.texi: Move here from the web-pages repository.
      
      * doc/misc/Makefile.in (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
      (DOCMISC_PDF_W32, DOCMISC_PS_W32): New configure output variables.
      (INFO_COMMON, INFO_INSTALL): New derivations of INFO_TARGETS.
      (DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      Add DOCMISC_*_W32 variables.
      (echo-info): Use INFO_INSTALL rather than INFO_TARGETS.
      (efaq_w32_deps): New variable.
      (efaq-w32, $(buildinfodir)/efaq-w32$(INFO_EXT), efaq-w32.dvi)
      (efaq-w32.pdf, efaq-w32.html): New rules.
      (clean): Remove efaq-w32 products.
      1857cd3f
    • Glenn Morris's avatar
      * Makefile.in (mostlyclean, clean, distclean, bootstrap-clean) · 61ac6b9f
      Glenn Morris authored
      (maintainer-clean, check-declare): Remove pointless subshells.
      Check cd return value.
      61ac6b9f
  15. 26 Aug, 2013 1 commit
  16. 23 Aug, 2013 1 commit
  17. 22 Aug, 2013 1 commit
  18. 21 Aug, 2013 1 commit
    • Paul Eggert's avatar
      Port close-on-exec pty creation to FreeBSD 9.1-RELEASE. · f035e3a9
      Paul Eggert authored
      * configure.ac (PTY_OPEN): If posix_openpt with O_CLOEXEC fails
      and reports EINVAL, try it again without O_CLOEXEC.  This should
      port PTY_OPEN to FreeBSD 9, which stupidly rejects O_CLOEXEC.
      What were they thinking?
      
      Fixes: debbugs:15129
      f035e3a9
  19. 20 Aug, 2013 2 commits
  20. 19 Aug, 2013 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · 51632863
      Paul Eggert authored
      This incorporates:
      2013-08-15 warnings: minor optimization
      2013-08-15 warnings: check -Wfoo rather than -Wno-foo
      51632863
  21. 15 Aug, 2013 2 commits
    • Ken Brown's avatar
      0fe73012
    • Glenn Morris's avatar
      Cleanup for etc/refcards/Makefile and related items · 4fa44856
      Glenn Morris authored
      * .bzrignore: Unignore etc/refcards/Makefile.
      
      * make-dist: Do not distribute etc/refcards TeX intermediate files.
      
      * Makefile.in (install-arch-indep):
      Do not install etc/refcards TeX intermediate files.
      
      * etc/refcards/Makefile: Rewrite to use portable Makefile syntax.
      Add language-specific targets.
      (distclean, extraclean): New rules.
      
      *  etc/refcards/README: Add copyright and license.  Add Makefile details.
      Mention http and FSF store versions.
      4fa44856
  22. 14 Aug, 2013 1 commit
  23. 12 Aug, 2013 5 commits
    • Eli Zaretskii's avatar
      Fix zlib support on MS-Windows. · aa942e2b
      Eli Zaretskii authored
       configure.ac (HAVE_ZLIB): Don't use -lz on MinGW.
      
       src/decompress.c <zlib_initialized> [WINDOWSNT]: New static variable.
       (Fzlib_decompress_region) [WINDOWSNT]: Call init_zlib_functions if
       not yet initialized.
      aa942e2b
    • Paul Eggert's avatar
      Minor zlib configuration tweaks. · 1d238bc7
      Paul Eggert authored
      * configure.ac (HAVE_ZLIB): Don't assume zlib is linked if PNG is.
      * src/decompress.c (fn_inflateInit2) [!WINDOWSNT]:
      Don't assume presence of fn_inflateInit2_ zlib internal function.
      1d238bc7
    • Eli Zaretskii's avatar
      Fix build with zlib on MS-Windows. · 594a4307
      Eli Zaretskii authored
       configure.ac (LIBZ): Comment on w32 peculiarities regarding LIBZ.
      
       src/decompress.c [WINDOWSNT]: Include windows.h and w32.h.
       (DEF_ZLIB_FN, LOAD_ZLIB_FN) [WINDOWSNT]: New macros.  Use them to
       define static variables that are pointers to zlib functions to be
       dynamically loaded.
       (init_zlib_functions) [WINDOWSNT]: New function.
       (fn_inflateInit2_, fn_inflate, fn_inflateEnd, fn_inflateInit2):
       New macros.
       (Fdecompress_gzipped_region, unwind_decompress): Use the fn_*
       macros instead of invoking the zlib functions directly.
       (syms_of_decompress): DEFSYM Qzlib_dll.  Staticpro
       Szlib_available_p.
      
       lisp/term/w32-win.el (dynamic-library-alist): Add DLLs for zlib.
      594a4307
    • Paul Eggert's avatar
      Merge from gnulib. · eaca0446
      Paul Eggert authored
      This incorporates:
      2013-08-11 fpending: port to recent Cygwin change to stdio_ext.h
      2013-08-10 sys_time: port to OpenBSD
      eaca0446
    • Glenn Morris's avatar
      Add build, install, uninstall rules for all dvi, html, pdf, ps manuals · 8496d8d7
      Glenn Morris authored
      * configure.ac (etcdocdir): Rename from docdir, to avoid confusion
      with configure's standard --docdir argument.  All uses updated.
      
      * Makefile.in (etcdocdir): Rename from docdir.  All uses updated.
      (install-etcdoc): Rename from install-doc.  All uses updated.
      (uninstall): Run uninstall-doc.
      (PSS): Add misc-ps.
      (INSTALL_DVI, INSTALL_HTML, INSTALL_PDF, INSTALL_PS)
      (INSTALL_DOC, UNINSTALL_DVI, UNINSTALL_HTML, UNINSTALL_PDF)
      (UNINSTALL_PS, UNINSTALL_DOC): New variables.
      ($(INSTALL_DOC), install-doc, install-dvi, install-html, install-pdf)
      (install-ps, $(UNINSTALL_DOC), uninstall-doc, uninstall-dvi)
      (uninstall-html, uninstall-pdf, uninstall-ps): New .PHONY rules.
      
      * doc/emacs/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (emacs.ps, emacs-xtra.ps): Remove explicit rules.
      (emacs.html): Use HTML_OPTS.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      
      * doc/lispintro/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (emacs-lisp-intro.ps): Remove explicit rule.
      (emacs-lisp-intro.html): Use HTML_OPTS.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      
      * doc/lispref/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (elisp.html): Use HTML_OPTS.
      (elisp.ps): Remove explicit rule.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      
      * doc/misc/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, HTML_TARGETS, PS_TARGETS, DVIPS): New variables.
      (.PHONY): Add html, ps, install-dvi, install-html, install-pdf,
      install-ps ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (html, ps, ada-mode.html, auth.html, autotype.html, bovine.html)
      (calc.html, cc-mode.html, cl.html, dbus.html, dired-x.html)
      (ebrowse.html, ede.html, ediff.html, edt.html, eieio.html)
      (emacs-gnutls.html, emacs-mime.html, epa.html, erc.html)
      (ert.html, eshell.html, eudc.html, faq.html, flymake.html)
      (forms.html, gnus.html, htmlfontify.html, idlwave.html)
      (ido.html, mairix-el.html, message.html, mh-e.html)
      (newsticker.html, nxml-mode.html, org.html, pgg.html)
      (rcirc.html, reftex.html, remember.html, sasl.html, sc.html)
      (semantic.html, sieve.html, smtpmail.html, speedbar.html)
      (srecode.html, todo-mode.html, tramp.html, url.html, vip.html)
      (viper.html, widget.html, wisent.html, woman.html, install-dvi)
      (install-html, install-pdf, install-ps, install-doc, uninstall-dvi)
      (uninstall-html, uninstall-ps, uninstall-pdf, uninstall-doc):
      New rules.
      (clean): Remove HTML_TARGETS and PS_TARGETS.
      8496d8d7