1. 08 Dec, 2019 1 commit
  2. 07 Dec, 2019 13 commits
  3. 06 Dec, 2019 9 commits
    • Paul Eggert's avatar
      Test format-time-string padding · 48f68885
      Paul Eggert authored
      Adapted from tests written by Stephen Gildea.
      * test/src/timefns-tests.el:
      (format-time-string-padding-minimal-deletes-unneeded-zeros)
      (format-time-string-padding-minimal-retains-needed-zeros)
      (format-time-string-padding-spaces)
      (format-time-string-padding-zeros-adds-on-insignificant-side):
      New tests.
      48f68885
    • Paul Eggert's avatar
      Update from Gnulib · c4cd2a0b
      Paul Eggert authored
      This incorporates:
      2019-12-06 nstrftime: better width support for %N, %z
      2019-12-03 Avoid hassles caused by [[noreturn]] in C++
      2019-12-02 Fix mistakes in --enable-threads=isoc fixes from 2019-12-01
      * admin/merge-gnulib (AVOIDED_MODULES): Avoid pthread-h.
      * lib/_Noreturn.h, lib/nstrftime.c, m4/gnulib-common.m4:
      * m4/timer_time.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      c4cd2a0b
    • Michael Albinus's avatar
      Configure info-look.el to recognize Tramp symbols · 99ad65ed
      Michael Albinus authored
      * lisp/net/tramp-integration.el (info-lookup->cache)
      (info-lookup->mode-value, info-lookup->other-modes)
      (info-lookup->topic-value, info-lookup-maybe-add-help)
      (info-lookup-cache): Declare.
      (info-look): Configure info-look.el to recognize Tramp symbols.
      99ad65ed
    • Eli Zaretskii's avatar
      Clarify documentation of functions that use the default face · 30eac479
      Eli Zaretskii authored
      * lisp/simple.el (default-font-height, default-font-width)
      (default-line-height): Say in the doc strings that the default
      face these functions use is for the currently selected frame.
      
      * doc/lispref/display.texi (Attribute Functions)
      (Low-Level Font): Document more clearly the dependence of the
      results of 'face-font', 'default-font-width', and
      'default-font-height' on the frame's definition of the default
      face.
      30eac479
    • Eli Zaretskii's avatar
      Fix set-marker when the position is larger than the largest buffer · 1171fa32
      Eli Zaretskii authored
      * src/marker.c (set_marker_internal): Handle the case where
      POSITION is beyond PTRDIFF_MAX, which can happen if Emacs was
      built --with-wide-int.  Bug uncovered by the recently added
      overlay tests.
      1171fa32
    • Thierry Volpiatto's avatar
      48373e75
    • Thierry Volpiatto's avatar
      Fix setting completions* faces in · 4095a006
      Thierry Volpiatto authored
      `completion-pcm--hilit-commonality` so that these faces doesn't
      override possible already existing faces in other UIs.
      
      * lisp/minibuffer.el (completion-pcm--hilit-commonality): Use
      `add-face-text-property` instead of `put-text-property`.
      4095a006
    • Andreas Politz's avatar
      * test/src/buffer-tests.el: Add loads of overlay tests · bcf4201d
      Andreas Politz authored
      Taken from the `feature/noverlay` branch.
      Suggested by Vladimir Kazanov <vekazanov@gmail.com>.
      bcf4201d
    • Paul Eggert's avatar
      2019-12-05 regexp lint fixes · 4c933077
      Paul Eggert authored
      * lisp/org/org-agenda.el (org-agenda-filter):
      Fix unescaped literal ‘+’ in regexp.  Reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-12/msg00215.html
      * lisp/org/org.el (org-clone-subtree-with-time-shift):
      Fix a regexp typo that mishandled strings like ‘\1d’,
      reported by the same emaikl.
      * lisp/progmodes/verilog-mode.el (verilog-inject-inst):
      Omit unnecessary ‘?’ in regexp.  Reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-12/msg00217.html
      4c933077
  4. 05 Dec, 2019 7 commits
    • Eli Zaretskii's avatar
      Another fix for :extend when :inherit is used · 5ee43ba0
      Eli Zaretskii authored
      * src/xfaces.c (face_inherited_attr): Support also values of
      :inherit which are lists.  (Bug#37774)
      5ee43ba0
    • Eli Zaretskii's avatar
      Minor copyedits of 'jit-lock-antiblink-grace's docs · 21790e54
      Eli Zaretskii authored
      * lisp/jit-lock.el (jit-lock-antiblink-grace):
      * etc/NEWS (value): Reword the NEWS entry and the doc string.
      21790e54
    • Eli Zaretskii's avatar
      Fix recent modifications in emacs-module-tests · 85f8aa10
      Eli Zaretskii authored
      * test/data/emacs-module/mod-test.c (extract_big_integer): Fix
      calculation of size of 'magnitude' when 'emacs_limb_t' is wider
      than 'unsigned long'.
      
      * test/src/emacs-module-tests.el
      (module--test-assertions--load-non-live-object)
      (module--test-assertions--call-emacs-from-gc): On MS-Windows,
      check also mod-test-emacs with ".exe" appended, before
      skipping the tests.
      85f8aa10
    • Federico Tedin's avatar
      Make HIST arg of read-from-minibuffer work with buffer-local vars · 3586fef2
      Federico Tedin authored
      * lisp/simple.el (minibuffer-history-values): New function, should be
      used to access the minibuffer input history variable when the
      minibuffer might be active.  If the variable is buffer-local, the
      previous buffer's value will be used.
      (goto-history-element): Use the new function to access the minibuffer
      history.
      (minibuffer-history-isearch-wrap): Use the new function to access the
      minibuffer history.
      * src/minibuf.c (read_minibuf): Switch to previous buffer temporarily
      before updating history list (Bug#38317).
      (read-from-minibuffer): Extend documentation to mention that the
      result of using the command will be added to the history list by
      default.
      * doc/lispref/minibuf.texi (Minibuffer History): Mention the
      possibility of using a buffer-local variable as history.
      * etc/NEWS: Announce changes.
      3586fef2
    • Paul Eggert's avatar
      Pacify GCC 9.2.1 with recent module changes · 90270847
      Paul Eggert authored
      * src/emacs-module.c (module_encode): Remove unused decl.
      (module_extract_big_integer): Pacify gcc -Wenum-compare.
      90270847
    • Paul Eggert's avatar
      Fix regex repetition of repetitions · ab612302
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-12/msg00066.html
      * lisp/gnus/gnus-util.el (gnus-emacs-version):
      * lisp/mail/rfc2368.el (rfc2368-mailto-regexp):
      * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter):
      * lisp/obsolete/terminal.el (te-parse-program-and-args):
      * lisp/org/org-table.el (org-table-wrap-region):
      * lisp/progmodes/verilog-mode.el (verilog-inject-inst):
      Avoid repetition-of-repetition in regexp.
      ab612302
    • Philipp Stephani's avatar
      Fix small bugs introduced in commit 096be9c4 · 4472b053
      Philipp Stephani authored
      * src/module-env-27.h:
      * src/emacs-module.c (module_make_big_integer): Use 'emacs_limb_t'
      instead of 'unsigned long' consistently
      4472b053
  5. 04 Dec, 2019 10 commits
    • Juri Linkov's avatar
      * lisp/tab-line.el: Cache the tab-line-format template. · bd95d66a
      Juri Linkov authored
      (tab-line-format): Cache the result of tab-line-format-template in window.
      (tab-line-format-template): New function that returns the value to cache.
      bd95d66a
    • Juri Linkov's avatar
      * lisp/windmove.el (windmove-display-new-tab): New command. · f336ae77
      Juri Linkov authored
      (windmove-display-default-keybindings): Bind it to '?t'.
      (windmove-display-in-direction): Call tab-bar-new-tab when 'dir' is 'new-tab'.
      f336ae77
    • Juri Linkov's avatar
    • Juri Linkov's avatar
      * lisp/tab-bar.el (switch-to-buffer-other-tab): Use display-buffer-in-tab. · 67815c6b
      Juri Linkov authored
      (tab-bar--tab): Use float-time instead of integer.
      This improves correct detection of recent tabs switched within 1 sec.
      (tab-bar--current-tab, tab-bar--current-tab-index)
      (tab-bar--tab-index, tab-bar--tab-index-by-name)
      (tab-bar--tab-index-recent): Add optional arg FRAME.
      (tab-bar-move-tab-to-frame): Add with-selected-frame for tab-bar-close-tab.
      (tab-bar--reusable-frames): New function.
      (tab-bar-get-buffer-tab): Add index to the found tab.
      (display-buffer-in-tab): Use `tab-name' entry instead of `name'.
      Add `reusable-frames' entry.  (bug#38354)
      67815c6b
    • João Távora's avatar
      New jit-lock-antiblink-grace feature · 5b45c269
      João Távora authored
      * lisp/jit-lock.el (jit-lock-antiblink-grace): New defcustom.
      (jit-lock--antiblink-line-beginning-position)
      (jit-lock--antiblink-string-or-comment): New variables
      (jit-lock--antiblink-post-command): New helper.
      (jit-lock-mode): Tweak post-command-hook and
      jit-lock-context-timer.
      
      * etc/NEWS: Mention jit-lock-antiblink-grace
      5b45c269
    • Philipp Stephani's avatar
      Use new function encode_string_utf_8 for the module API, too · 0e774d4f
      Philipp Stephani authored
      * src/emacs-module.c (module_encode): Remove.
      (module_copy_string_contents): Use encode_string_utf_8.
      (syms_of_module): Define symbol 'unicode-string-p'.
      0e774d4f
    • Philipp Stephani's avatar
    • Philipp Stephani's avatar
      Change module interface to no longer use GMP objects directly. · 096be9c4
      Philipp Stephani authored
      As described in the new comment added to emacs-module.c, using GMP
      directly in the module interface has significant downsides: it couples
      the module interface directly to the implementation and requires
      module authors to link their module against the same GMP library as
      Emacs itself, which is often difficult and an unnecessary burden.  By
      picking a representation for the magnitude that often matches the one
      used by GMP, we can avoid overhead when converting from and to GMP in
      most cases.
      
      Loading the test module in test/data/emacs-module and evaluating
      
      (dotimes (_ 10000)
        (mod-test-double (* 2 most-negative-fixnum)))
      
      under Callgrind shows that on my (GNU/Linux) machine Emacs only spends
      10% of the CPU time of mod-test-double in mpz_import and mpz_export
      combined, even though that function does little else.  (By contrast,
      30% is spent in allocate_pseudovector.)
      
      * src/emacs-module.h.in: Don't check EMACS_MODULE_GMP.  Don't include
      gmp.h.  Remove emacs_mpz structure.  Instead, define type alias
      emacs_limb_t and macro EMACS_LIMB_MAX.
      
      * src/module-env-27.h: Change interface of extract_big_integer and
      make_big_integer to take a sign-magnitude representation instead of
      mpz_t.
      
      * src/emacs-module.c: Don't check EMACS_MODULE_GMP or
      EMACS_MODULE_HAVE_MPZ_T.  Add a comment about the chosen
      implementation.
      (module_extract_big_integer, module_make_big_integer): Reimplement
      without using mpz_t in the interface.
      
      * doc/lispref/internals.texi (Module Values): Adapt function
      documentation and example.  Stop mentioning GMP and EMACS_MODULE_GMP.
      
      * test/data/emacs-module/mod-test.c: Don't define EMACS_MODULE_GMP or
      EMACS_MODULE_HAVE_MPZ_T.
      (memory_full, extract_big_integer, make_big_integer): New helper
      functions, identical to example in the Info documentation.
      (Fmod_test_nanoseconds, Fmod_test_double): Adapt to new interface.
      096be9c4
    • Bastien's avatar
      etc/ORG-NEWS: Fix contents · 0ca32d12
      Bastien authored
      0ca32d12
    • Juanma Barranquero's avatar
      9ef87362