1. 05 Mar, 2017 11 commits
  2. 04 Mar, 2017 6 commits
  3. 03 Mar, 2017 10 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      logb now works correctly on large integers · 74f87fd1
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add count-leading-zeros.
      * etc/NEWS: Document the change.
      * lib/count-leading-zeros.c, lib/count-leading-zeros.h:
      * m4/count-leading-zeros.m4: New files, copied from Gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/floatfns.c: Include count-leading-zeros.h.
      (Flogb): Do not convert fixnum to float before taking the log,
      as the rounding error can cause the answer to be off by 1.
      * src/lisp.h (EMACS_UINT_WIDTH): New constant.
      * test/src/floatfns-tests.el (logb-extreme-fixnum): New test.
    • Paul Eggert's avatar
      Merge from gnulib · f1fe3fcf
      Paul Eggert authored
      This incorporates:
      2017-02-25 maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
      2017-02-24 ftoastr: port to -Wdouble-promotion
      * lib/ftoastr.c, m4/gnulib-common.m4: Copy from gnulib.
    • Eli Zaretskii's avatar
      Avoid duplicating characters recorded in macros · aaf86f30
      Eli Zaretskii authored
      * src/keyboard.c (record_char): Don't store in macro definitions
      characters that came from executing a macro.  (Bug#25860)
    • Eli Zaretskii's avatar
      Fix color component calculations in color.el · 7b00e956
      Eli Zaretskii authored
      * lisp/color.el (color-name-to-rgb): Use 16 bits per color component.
      (color-rgb-to-hex): Accept an optional argument
      DIGITS-PER-COMPONENT, defaulting to 4, and format the hexadecimal
      notation either for 8 or 16 bits per component.  (Bug#25890)
      * lisp/net/shr-color.el (shr-color->hexadecimal): Call
      color-rgb-to-hex with the optional argument of 2, to match color
      processing on the Web.
    • Tino Calancha's avatar
      Use lexical binding in benchmark.el · 244de7b0
      Tino Calancha authored
      * lisp/emacs-lisp/benchmark.el: Enable lexical binding.
      (benchmark-elapse): Use 'declare'.
      * test/lisp/emacs-lisp/benchmark-tests.el: Add test suite.
    • Noam Postavsky's avatar
      Switch pp.el to lexical binding · f5388ba8
      Noam Postavsky authored
      Additionally, do some minor code cleanup.
      * lisp/emacs-lisp/pp.el: Set lexical-binding.
      (pp-buffer): Use skip-syntax-forward.
      (pp-eval-expression): Use push.
      (pp-last-sexp): Use with-syntax-table.
      * test/lisp/emacs-lisp/pp-tests.el: New tests.
    • Chunyang Xu's avatar
      Fix completing-read call in reb-change-syntax · 55c0c3e3
      Chunyang Xu authored
      * lisp/emacs-lisp/re-builder.el (reb-change-syntax): Use 'default' arg
      of completing-read.
      Copyright-paperwork-exempt: yes
    • Rolf Ade's avatar
      sql-mode w/ sqlite: In-memory database · 71871670
      Rolf Ade authored
      Enable the usage of an in-memory database. Prior to this, sql-mode w/
      sqlite could only be used with file databases.
      * list/progmodes/sql.el (sql-get-login-ext): Don't expand an empty
      file name provided by the user, but call sub-process sqlite with that,
      in which case it uses an in-memory database.
      Copyright-paperwork-exempt: yes
    • Allen Li's avatar
      Stop abbrev-prefix-mark from adding extra newline (Bug#25767) · c733d916
      Allen Li authored
      `abbrev--before-point' does not adjust `pos' to account for when it
      deletes the "-" left by abbrev-prefix-mark.  Therefore, when
      `abbrev-before-point' goes to restore point, it moves point one
      character too far forward.
      * lisp/abbrev.el (abbrev--before-point): Adjust pos when deleting "-".
  4. 02 Mar, 2017 13 commits
    • Tino Calancha's avatar
    • Paul Eggert's avatar
      Restore XFLOATINT but with restricted args · 56aaaf9b
      Paul Eggert authored
      Turn instances of extract_float into XFLOAT_DATA when possible,
      and to a resurrected XFLOATINT when the arg is a number.
      The resurrected XFLOATINT is more like XFLOAT and XINT in
      that is valid only if its arg is a number.  This clarifies
      the ways in which floats can be extracted at the C level.
      * src/editfns.c (styled_format):
      * src/floatfns.c (extract_float, Fexpt):
      Use XFLOATINT rather than open-coding it.
      * src/fns.c (internal_equal):
      * src/image.c (imagemagick_load_image):
      * src/xdisp.c (resize_mini_window):
      Prefer XFLOAT_DATA to extract_float on values known to be floats.
      * src/frame.c (x_set_screen_gamma):
      * src/frame.h (NUMVAL):
      * src/image.c (x_edge_detection, compute_image_size):
      * src/lread.c (read_filtered_event):
      * src/window.c (Fset_window_vscroll):
      * src/xdisp.c (handle_single_display_spec, try_scrolling)
      (redisplay_window, calc_pixel_width_or_height, x_produce_glyphs)
      Prefer XFLOATINT to extract_float on values known to be numbers.
      * src/lisp.h (XFLOATINT): Bring back this function, except
      it now assumes its argument is a number.
    • Glenn Morris's avatar
      Ert commands to error if no test at point (bug#25931) · dacafa8c
      Glenn Morris authored
      * lisp/emacs-lisp/ert.el (ert-results-mode-menu):
      Deactivate some items if no test at point.
      Add option to signal an error rather than return nil.
      (ert-results-describe-test-at-point): Error if no test at point.
    • Paul Eggert's avatar
      Remove XFLOATINT · d0d26c13
      Paul Eggert authored
      * src/lisp.h (XFLOATINT): Remove this alias for extract_float.
      All callers changed to use extract_float.
      * src/frame.h (NUMVAL): Now an inline function, not a macro.
    • Paul Eggert's avatar
      Fix rounding errors in <, =, etc. · 4e2622bf
      Paul Eggert authored
      * etc/NEWS: Document this.
      * src/bytecode.c (exec_byte_code):
      * src/data.c (arithcompare):
      Do not lose information when comparing floats to integers.
      * test/src/data-tests.el (data-tests-=, data-tests-<)
      (data-tests->, data-tests-<=, data-tests->=):
      Test this.
    • Eli Zaretskii's avatar
      Fix display of mouse-highlight produced by overlapping overlays · d546be31
      Eli Zaretskii authored
      * src/xfaces.c (face_at_buffer_position): If called to find the
      mouse-face, only consider the highest-priority source for that
      face, and ignore the rest.  Previously, all the mouse-face
      definitions at POS were merged in that case.
      * src/xdisp.c (note_mouse_highlight): Record the overlay that
      specifies mouse-face _after_ clearing the info about the previous
      overlay, so as not to clear the information about the just-recorded
      overlay.  (Bug#25906)
    • Eli Zaretskii's avatar
      Fix display of strike-through text in variable-height lines · 511a3c3b
      Eli Zaretskii authored
      * src/nsterm.m (ns_draw_text_decoration):
      * src/xterm.c (x_draw_glyph_string):
      * src/w32term.c (x_draw_glyph_string): Fix calculation of the
      strike-through y-coordinate for a glyph row which is taller than
      the strike-through text.  (Bug#25907)
    • Martin Rudalics's avatar
      Don't call x_net_wm_state for scroll bar windows (Bug#24963, Bug#25887) · ae883561
      Martin Rudalics authored
      * src/xterm.c (handle_one_xevent): For ConfigureNotify events
      don't call x_net_wm_state when the window is a scroll bar window.
      (Bug#24963, Bug#25887)
    • Katsumi Yamaoka's avatar
      gnus-summary-select-article-buffer: Don't re-render existing article · 4da7aaa3
      Katsumi Yamaoka authored
      * lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
      Don't re-render existing article.
    • Katsumi Yamaoka's avatar
      Don't add debbugs address to message body (bug#25896) · 300f72f3
      Katsumi Yamaoka authored
      * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
      Don't add debbugs address to message body (bug#25896), and
      don't add it to message header either if it already exists.
    • Stefan Monnier's avatar
      * lisp/cedet/semantic/db-global.el: Make dynbind use explicit · 94a50646
      Stefan Monnier authored
      (semanticdb--ih): Declare.
      (semanticdb-enable-gnu-global-databases): Use it instead of `ih'.
      (semanticdb-enable-gnu-global-in-buffer, semanticdb-get-database-tables)
      (semanticdb-find-tags-for-completion-method): Silence compiler warning.
    • Stefan Monnier's avatar
      * lisp/help-fns.el (describe-variable): Use cl-print for the value · 2c18969c
      Stefan Monnier authored
      Use `pp-buffer' rather than `pp' so as to avoid calling prin1 twice.
    • Glenn Morris's avatar
      * test/lisp/net/puny.el: New file. · 41f91d36
      Glenn Morris authored