1. 21 Dec, 2018 2 commits
    • Michael Albinus's avatar
      Fix Bug#33735 · 452d0c52
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
      Delete empty lines.  (Bug#33735)
      (tramp-sh-inotifywait-process-filter): Use `string-match'.
      (tramp-set-remote-path): Check for PIPE_BUF but PATH_MAX.
      * test/lisp/filenotify-tests.el: Handle $REMOTE_FILE_NOTIFY_LIBRARY.
      (file-notify--deftest-remote): Suppress vc-handled-backends.
      (file-notify-test08-backup): Do not expect failure on hydra.
    • Michael Albinus's avatar
      * test/lisp/filenotify-tests.el, test/lisp/shadowfile-tests.el: · f1faf85f
      Michael Albinus authored
      Don't require tramp-sh, bug#33781 is fixed.
  2. 20 Dec, 2018 14 commits
  3. 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.
    • 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.
    • Juri Linkov's avatar
      * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure · 3a1d7227
      Juri Linkov authored
      unconditionally.  (Bug#33798)
    • 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.
    • 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)
      Avoid stringifying and then reparsing timestamp.
      * src/timefns.c (Fencode_time): Omit redundant assignment.
    • 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.
    • 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.
    • Nicholas Drozd's avatar
    • Glenn Morris's avatar
      ; Copyright year fix · 4370b8eb
      Glenn Morris authored
      No need to merge to master
    • 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
      * test/src/keyboard-tests.el: New tests for `unread-command-events'.
      (cherry picked from commit 1f3f4b12)
    • 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.
    • 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.
    • 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.
  4. 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.
    • 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.
    • 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/...".
    • 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.
    • Michael Albinus's avatar
      Fix Bug#33524 · 80e98568
      Michael Albinus authored
      * lisp/progmodes/flymake-proc.el
      Unquote file-name.  (Bug#33524)
    • 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.
    • 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.
    • 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.
    • 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
      * 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.
    • 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.