1. 27 Nov, 2015 6 commits
    • Eli Zaretskii's avatar
      Add module tests for wrong-type-argument · 8dcdca34
      Eli Zaretskii authored
      * modules/mod-test/test.el (mod-test-sum-test): Add tests for
      wrong-type-argument.
      8dcdca34
    • Eli Zaretskii's avatar
      Improve handling of signals and 'throw' in modules · 1ed316d2
      Eli Zaretskii authored
      * src/emacs-module.c: Add commentary explaining how to write
      functions in this file.
      (module_make_global_ref, module_free_global_ref)
      (module_non_local_exit_signal, module_non_local_exit_throw)
      (module_make_function, module_funcall, module_intern)
      (module_type_of, module_is_not_nil, module_eq)
      (module_extract_integer, module_make_integer)
      (module_extract_float, module_make_float)
      (module_copy_string_contents, module_make_string)
      (module_make_user_ptr, module_get_user_ptr, module_set_user_ptr)
      (module_get_user_finalizer, module_set_user_finalizer)
      (module_vec_set, module_vec_get, module_vec_size)
      (module_non_local_exit_signal_1, module_non_local_exit_throw_1):
      Do nothing and return with failure indication immediately, if some
      previous module call signaled an error or wants to throw.  See
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02133.html
      for the relevant discussions.
      1ed316d2
    • Eli Zaretskii's avatar
      Add ':version' tag to 'checkdoc-package-keywords-flag' · 165d6e3f
      Eli Zaretskii authored
      * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag):
      Add a ':version' tag.
      165d6e3f
    • Eli Zaretskii's avatar
      Improve documentation of 'eval-buffer' and 'eval-region' · 3f42061b
      Eli Zaretskii authored
      * src/lread.c (Feval_buffer, Feval_region): Doc fixes.  (Bug#22023)
      
      * doc/lispref/eval.texi (Eval): Mention narrowing to clarify
      "accessible portion of buffer".
      3f42061b
    • Eli Zaretskii's avatar
      Unbreak the Cygwin w32 build · 33460000
      Eli Zaretskii authored
      * src/emacs.c (main): Call w32_init_main_thread in the Cygwin w32
      build as well.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
      33460000
    • Eli Zaretskii's avatar
      Improve commentary in character-fold.el · a41cb8c4
      Eli Zaretskii authored
      * lisp/character-fold.el (character-fold-to-regexp): Move detailed
      description from commit log message to comments.  (Bug#22019)
      a41cb8c4
  2. 26 Nov, 2015 11 commits
  3. 25 Nov, 2015 6 commits
    • Phillip Lord's avatar
      run_undoable_changes now called from insdel. · 957b05c6
      Phillip Lord authored
      The original calls from inside undo.c are not always at a safe position
      to call lisp, as they originate in varied positions within insdel.c.
      Calling them directly from prepare_to_modify_buffer_1 ensures that they
      are always run at the same point.
      
       * undo.c (run_undoable_changes,syms_of_undo): Remove function
       and symbol used.
       * insdel.c (run_undoable_changes): Add function and symbol.
      957b05c6
    • Eli Zaretskii's avatar
      Improve and update documentation of search commands · 8f2a5a8a
      Eli Zaretskii authored
      * doc/emacs/search.texi (Lax Search): Renamed from "Search Case";
      all references changed.  Move the description of lax-whitespace
      here.  Add description of the new character folding features and
      additional customizable options.
      (Isearch Yank): Move before "Error in Search".
      (Basic Isearch): Improve wording.  Add index entries.  Add short
      description of how to abandon search, making this subsection a
      complete introduction to search basics.
      (Repeat Isearch): Add index entries.  Describe additional
      customizable options.  Describe mouse clicks.
      (Isearch Yank): Add index entries.  Describe mouse-2 click in echo
      area.  Describe more customizable options.
      (Error in Isearch): Add index entries.
      (Special Isearch): Move actual description of some isearch
      commands to other sections, leaving here just the summary of the
      commands.  Add command that toggles character folding.  Describe
      commands, like "C-h C-h", that were previously omitted for some
      reason.
      (Not Exiting Isearch): Describe search-exit-option.  Add index
      entries.
      (Word Search): Describe eww-search-word and eww-search-prefix.
      (Symbol Search): Add index entries.
      (Regexp Search): Describe regexp-search-ring-max.
      (Replacement and Lax Matches): Renamed from "Replacement and
      Case"; all references changed.  Describe lax-whitespace matching
      in replace commands and related options.  Describe character
      folding in replace commands and related options.
      (Query Replace): Describe query-replace-from-to-separator and the
      new history features.  Add index entries for highlighted text.
      Describe query-replace-skip-read-only.  Describe more keys
      accepted by query-replace.
      (Other Repeating Search): More index entries for Occur.  Describe
      list-matching-lines-default-context-lines.
      (Search Customizations): New section, documents customizable
      options that were not documented until now.
      * doc/emacs/glossary.texi (Glossary): Add "Case Folding" and
      "Character Folding".
      
      * etc/NEWS: Move search- and replace-related entries to a single
      parent section.
      
      * lisp/replace.el (query-replace-show-replacement): Doc fix.
      * lisp/isearch.el (search-nonincremental-instead)
      (isearch-hide-immediately): Doc fixes.
      8f2a5a8a
    • Katsumi Yamaoka's avatar
    • Paul Eggert's avatar
      Fix module_format_fun_env when dynlib_addr fails · d8143fa8
      Paul Eggert authored
      * src/emacs-module.c (module_format_fun_env):
      exprintf doesn’t support %p, so use %x.  Reported by Eli Zaretskii in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02122.html
      d8143fa8
    • Paul Eggert's avatar
      Disambiguate variable help a bit better · 36311ec8
      Paul Eggert authored
      * lisp/help-fns.el (describe-variable): Quote the
      variable’s value if it is a symbol other than t or nil.
      See: T.V Raman in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02147.html
      36311ec8
    • Dmitry Gutov's avatar
      Pass SVN commit message through log-edit-extract-headers · a5907137
      Dmitry Gutov authored
      * lisp/vc/vc-svn.el (vc-svn-checkin): Pass COMMENT through
      log-edit-extract-headers (bug#18954).
      a5907137
  4. 24 Nov, 2015 17 commits
    • Alan Mackenzie's avatar
      CC Mode: Eliminate compiler warning messages. · fdc271fa
      Alan Mackenzie authored
      * lisp/progmodes/cc-mode.el (top level): remove compile time declaration of
      `font-lock-syntactic-keywords' (which CC Mode doesn't use).
      * lisp/progmodes/cc-awk.el (awk-mode-syntax-table)
      (c-awk-set-syntax-table-properties): Clarify comments about
      `font-lock-syntactic-keywords'.
      
      * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-load): Create a dummy declaration
      of this before the real (interpreted) one, to satisfy the byte compiler.
      fdc271fa
    • 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
      macro.
      (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
      `test-json-encode-string'.
      (json-read-string-with-special-chars): Split into
      `test-json-encode-string' and `test-json-read-from-string'.
      0805069a
    • Anders Lindgren's avatar
      Fixed bug#18283: Enable applescript in NextStep. · 9f94c709
      Anders Lindgren authored
      * nextstep/templates/Info.plist.in: Set NSAppleScriptEnabled to YES.
      9f94c709
    • 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>.
      85121e03
    • 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
      byte-compile-noruntime-functions.
      (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.
      7233767e
    • 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
      arguments.
      33ec2ff0
    • 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