1. 20 Dec, 2018 7 commits
  2. 19 Dec, 2018 10 commits
  3. 18 Dec, 2018 10 commits
    • Juri Linkov's avatar
      More font-lock improvements for diff-mode · fb163130
      Juri Linkov authored
      * lisp/vc/diff-mode.el (diff-font-lock-keywords): Use diff-header face
      for git index lines (like already used for bzr index lines).
      Use diff-file-header face for binary file headers.
      (diff-find-source-location): Use expand-file-name for vc-find-revision.
      (diff--font-lock-prettify): Use diff-indicator-* faces for
      left-fringe indicators.
      (diff-syntax-fontify-props): Optimize to not use text-property-not-all
      for font-lock-ensure.
      
      * lisp/replace.el (occur-engine-line): Simplify to use font-lock-ensure
      without text-property-not-all.
      fb163130
    • Juri Linkov's avatar
      Fontify one-line diffs without the final newline (bug#33567) · 8cbbf4ba
      Juri Linkov authored
      * lisp/vc/diff-mode.el (diff-hunk-text, diff-syntax-fontify-hunk):
      Skip lines beginning with backslash like "\ No newline at end of file".
      (diff-syntax-fontify-hunk): Use string-trim-right.
      For one-line diffs use 1 explicitly in the list of line numbers.
      8cbbf4ba
    • Rob Browning's avatar
      Avoid test failures if directory name looks like a regexp · ab8ed418
      Rob Browning authored
      Taken from <https://sources.debian.org/patches/emacs/1:26.1+1-1>
      * test/lisp/ibuffer-tests.el (ibuffer-filter-inclusion-3):
      * test/lisp/net/tramp-tests.el (tramp-test42-remote-load-path):
      Regexp-quote file names to avoid failures with directory names
      of the form "build/emacs-i87jK3/emacs-26.1+1/...".
      ab8ed418
    • Paul Eggert's avatar
      Support (ash INTEGER BIGNUM) · cdaaaf2e
      Paul Eggert authored
      * src/data.c (emacs_mpz_mul_2exp): 2nd arg is now a
      nonnegative EMACS_INT not mp_bitcnt_t, to simplify checking.
      (Fash): Support COUNT values that are bignums or that
      exceed mp_bitcnt_t range.
      * test/src/data-tests.el (data-tests-ash-lsh): Test this.
      cdaaaf2e
    • Michael Albinus's avatar
      Fix Bug#33524 · 80e98568
      Michael Albinus authored
      * lisp/progmodes/flymake-proc.el
      (flymake-proc-create-temp-with-folder-structure):
      Unquote file-name.  (Bug#33524)
      80e98568
    • Glenn Morris's avatar
      Expect tramp environment test to fail on hydra · 5a04e826
      Glenn Morris authored
      * test/lisp/net/tramp-tests.el (tramp-test32-environment-variables):
      Expect failure on hydra.nixos.org.
      5a04e826
    • Glenn Morris's avatar
      A filenotify test now passes on hydra · 5486a46d
      Glenn Morris authored
      * test/lisp/filenotify-tests.el (file-notify-test04-autorevert):
      Remote test now passes on hydra.nixos.org, since PATH
      workaround for bug#33781.
      5486a46d
    • Michael Albinus's avatar
      Fix Bug#33781 · 710e79a6
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-connection-properties):
      * lisp/net/tramp-sh.el (tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args):
      Reinsert autoload cookie.  (Bug#33781)
      
      * test/lisp/net/tramp-tests.el: Do not require tramp-sh before
      changing tramp-remote-path.
      710e79a6
    • NicolasPetton's avatar
      New convenience functions in seq.el · 5a9eba60
      NicolasPetton authored
      Functions to access the first or all but the first elements of
      sequences have been repeatedly asked for (the last occurrence being
      https://github.com/NicolasPetton/seq.el/issues/9).
      
      * lisp/emacs-lisp/seq.el (seq-first, seq-rest): New functions.
      * test/lisp/emacs-lisp/seq-tests.el (test-seq-first, test-seq-rest):
      New tests for seq-first and seq-rest.
      5a9eba60
    • Glenn Morris's avatar
      Tiny ert-summarize-tests-batch-and-exit improvement · 73b2f7ac
      Glenn Morris authored
      * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
      Report the details of unexpected passes as well as failures.
      73b2f7ac
  4. 17 Dec, 2018 13 commits
    • Juri Linkov's avatar
      Syntactic fontification of diff hunks (bug#33567) · 6973b148
      Juri Linkov authored
      * lisp/vc/diff-mode.el (diff-font-lock-syntax): New defcustom.
      (diff-default-directory): New buffer-local variable.
      (diff-indicator-removed, diff-indicator-added)
      (diff-indicator-changed): Set foreground to distinctive colors.
      (diff-context): Remove colors to make room for syntax highlighting.
      (diff-font-lock-keywords): Add diff--font-lock-syntax.
      (diff--font-lock-cleanup): Remove diff-mode syntax overlays.
      (diff--font-lock-syntax, diff--font-lock-syntax--refresh)
      (diff-syntax-fontify-revisions, diff-syntax-fontify-hunk)
      (diff-syntax-fontify-props): New functions.
      
      * lisp/vc/diff.el (diff-no-select): Set diff-default-directory to
      default-directory.
      
      * doc/emacs/files.texi (Diff Mode): Document diff-font-lock-syntax.
      6973b148
    • Glenn Morris's avatar
    • Paul Eggert's avatar
      Make org-protocol-flatten always an alias · c5e02f2b
      Paul Eggert authored
      * lisp/org/org-protocol.el (org-protocol-flatten):
      Rewrite as top-level alias, as per Stefan’s suggestion,
      to avoid compiler warnings.
      c5e02f2b
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/map.el: Avoid special casing lists. · 55838e4e
      Stefan Monnier authored
      (map-not-inplace, map-inplace): New errors.
      (map-insert): New generic function.
      (map-put!): Signal map-not-inplace rather than a generic 'error'.
      (map-elt): Use map-not-inplace and map-insert to avoid hardcoding
      a special case for lists.
      
      * test/lisp/emacs-lisp/map-tests.el (test-map-put!): Rename from
      test-map-put.  Also test the errors signaled.
      55838e4e
    • Glenn Morris's avatar
      Avoid tests failures on hydra due to Tramp autoload changes · 2c3f7f9c
      Glenn Morris authored
      * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el:
      * test/lisp/net/tramp-tests.el: Require tramp-sh before changing
      tramp-remote-path.
      2c3f7f9c
    • Paul Eggert's avatar
      One more flatten-tree test · 36215936
      Paul Eggert authored
      * test/lisp/subr-tests.el (subr-tests-flatten-tree):
      Add a test for lots of nothing.
      36215936
    • Paul Eggert's avatar
      Some more flatten-tree aliases · ef144113
      Paul Eggert authored
      * lisp/allout.el (allout-flatten):
      * lisp/progmodes/hideif.el (hif-flatten):
      Now an obsolete alias for flatten-tree.  All callers changed.
      * lisp/org/org-protocol.el (org-protocol-flatten):
      Make it an alias for flatten-tree if available.
      * lisp/progmodes/js.el (js--flatten-list):
      Remove alias.  We shouldn’t need obsolete function aliases for
      private functions.
      ef144113
    • Paul Eggert's avatar
      Improve flatten-tree documentation · a5995a32
      Paul Eggert authored
      * doc/lispref/lists.texi (Building Lists):
      * lisp/subr.el (flatten-tree):
      Don’t imply that flatten-tree modifies its argument.
      Clarify wording.
      a5995a32
    • Paul Eggert's avatar
      Improve flatten-tree performance · 8664ba18
      Paul Eggert authored
      * lisp/subr.el (flatten-tree): Improve performance by calling
      ‘cons’ once rather than twice when a cons cell is popped.
      8664ba18
    • Paul Eggert's avatar
      Assume ‘emacs’ is defined in Emacs-only code · 4d77c4ac
      Paul Eggert authored
      * src/charset.c, src/coding.c, src/coding.h, src/gmalloc.c:
      * src/ralloc.c, src/regex-emacs.c: Simplify slightly by
      assuming that ‘emacs’ is defined.  These modules have long
      been specific to Emacs, and are not used elsewhere.
      4d77c4ac
    • Paul Eggert's avatar
      More porting to GCC 8 of --enable-gcc-warnings · e8bb0420
      Paul Eggert authored
      Backport from master.
      I ran into this when building Emacs 26 with GCC 8 on Fedora 29 x86.
      * lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu):
      * lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance):
      * lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]:
      No longer const.
      * src/emacs-module.c: Ignore -Wcast-function-type.
      e8bb0420
    • Michael Albinus's avatar
      Use `flatten-tree' in Tramp · 739dca78
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-flatten-tree): New defun.
      (tramp-compat-flatten-list): Remove.
      
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it.
      739dca78
    • Alex Branham's avatar
      New function flatten-tree · 36b05dc8
      Alex Branham authored
      Co-authored-by: default avatarBasil L. Contovounesios <contovob@tcd.ie>
      
      * doc/lispref/lists.texi: Document `flatten-tree'.
      
      * lisp/progmodes/js.el (js--maybe-join):
      * lisp/printing.el (pr-switches):
      * lisp/lpr.el (lpr-print-region):
      * lisp/gnus/nnimap.el (nnimap-find-wanted-parts):
      * lisp/gnus/message.el (message-talkative-question):
      * lisp/gnus/gnus-sum.el (gnus-remove-thread)
      (gnus-thread-highest-number, gnus-thread-latest-date):
      * lisp/eshell/esh-util.el (eshell-flatten-and-stringify):
      * lisp/eshell/esh-opt.el (eshell-eval-using-options):
      * lisp/eshell/esh-ext.el (eshell-external-command):
      * lisp/eshell/em-xtra.el (eshell/expr):
      * lisp/eshell/em-unix.el (eshell/rm, eshell-mvcpln-template)
      (eshell/cat, eshell/make, eshell-poor-mans-grep, eshell-grep)
      (eshell/du, eshell/time, eshell/diff, eshell/locate):
      * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
      * lisp/eshell/em-term.el (eshell-exec-visual):
      * lisp/eshell/em-dirs.el (eshell-dirs-substitute-cd, eshell/cd):
      * lisp/eshell/em-basic.el (eshell/printnl):
      Use new flatten-tree.
      
      * lisp/progmodes/js.el (js--flatten-list):
      * lisp/lpr.el (lpr-flatten-list):
      * lisp/gnus/message.el (message-flatten-list):
      * lisp/eshell/esh-util.el (eshell-flatten-list):
      Obsolete in favor of Emacs-wide `flatten-tree'.
      
      * lisp/subr.el (flatten-list): Alias to `flatten-tree' for
      discoverability.
      
      * lisp/subr.el (flatten-tree): New defun.
      
      * test/lisp/subr-tests.el (subr-tests-flatten-tree): New test.
      36b05dc8