1. 24 Nov, 2015 12 commits
    • 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.
      (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS)
      (GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT) [WINDOWSNT]: Define
      if undefined.
      (dynlib_reset_last_error): Reset g_b_init_get_module_handle_ex to
      zero.
      (dynlib_addr) [WINDOWSNT]: Non-trivial implementation to report
      the full file name of the module for a given address.
      146f361a
    • 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
          compilation.
          (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
          byte-compile-new-defuns.
      acb96f27
    • 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_FONT_OBJECT_P, GC_XFONT_SPEC, GC_XFONT_ENTITY)
      (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)
      d5fdffec
    • 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.
      a67cc630
    • 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)
      cb1bd349
    • 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.
      b8bf0316
    • Paul Eggert's avatar
      Improve text-quoting-style doc · 946ea418
      Paul Eggert authored
      946ea418
    • 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.
      004f4fc9
    • 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.
      da8c7ca2
    • 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.
      ceaca7be
  2. 23 Nov, 2015 25 commits
  3. 22 Nov, 2015 3 commits
    • Eli Zaretskii's avatar
      Allow loading modules by 'load-file' · 40ed767b
      Eli Zaretskii authored
      * src/lread.c (Fload): Call 'unbind_to' with 'Fmodule_load' as the
      2nd arg, to avoid the "binding stack not balanced" error.
      (syms_of_lread) <module-file-suffix>: New Lisp variable.
      
      * lisp/files.el (module-file-suffix): Declare.
      (load-file): Remove 'module-file-suffix' from
      'completion-ignored-extensions', to allow completion on modules.
      
      * etc/NEWS: Mention 'module-file-suffix'.
      40ed767b
    • Eli Zaretskii's avatar
      Fix unoptimized builds · 9f0d19f2
      Eli Zaretskii authored
      * src/lisp.h (XTYPE): Move before XSYMBOL, to fix unoptimized
      builds.
      9f0d19f2
    • Dmitry Gutov's avatar
      Work around the asynchronous-empty-diff problem · 2a4362ba
      Dmitry Gutov authored
      * lisp/vc/vc-rcs.el (vc-rcs-diff):
      * lisp/vc/vc-mtn.el (vc-mtn-diff):
      * lisp/vc/vc-hg.el (vc-hg-diff):
      * lisp/vc/vc-git.el (vc-git-diff): Ignore the ASYNC argument,
      do a synchronous process call (bug#21969).
      2a4362ba