1. 22 Oct, 2016 3 commits
    • Noam Postavsky's avatar
      Let describe-function work for lambda again · 9da53e2d
      Noam Postavsky authored
      Since commit "* lisp/help-fns.el (describe-function): More type
      checking[...]", `describe-function' throws a user-error when given a
      non-symbol.  This prevents the [back] button in a *Help* buffer from
      working when the page it goes back to describes an anonymous
      function (e.g., the result of `describe-key' on a key which is bound to
      a lambda form).
      
      * lisp/help-fns.el (describe-function): Move the checks on FUNCTION
      being an fbound symbol into the `interactive' form.  This allows
      non-interactive calls to pass an anonymous function (Bug #24221).  Note
      that passing a non-bound symbol non-interactively will still trigger a
      `void-function' error from `describe-function-1'.
      9da53e2d
    • Noam Postavsky's avatar
      Fix kill-line's docstring · 5c2da930
      Noam Postavsky authored
      * lisp/simple.el (kill-line): The effect of show-trailing-whitespace is
      important lines with *no* nonblanks (Bug #16654).
      5c2da930
    • Noam Postavsky's avatar
      Fix handling of allocation in regex matching · ad66b3fa
      Noam Postavsky authored
      `re_match_2_internal' uses pointers to the lisp objects that it
      searches.  Since it may call malloc when growing the "fail stack", these
      pointers may be invalidated while searching, resulting in memory
      curruption (Bug #24358).
      
      To fix this, we check the pointer that the lisp object (as specified by
      re_match_object) points to before and after growing the stack, and
      update existing pointers accordingly.
      
      * src/regex.c (STR_BASE_PTR): New macro.
      (ENSURE_FAIL_STACK, re_search_2): Use it to convert pointers into
      offsets before possible malloc call, and back into pointers again
      afterwards.
      (POS_AS_IN_BUFFER): Add explanatory comment about punning trick.
      * src/search.c (search_buffer): Instead of storing search location as
      pointers, store them as pointers and recompute the corresponding address
      for each call to `re_search_2'.
      (string_match_1, fast_string_match_internal, fast_looking_at):
      * src/dired.c (directory_files_internal): Set `re_match_object' to Qnil
      after calling `re_search' or `re_match_2'.
      * src/regex.h (re_match_object): Mention new usage in commentary.
      ad66b3fa
  2. 21 Oct, 2016 1 commit
  3. 20 Oct, 2016 1 commit
  4. 19 Oct, 2016 7 commits
  5. 18 Oct, 2016 3 commits
  6. 17 Oct, 2016 8 commits
  7. 16 Oct, 2016 3 commits
  8. 15 Oct, 2016 3 commits
  9. 14 Oct, 2016 1 commit
  10. 13 Oct, 2016 3 commits
  11. 12 Oct, 2016 4 commits
  12. 11 Oct, 2016 1 commit
  13. 09 Oct, 2016 1 commit
  14. 08 Oct, 2016 1 commit
    • Eli Zaretskii's avatar
      Allow to disable compaction of font caches · 44e402ea
      Eli Zaretskii authored
      * src/font.c (syms_of_font) <inhibit-compacting-font-caches>: New
      boolean variable.
      * src/alloc.c (compact_font_caches): Use it to bypass the call to
      compact_font_cache_entry.  (Bug#24634)  (Bug#24565)
      
      * etc/NEWS: Mention the new variable.
      44e402ea