1. 24 Nov, 2015 17 commits
    • Simen Heggestøyl's avatar
      Extend the test suite for json.el · 0805069a
      Simen Heggestøyl authored
      * lisp/json.el (json-plist-p): Clarify docstring.
      * test/automated/json-tests.el (json-tests--with-temp-buffer): New
      (test-json-join, test-json-alist-p)
      (test-json-plist-p, test-json-advance, test-json-peek)
      (test-json-pop, test-json-skip-whitespace)
      (test-json-read-keyword, test-json-encode-keyword)
      (test-json-read-number, test-json-encode-number)
      (test-json-read-escaped-char, test-json-read-string)
      (test-json-encode-string, test-json-encode-key)
      (test-json-new-object, test-json-add-to-object)
      (test-json-read-object, test-json-encode-list)
      (test-json-read-array, test-json-encode-array)
      (test-json-read, test-json-read-from-string)
      (test-json-encode): New tests.
      (json-read-simple-alist): Merged into `test-json-read-object'.
      (json-encode-string-with-special-chars): Merged into
      (json-read-string-with-special-chars): Split into
      `test-json-encode-string' and `test-json-read-from-string'.
    • Anders Lindgren's avatar
      Fixed bug#18283: Enable applescript in NextStep. · 9f94c709
      Anders Lindgren authored
      * nextstep/templates/Info.plist.in: Set NSAppleScriptEnabled to YES.
    • Eli Zaretskii's avatar
      Allow completion on dynamic module files in load-library · 85121e03
      Eli Zaretskii authored
      * lisp/files.el (load-library): Bind completion-ignored-extensions
      to nil, to allow completion on dynamic modules typed as file
      names.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
    • Alan Mackenzie's avatar
      CC Mode: eliminate almost all byte compilation warnings · 7233767e
      Alan Mackenzie authored
      * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): Remove.
      (cc-require): Remove the crude hack that saved and restored
      (cc-conditional-require, cc-conditional-require-after-load): New macros.
      * lisp/progmodes/cc-defs.el (top level): Reformulate code which loaded
      cc-fix.el using the new macros in cc-bytecomp.el.
      * lisp/progmodes/cc-langs.el (c++-template-syntax-table)
      (c-no-parens-syntax-table): Add extra "(eval ..)"s around "'(lambda ..)"
      forms to remove the superflous quotes.
    • Eli Zaretskii's avatar
      Add one more mod-test test · 33ec2ff0
      Eli Zaretskii authored
      * modules/mod-test/test.el (mod-test-sum-test): Test the error
      signaled when the function is invoked with a wrong number of
    • Philipp Stephani's avatar
    • Eli Zaretskii's avatar
      Implement dynlib_addr for MS-Windows · 146f361a
      Eli Zaretskii authored
      * src/dynlib.c [WINDOWSNT]: Include w32common.h.
      <g_b_init_get_module_handle_ex> [WINDOWSNT]: New static variable.
      if undefined.
      (dynlib_reset_last_error): Reset g_b_init_get_module_handle_ex to
      (dynlib_addr) [WINDOWSNT]: Non-trivial implementation to report
      the full file name of the module for a given address.
    • Alan Mackenzie's avatar
    • Alan Mackenzie's avatar
      Squashed commit of the following: · acb96f27
      Alan Mackenzie authored
      commit e1ecf76585bef2eb87995f7a7f92cc12003a6f70
      Author: Alan Mackenzie <acm@muc.de>
      Date:   Tue Nov 24 16:50:09 2015 +0000
          Byte compile: minor amendments.
          * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment):
          add a comment to explain the binding of variables around a subsidiary
          (byte-compile-new-defuns): Amend the doc string.
      commit c537bfed1dda1593d218956ff00c6105a3ff0316
      Author: Alan Mackenzie <acm@muc.de>
      Date:   Sat Nov 21 18:43:57 2015 +0000
          Byte compiler: fix spurious warnings "might not be defined at runtime".
          Also initialize byte-compile-noruntime-functions between runs.
          * lisp/emacs-lisp/bytecomp.el (byte-compile-new-defuns): New variable.
          (byte-compile-initial-macro-environment): For eval-when-compile: bind
          byte-compile-unresolved-functions and byte-compile-new-defuns around
          byte-compile-top-level, to prevent spurious entries being made.
          (byte-compile-warn-about-unresolved-functions): Check whether function is
          in byte-compile-new-defuns before emitting a warning about it.
          (byte-compile-from-buffer): Initialize new variable and
          byte-compile-noruntime-functions to nil.
          (byte-compile-file-form-require): record all new functions defined by a
          `require' in byte-compile-new-defuns.
          (byte-compile-file-form-defmumble): record the new alias in
    • Eli Zaretskii's avatar
      Fix crash at startup related to GC of font entities · d5fdffec
      Eli Zaretskii authored
      * src/font.h (GC_FONT_SPEC_P, GC_FONT_ENTITY_P)
      (GC_XFONT_OBJECT): New macros, for use in garbage collector.
      * src/alloc.c (compact_font_cache_entry, compact_font_caches):
      Don't ifdef away font cache compaction on NT_GUI, as the problems
      which led to that seem to have been solved.
      (compact_font_cache_entry): Use GC_FONT_SPEC_P, GC_XFONT_SPEC,
      GC_XFONT_ENTITY, and GC_XFONT_OBJECT, instead of their non-GC_
      cousins.  (Bug#21999)
    • Alan Mackenzie's avatar
      Byte compile: Output an error, not a warning, for odd number of args to setq · a67cc630
      Alan Mackenzie authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
    • Ken Raeburn's avatar
      Fix kbd_buffer iteration loop in readable_events · cb1bd349
      Ken Raeburn authored
      * src/keyboard.c (readable_events): Wrap the event pointer back to the
      start of the kbd_buffer array inside the top of the loop instead of
      right before checking the loop condition, since kbd_fetch_ptr and
      kbd_store_ptr point past the end of the array to mean that element 0
      is next. (bug#21935)
    • Paul Eggert's avatar
      Improve text-quoting-style doc again · b8bf0316
      Paul Eggert authored
      * doc/lispref/help.texi (Keys in Documentation):
      Omit overkill discussion of ‘setq’.  Mention Emacs versions
      where ‘grave’ style was standard.
    • Paul Eggert's avatar
      Improve text-quoting-style doc · 946ea418
      Paul Eggert authored
    • Paul Eggert's avatar
      Simplify module_make_function · 004f4fc9
      Paul Eggert authored
      * src/emacs-module.c (module_make_function):
      Simplify by calling build_unibyte_string.
    • Paul Eggert's avatar
      Port better to FreeBSD’s dlfunc vs dlsym · da8c7ca2
      Paul Eggert authored
      This avoids warnings when converting between void * and
      function pointers, which strict C11 does not allow.
      * configure.ac (dlfunc): Check for existence.
      * src/dynlib.c (dlfunc) [!HAVE_DLFUNC]: New macro.
      (dynlib_func): New function.
      * src/dynlib.h (dynlib_function_ptr, dynlib_func): New decls.
      * src/emacs-module.c (Fmodule_load): Use dynlib_func, not
      dynlib_sym, for function pointers.
    • Paul Eggert's avatar
      Simplify use of emacs_finalizer_function type · ceaca7be
      Paul Eggert authored
      * src/emacs-module.h (emacs_finalizer_function):
      Now EMACS_NOEXCEPT.  All users simplified to omit EMACS_NOEXCEPT.
      (struct emacs_env_25): Use emacs_finalizer_function where applicable.
  2. 23 Nov, 2015 23 commits