1. 20 Dec, 2018 10 commits
  2. 19 Dec, 2018 14 commits
    • Glenn Morris's avatar
      Skip rather than fail in flymake tests · 7ca9bb78
      Glenn Morris authored
      * test/lisp/progmodes/flymake-tests.el
      (flymake-tests--wait-for-backends): Skip rather than fail if
      backends are slow to respond.  This always seems like a temporary
      system glitch and not something that should be reported as a failure.
      7ca9bb78
    • Eric Abrahamsen's avatar
      Make gnus-newsgroup-name local var available to gnus-summary-mode · 88215d24
      Eric Abrahamsen authored
      * lisp/gnus/gnus-sum.el (gnus-summary-mode-group): New defvar for
        passing gnus-newsgroup-name (a local variable) into the body of
        gnus-summary-mode, so that it's available to gnus-summary-mode-hook.
      88215d24
    • Juri Linkov's avatar
      * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure · 3a1d7227
      Juri Linkov authored
      unconditionally.  (Bug#33798)
      3a1d7227
    • Paul Eggert's avatar
      cl-make-random-state was not copying its arg · f4ea7464
      Paul Eggert authored
      Problem reported by Xu Chunyang (Bug#33731).
      * lisp/emacs-lisp/cl-extra.el (cl-make-random-state):
      Use copy-sequence, not copy-tree, so that the record is copied.
      * test/lisp/emacs-lisp/cl-extra-tests.el:
      (cl-extra-test-cl-make-random-state): New test.
      f4ea7464
    • Paul Eggert's avatar
      Minor fixes/simplifications to time functions · 5bd60744
      Paul Eggert authored
      * doc/lispintro/emacs-lisp-intro.texi (Files List): Simplify.
      * doc/lispref/os.texi (Time of Day): Mention format-time-string
      as an alternative to current-time-string.
      * lisp/arc-mode.el (archive-unixdate, archive-unixtime):
      Port better to future versions of Emacs where (COUNT . HZ)
      will take precedence to (HI . LO).
      * lisp/arc-mode.el (archive-unixtime):
      * lisp/calendar/todo-mode.el (todo-insert-item--basic)
      (todo-item-done, todo-read-time):
      Prefer format-time-string to substringing current-time-string.
      * lisp/calc/calc-forms.el (calc-time, calcFunc-now):
      Prefer decode-time to parsing the output of current-time-string.
      * lisp/emacs-lisp/cl-extra.el (cl--random-time):
      Prefer encode-time to hashing the output of current-time-string.
      * lisp/gnus/gnus-score.el (gnus-score-headers)
      (gnus-score-adaptive):
      Avoid stringifying and then reparsing timestamp.
      * src/timefns.c (Fencode_time): Omit redundant assignment.
      5bd60744
    • Glenn Morris's avatar
      Skip a vc-bzr test if run as root · fda43a7b
      Glenn Morris authored
      * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads):
      Skip this test when run as root.  This works around a race
      condition in root-specific code in vc-mode-line when deleting a file.
      
      ; Do not merge to master, instead fix vc-mode-line there.
      fda43a7b
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-set-remote-path): Send a warning, if · 3fa8bdca
      Michael Albinus authored
      $PATH exceeds PATH_MAX on the remote system.
      3fa8bdca
    • Nicholas Drozd's avatar
    • Glenn Morris's avatar
      ; Copyright year fix · 4370b8eb
      Glenn Morris authored
      No need to merge to master
      4370b8eb
    • Chris Feng's avatar
      Backport: Handle unread-command-events consistently (bug#23980) · 305aca0a
      Chris Feng authored
      * src/keyboard.c (read_char): Events put into `unread-command-events'
      with the form (t . EVENT) should always have the t stripped when read
      out.
      * test/src/keyboard-tests.el: New tests for `unread-command-events'.
      
      (cherry picked from commit 1f3f4b12)
      305aca0a
    • Glenn Morris's avatar
      Skip a remote filenotify test on hydra · dc3f70dc
      Glenn Morris authored
      * test/lisp/filenotify-tests.el (file-notify--deftest-remote):
      Add optional argument to skip test.
      (file-notify-test07-many-events-remote): Skip on hydra.nixos.org.
      dc3f70dc
    • Stefan Monnier's avatar
      * lisp/font-lock.el: Use lexical-binding · 70926a3e
      Stefan Monnier authored
      (font-lock-initial-fontify, font-lock-compile-keywords):
      Silence compiler warning.
      (font-lock-ensure-function): Fix some problems in last commit.
      70926a3e
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      Restrict downcasing in elisp xref tests (bug#25534) · 4c6c327d
      Glenn Morris authored
      The tests happen to not fail at the moment because find-library-name
      now has an extra feature, find-library--from-load-history, which
      happens to do a case-insensitive regexp match; but still it seems
      better not to rely on this.
      
      * test/lisp/progmodes/elisp-mode-tests.el (xref--case-insensitive):
      New variable.
      (xref-elisp-test-run, emacs-test-dir): Only downcase if the
      filesystem seems to be case-insensitive.
      4c6c327d
  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 6 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