1. 07 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Minor INFINITY/NAN cleanup · 8acb88c5
      Paul Eggert authored
      * src/lread.c (INFINITY): Use a more-portable way to specify
      this macro on non-C99 platforms that lack it.
      (NAN): Remove; unused.
    • Paul Eggert's avatar
      Fix logb on zero, infinite, NaN args · 202bd7bf
      Paul Eggert authored
      Change logb to return -infinity, +infinity, and NaN respectively.
      Formerly logb returned an extreme fixnum to represent
      infinity, but this is no longer the right thing to do now that
      we have bignums and there is no extreme integer.
      * doc/lispref/numbers.texi (Float Basics), etc/NEWS: Document.
      * src/floatfns.c (Flogb): Implement this.
  2. 06 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Use integers for syntax-pps-stats · b0b483d7
      Paul Eggert authored
      * lisp/emacs-lisp/syntax.el (syntax-ppss-stats):
      Use integers, not floating-point, for stats, now that integers are
      unbounded.  Almost always these should be fixnums.  Add 1 to last
      slot’s car so that this addition need not be done at runtime.
      (syntax-pps-stats, syntax-ppss): Use integers for calculations.
      (syntax-ppss--update-stats): New convenience function.
      (syntax-ppss): Use it.
    • Michael Albinus's avatar
      Adapt filenotify-tests for emba · cfa54ab7
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify-test03-events)
      (file-notify-test09-watched-file-in-watched-dir): Adapt tests for emba.
  3. 05 Jan, 2019 6 commits
  4. 04 Jan, 2019 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of 'server-name' · f6eacc46
      Eli Zaretskii authored
      * doc/emacs/misc.texi (Emacs Server, TCP Emacs server)
      (emacsclient Options):
      * lisp/server.el (server-name): Document the usage of
      'server-name' to specify the server file as an absolute file
      name.  (Bug#33934)
  5. 03 Jan, 2019 3 commits
  6. 02 Jan, 2019 5 commits
    • Philipp Stephani's avatar
      Avoid a compiler warning on macOS. · f136a4bf
      Philipp Stephani authored
      * src/xdisp.c (expose_window_tree): Define variable f only if used.
    • NicolasPetton's avatar
    • NicolasPetton's avatar
      ; Formatting fix in etc/NEWS · 2e4cc79b
      NicolasPetton authored
    • NicolasPetton's avatar
      Document the new functions of seq.el · deee6bd4
      NicolasPetton authored
      * etc/NEWS: New section documenting the addition of `seq-first' and
    • João Távora's avatar
      Extend electric-layout-mode to handle more complex layouts (bug#33794) · 949295ae
      João Távora authored
      Entries in electric-layout-rules can specify multiple
      newline-related actions which are executed in order of appearance.
      Also, have it play nice with electric-pair-mode when inserting a
      newlines, particularly with electric-pair-open-newline-between-pairs.
      Entries in electric-layout-rules can also be functions.  Among other
      things, the logic behind electric-pair-open-newline-between-pairs
      could now be moved to electric-layout-mode, but this commit doesn't do
      that yet.
      This change was motivated by bug#33794 and is an alternative solution
      to the problem reported in that bug.
      * lisp/electric.el (electric-layout-rules): Adjust docstring.
      (electric-layout-post-self-insert-function): Call
      (electric-layout-post-self-insert-function-1): Rename from
      electric-layout-post-self-insert-function.  Redesign.
      (electric-layout-local-mode): New minor mode.
      * test/lisp/electric-tests.el (electric-layout-int-main-kernel-style)
      (electric-layout-mode-newline-between-parens-without-e-p-m-2): New
      (plainer-c-mode): New helper.
  7. 01 Jan, 2019 13 commits
    • Paul Eggert's avatar
      Don’t limit range error reports to fixnums · 0515b223
      Paul Eggert authored
      * src/lisp.h (CHECK_RANGED_INTEGER): When signaling an error,
      don’t arbitrarily limit the reported valid range to fixnums.
    • Paul Eggert's avatar
      Bignums from garbage-collect, memory-use-counts · 8b5f05e9
      Paul Eggert authored
      Do not limit the results of garbage-collect and memory-use-counts
      to fixnums, as they might be bignums now on 32-bit hosts.
      * src/lisp.h (byte_ct): New type.
      * src/alloc.c (object_ct): New type.
      (consing_since_gc, gc_relative_threshold)
      (memory_full_cons_threshold, total_string_bytes):
      Now byte_ct, not EMACS_INT.
      (total_conses, total_symbols, total_buffers, total_free_conses)
      (total_free_symbols, total_free_floats, total_floats)
      (total_free_intervals, total_intervals, total_strings)
      (total_free_strings, total_vectors, total_vector_slots)
      (total_free_vector_slots): Now object_ct, not EMACS_INT.
      (bounded_number): Remove.  All uses removed.
      (object_bytes): New function.
      (total_bytes_of_live_objects, garbage_collect_1): Use byte_ct,
      not size_t, to count total GC bytes where multiple objects are
      (garbage_collect_1, Fmemory_use_counts):
      Do not limit returned counts to fixnums.
      (sweep_conses, sweep_floats, sweep_intervals, sweep_symbols):
      Use object_ct, not EMACS_INT, to count GC objects.
    • Paul Eggert's avatar
      Be consistent about list length fixnum overflow · ba1b3409
      Paul Eggert authored
      * src/fns.c (Flength, Fproper_list_p): Use overflow_error to
      report the (typically impossible) fixnum overflow.
    • Paul Eggert's avatar
      Fix woman.el to not confuse scan-sexps · 50445767
      Paul Eggert authored
      * lisp/woman.el (woman-unpadded-space-char):
      Escape the close-bracket (Bug#33940).
    • Paul Eggert's avatar
      decode-time: allow bignum years · 22734394
      Paul Eggert authored
      * src/timefns.c (TM_YEAR_BASE):
      Now a constant as it need not be a macro.
      (Fdecode_time): Do not signal an overflow merely because the
      Gregorian year number does not fix in a fixnum (which can
      happen on hosts with 64-bit time_t and with 32-bit int and
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 355b1c3c
      Glenn Morris authored
    • Paul Eggert's avatar
      Fix integer overflow check in json code · 8e25ffee
      Paul Eggert authored
      * src/json.c (json_to_lisp): Check for ptrdiff_t overflow,
      not fixnum overflow.
    • Paul Eggert's avatar
      Update more copyright years · a04bf151
      Paul Eggert authored
      Update some other copyright years automatically, by running:
      UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright'
      followed by 'admin/merge-gnulib'.
    • Paul Eggert's avatar
      Update from Gnulib · 11549870
      Paul Eggert authored
      This incorporates mostly just copyright-year changes, plus
      recent minor updates from glibc for the non-Emacs regular
      expression code.
    • Paul Eggert's avatar
      Merge from origin/emacs-26 · ba809612
      Paul Eggert authored
      2fcf2dff Fix copyright years by hand
      26bed8ba Update copyright year to 2019
      28142925 Fix value of default frame height.  (Bug#33921)
    • Paul Eggert's avatar
      Remove UCHAR typedef · d9ba26ec
      Paul Eggert authored
      * src/lisp.h (_UCHAR_T, UCHAR): Remove.  This workaround for
      circa-1993 old-AIX has evidently not been needed for decades.
      Tested on AIX 7.1, the oldest AIX version IBM still supports.
    • Paul Eggert's avatar
      Fix copyright years by hand · 2fcf2dff
      Paul Eggert authored
      These are dates that admin/update-copyright did not update, or
      updated incorrectly.
    • Paul Eggert's avatar
      Update copyright year to 2019 · 26bed8ba
      Paul Eggert authored
      Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
  8. 31 Dec, 2018 8 commits