1. 19 May, 2014 1 commit
    • Dmitry Antipov's avatar
      * src/lisp.h (CHECK_BOOLEAN): New function. · 2bcf0551
      Dmitry Antipov authored
      * src/alloc.c (Fbool_vector): New function.
      (syms_of_alloc): Defsubr it.
      * src/data.c (Qbooleanp): New symbol.
      (syms_of_data): DEFSYM it.
      * src/dbusbind.c (xd_signature): Use CHECK_BOOLEAN.
      * doc/lispref/sequences.texi (Bool-vectors): Mention bool-vector.
      2bcf0551
  2. 17 May, 2014 2 commits
    • Paul Eggert's avatar
      Assume C99 or later. · 8208d2bf
      Paul Eggert authored
      * lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4:
      Remove.
      * configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure'
      smaller.
      (gl_PROG_CC_C99): Use this to get C99 or later.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool.
      (GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool.
      * doc/lispref/internals.texi (C Dialect): Document this.
      * etc/NEWS: Document this.
      * nt/gnulib.mk: Remove stdarg and stdbool modules.
      * src/bytecode.c (B__dummy__): Remove.
      * src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool.
      (FLEXIBLE_ARRAY_MEMBER): Now always empty.
      * src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]:
      * src/regex.c (DEBUG_PRINT): Assume varargs macros.
      * src/lisp.h (DEFUN_FUNCTION_INIT): Remove.  All uses now assume C99.
      
      Fixes: debbugs:17487
      8208d2bf
    • Fabrice Popineau's avatar
      Always map new memory for buffers after dumping. · f63fc858
      Fabrice Popineau authored
       src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Always map new
       memory for every buffer that was dumped.
      f63fc858
  3. 15 May, 2014 2 commits
  4. 14 May, 2014 1 commit
    • Dmitry Antipov's avatar
      Minor cleanup for terminal setup. · 6f1d9822
      Dmitry Antipov authored
      * termhooks.h (create_terminal): Adjust prototype.
      * terminal.c (create_terminal): Pass output method and RIF as args.
      (init_initial_terminal):
      * nsterm.m (ns_create_terminal):
      * term.c (init_tty):
      * w32term.c (w32_create_terminal):
      * xterm.c (x_create_terminal): Adjust users.
      Avoid redundant NULL initializers and add comments.
      6f1d9822
  5. 13 May, 2014 2 commits
    • Paul Eggert's avatar
      * keyboard.c (Qdeactivate_mark): Now static. · 3246c8b1
      Paul Eggert authored
      3246c8b1
    • Dmitry Antipov's avatar
      If available, use Xfixes extension to do pointer blanking. · d3e5c0ea
      Dmitry Antipov authored
      * configure.ac (HAVE_XFIXES): Define if available.
      (XFIXES_CFLAGS, XFIXES_LIBS): New AC_SUBSTs.
      * src/Makefile.in (XFIXES_CFLAGS, XFIXES_LIBS): New var.
      * src/xfns.c (x_set_mouse_color): Do not call make_invisible_cursor here.
      (make_invisible_cursor): Move to...
      * src/xterm.c (make_invisible_cursor): ...here.
      (x_probe_xfixes_extension, xfixes_toggle_visible_pointer)
      (x_toggle_visible_pointer, x_setup_pointer_blanking): New functions.
      (x_term_init): Call to x_setup_pointer_blanking.
      (XTtoggle_invisible_pointer): Use blanking specific to this display.
      * src/xterm.h (struct x_display_info): New member toggle_visible_pointer.
      d3e5c0ea
  6. 12 May, 2014 1 commit
  7. 11 May, 2014 1 commit
  8. 10 May, 2014 1 commit
  9. 07 May, 2014 3 commits
  10. 06 May, 2014 3 commits
  11. 05 May, 2014 1 commit
  12. 04 May, 2014 2 commits
    • Paul Eggert's avatar
      Consult libpng-config more consistently. · f8c2cef5
      Paul Eggert authored
      This is mainly for simplicity, but it should also avoid
      some future problems like the ones we recently had with NetBSD.
      * configure.ac (LIBPNG): Configure after LIBZ.  Use libpng-config
      for cflags, too.  Append -lz if we're not already doing that with
      LIBZ.  Do not bother appending -lm, since we always append that.
      Coalesce some duplicate code.
      * src/Makefile.in (PNG_CFLAGS): New var.
      (ALL_CFLAGS): Use it.
      * src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
      CFLAGS now handles this.
      
      Fixes: debbugs:17339
      f8c2cef5
    • Paul Eggert's avatar
      Revert recent libpng changes. · 61febcb6
      Paul Eggert authored
      They fix only bugs that aren't being reported, so it may be better
      to do them on the trunk.
      * configure.ac (PNG_CFLAGS): Remove.  All uses removed.
      (LIBPNG): Don't be consistent about -lpng16 versus -lpng.
      Ignore libpng-config's exit status.  Always append -lz -lm.
      * src/Makefile.in (PNG_CFLAGS): Remove; all uses removed.
      * src/image.c [HAVE_LIBPNG_PNG_H]: Include <libpng/png.h>, not <png.h>.
      
      Fixes: debbugs:17339
      61febcb6
  13. 03 May, 2014 2 commits
    • Paul Eggert's avatar
      Handle systems without WCONTINUED consistently. · d355cad6
      Paul Eggert authored
      * lib-src/emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
      * src/process.c (handle_child_signal): Remove WCONTINUED ifdef,
      because WCONTINUED is always defined now.
      * src/syswait.h (WCONTINUED): Move here from ../lib-src/emacsclient.c.
      
      Fixes: debbugs:15110 debbugs:17339
      d355cad6
    • Eli Zaretskii's avatar
      Minor fixes for comments. · 74a9022a
      Eli Zaretskii authored
       src/buffer.c (overlay_strings): Fix the wording of the commentary.
      
       lisp/mail/rmailsum.el (rmail-new-summary-1): Fix a typo in a comment.
      74a9022a
  14. 02 May, 2014 1 commit
    • Paul Eggert's avatar
      Consult libpng-config more consistently. · 6f074205
      Paul Eggert authored
      * configure.ac (edit_cflags): Move this up and to the top level,
      so that PNG_CFLAGS can use it too.
      (PNG_CFLAGS): New var.
      (png_longjmp): Use PNG_CFLAGS when checking.
      (LIBPNG): Be consistent about -lpng16 etc; e.g., don't use -lpng16
      in some places and -lpng in others.  Test libpng-config's exit
      status.  If it succeeds, use its output rather than appending -lz -lm.
      * src/Makefile.in (PNG_CFLAGS): New var.
      (ALL_CFLAGS): Use it.
      * src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
      CFLAGS now handles this.
      
      Fixes: debbugs:17339
      6f074205
  15. 01 May, 2014 3 commits
    • Glenn Morris's avatar
      Doc fixes · d136f184
      Glenn Morris authored
      * doc/misc/autotype.texi (Skeleton Language):
      * doc/misc/message.texi (Header Commands):
      * lisp/allout-widgets.el (allout-widgets-tally)
      (allout-decorate-item-guides):
      * lisp/menu-bar.el (menu-bar-positive-p):
      * lisp/minibuffer.el (completion-pcm-complete-word-inserts-delimiters):
      * lisp/cedet/ede.el (ede-project-directories, ede-check-project-directory):
      * lisp/cedet/semantic/ia-sb.el (semantic-ia-sb-show-doc):
      * lisp/cedet/semantic/tag.el (semantic-tag-in-buffer-p):
      * lisp/cedet/semantic/bovine/c.el (semantic-tag-abstract-p):
      * lisp/gnus/gnus-registry.el (gnus-registry-install-p): Doc fix.
      * lisp/progmodes/gdb-mi.el (gdbmi-same-start, gdbmi-is-number):
      * lisp/progmodes/js.el (js--inside-param-list-p)
      (js--inside-dojo-class-list-p, js--forward-destructuring-spec):
      * lisp/progmodes/prolog.el (region-exists-p):
      * lisp/progmodes/verilog-mode.el (verilog-scan-cache-ok-p):
      * lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p):
      * lisp/url/url-parse.el (url-generic-parse-url):
      * src/floatfns.c (Fisnan):
      * src/profiler.c (Fprofiler_cpu_running_p):
      Doc fixes (replace `iff').
      
      Fixes: debbugs:17309
      d136f184
    • Eli Zaretskii's avatar
    • Stefan Monnier's avatar
      * src/intervals.c: Tighten assertions. · 23c931aa
      Stefan Monnier authored
      (create_root_interval): Make sure the interval is not empty.
      (intervals_equal): Use booleans.
      (rotate_right, rotate_left): Check LENGTHs rather than TOTAL_LENGTH.
      (balance_an_interval): Sanity check LENGTHs and TOTAL_LENGTHs.
      (balance_possible_root_interval): Simplify and use booleans.
      (split_interval_right, split_interval_left): Check LENGTH, and remove
      now redundant assertion.
      (adjust_intervals_for_insertion): Remove now redundant assertions.
      (delete_node, interval_deletion_adjustment)
      (adjust_intervals_for_deletion, merge_interval_right)
      (merge_interval_left): Check LENGTH rather than TOTAL_LENGTH.
      (reproduce_interval): Make sure the interval is not empty.
      23c931aa
  16. 30 Apr, 2014 1 commit
  17. 29 Apr, 2014 3 commits
  18. 28 Apr, 2014 2 commits
    • Paul Eggert's avatar
      Use bits_word for gcmarkbits. · 9c23779a
      Paul Eggert authored
      * alloc.c (struct cons_block, struct float_block): On 64-bit hosts,
      bits_word is typically a tad more efficient for mark bits than
      unsigned is, so use bits_word.  All uses changed.
      * lisp.h (BITS_PER_INT): Remove; no longer used.
      9c23779a
    • Paul Eggert's avatar
      Avoid undefined behavior in signed left shift. · 6ab1b16c
      Paul Eggert authored
      This ports to GCC 4.9.0 with -fsanitize=undefined.
      * alloc.c (bool_vector_fill, SETMARKBIT, UNSETMARKBIT):
      * data.c (Fash):
      * regex.c (extract_number):
      * lisp.h (make_number, XINT):
      Do not shift a 1 bit left into a sign bit.
      * alloc.c (struct cons_block, struct float_block): Use unsigned,
      not int, for gcmarkbits.  All uses changed.
      6ab1b16c
  19. 24 Apr, 2014 1 commit
  20. 23 Apr, 2014 2 commits
  21. 22 Apr, 2014 4 commits
    • Paul Eggert's avatar
      Port to GCC 4.9.0 with --enable-gcc-warnings. · 34e856d5
      Paul Eggert authored
      * image.c (struct my_jpeg_error_mgr) [lint]: Remove member fp.
      All uses removed.
      (jpeg_load_body) [lint]: Add a 'volatile' to pacify a buggy GCC in
      a way that also works with GCC 4.9.0.
      34e856d5
    • Paul Eggert's avatar
      0fae5004
    • Eli Zaretskii's avatar
      Add debugging facility for the newline cache. · 2f999d52
      Eli Zaretskii authored
      See the discussion in
      http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00295.html
      for more detail.
      
       src/search.c (find_newline1): New subroutine.
       (Fnewline_cache_check): New function.
       (syms_of_search): Defsubr it.
      2f999d52
    • Daniel Colascione's avatar
      Correctly macroexpand top-level forms during eager macroexpand · 12b1389c
      Daniel Colascione authored
      * lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile):
      Improve docstrings.
      
      * lisp/emacs-lisp/macroexp.el (internal-macroexpand-for-load): Add
      `full-p' parameter; when nil, call `macroexpand' instead of
      `macroexpand-all'.
      
      * src/lread.c (readevalloop_eager_expand_eval): New function
      that can recurse into toplevel forms.
      (readevalloop): Call it.
      * src/lisp.h: Declare Qprogn.
      * src/callint.c (Qprogn): No longer static.
      
      * test/automated/bytecomp-tests.el (test-byte-comp-compile-and-load):
      Add compile flag.
      (test-byte-comp-macro-expansion)
      (test-byte-comp-macro-expansion-eval-and-compile)
      (test-byte-comp-macro-expansion-eval-when-compile)
      (test-byte-comp-macro-expand-lexical-override): Use it.
      (test-eager-load-macro-expansion)
      (test-eager-load-macro-expansion-eval-and-compile)
      (test-eager-load-macro-expansion-eval-when-compile)
      (test-eager-load-macro-expand-lexical-override): New tests.
      12b1389c
  22. 21 Apr, 2014 1 commit