1. 28 Jul, 2019 5 commits
  2. 27 Jul, 2019 26 commits
  3. 26 Jul, 2019 9 commits
    • Noam Postavsky's avatar
      Clarify docstring of last-command-event. · d04b0ae7
      Noam Postavsky authored
      * src/keyboard.c (syms_of_keyboard) <last-command-event>: Reword docstring.
    • Stefan Monnier's avatar
      Adjust remaining uses of `NILP (HASH_HASH)`. · 0f09808e
      Stefan Monnier authored
      * src/json.c (lisp_to_json_toplevel_1):
      * src/pdumper.c (dump_hash_table_stable_p, hash_table_contents):
      * src/print.c (print, print_vectorlike):
      * src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
      Use `EQ (HASH_KEY, Qunbound)` instead of `NILP (HASH_HASH)`.
    • Stefan Monnier's avatar
      Don't dump the `hash` vector if it will need to be recomputed anyway · 0dc5a85a
      Stefan Monnier authored
      * src/fns.c (hash_table_rehash): Only set `hash` field at the end.
      (sweep_weak_table): Only set slot of `hash` vector when that vector exists.
      (Fhash_table_count): No need to hash_rehash_if_needed any more.
      * src/lisp.h (hash_rehash_needed_p): Test the presence of `hash` instead.
      * src/pdumper.c (check_hash_table_rehash, dump_hash_table):
      Set `hash` to nil to indicate that the table needs to be rehashed.
    • Stefan Monnier's avatar
      * src/fns.c: Use `EQ (key, Qunbound)` to check if a slot is in use · c74da403
      Stefan Monnier authored
      (make_hash_table): Use Qunbound for the key_and_value table.
      (maybe_resize_hash_table): Set new key_and_value slots to Qunbound.
      (hash_table_rehash): Don't bother copying the old table of hashes since
      we're recomputing it completely.
      (hash_table_rehash): Use hash_rehash_needed_p more.
      (hash_put): Add assertion that the slot was indeed considered empty.
      (hash_remove_from_table, hash_clear, sweep_weak_table): Set empty
      slot's key to Qunbound.
      (Fmaphash): Use `EQ (key, Qunbound)` to check if a slot is in use.
      * src/lisp.h (struct Lisp_Hash_Table): Update comments.
    • Stefan Monnier's avatar
      * src/fns.c (hash_index_size): New function, extracted from make_hash_table · bbff294b
      Stefan Monnier authored
      (make_hash_table, maybe_resize_hash_table): Use it.
      * src/pdumper.c (check_hash_table_rehash): Use hash_rehash_needed_p.
    • Alan Mackenzie's avatar
      CC Mode. Create lang vars for certain skipping expressions at compile time · aabb844e
      Alan Mackenzie authored
      This saves repeated calculations at run time.
      * lisp/progmodes/cc-langs.el (c-stmt-boundary-skip-chars)
      (c-stmt-boundary-skip-list, c-stmt-boundary-skip-chars-with-comma)
      (c-stmt-boundary-skip-list-with-comma): New lang constants/variables.
      * lisp/progmodes/cc-engine.el (c-commas-bound-stmts): New variable
      (c-beginning-of-statement-1): Set c-commas-bound-stmts rather than
      (c-crosses-statement-barrier-p): Remove the now unneeded calculations of
      c-stmt-delim-chars.  Set skip chars to one of the new lang variables, and
      later to a substring of it.
      (c-at-statement-start-p): Set c-syntactic-skip-backward from the new
      (c-at-expression-start-p): Bind c-commas-bound-stmts.  Use
      c-stmt-delim-chars-with-comma rather than c-stmt-delim-chars in a backward
      (c-guess-basic-syntax): Bind c-commas-bound-stmts rather than
      c-stmt-delim-chars to itself.  Bind c-commas-bound-stmts to t at another place
      rather than setting c-stmt-delim-chars to c-stmt-delim-chars-with-comma.
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      Fix recently-introduced file-name-absolute-p typo · e3575ee4
      Paul Eggert authored
      Fix a bug introduced in 2019-07-24T21:28:13!eggert@cs.ucla.edu.
      * src/fileio.c (file_name_absolute_p):
      ~/foo is also absolute (Bug#36809).
      * test/src/fileio-tests.el (fileio-tests--file-name-absolute-p):
      Rename from fileio-tests--no-such-user and add more tests.
    • Paul Eggert's avatar
      Fix ‘make check’ failure · 40b06752
      Paul Eggert authored
      Problem introduced in 2019-07-26T07:08:40!larsi@gnus.org.
      * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
      Don’t count "0 unexpected" as unexpected.