1. 23 Dec, 2018 6 commits
    • João Távora's avatar
      Rework electric-layout-post-self-insert-function (bug#33794) · 6deb668e
      João Távora authored
      This should now fix more problems reported in (bug#33794) regarding
      insertion of newlines before and after the opening brace.  Write two
      automated tests.
      Also provide a new electric-layout-local-mode for testing.
      * lisp/electric.el (electric-layout-post-self-insert-function-1):
      New function that does the work for
      (electric-layout-local-mode): New minor mode.
      * test/lisp/electric-tests.el (electric-layout-int-main-kernel-style)
      (electric-layout-int-main-allman-style): Add two tests.
    • João Távora's avatar
      Extend electric-layout-mode to handle more complex layouts · cb1b4a8c
      João Távora authored
      Also, have it play nice with electric-pair-mode.
      Multiple matching entries in `electric-layout-rules' are executed in
      order of appearance.  When inserting a newline in the 'after-stay
      rule, ensure electric-pair-open-newline-between-pairs is nil.
      Arguably the logic behind electric-pair-open-newline-between-pairs
      should be moved to electric-layout-mode, but the current rule-matching
      engine doesn't allow for it.  The current solution seems to be good
      enough for the situations reported in bug#33794.
      * lisp/electric.el (electric-layout-rules): Adjust docstring.
      (electric-layout-post-self-insert-function): Loop through rules.  Bind
      electric-pair-open-newline-between-pairs to nil when handling
    • Eli Zaretskii's avatar
    • Michael Albinus's avatar
      ; Add +++ to recent entry in etc/NEWS · 492ab113
      Michael Albinus authored
    • Michael Albinus's avatar
      ; Fix wording in etc/NEWS · 04c768b9
      Michael Albinus authored
    • Michael Albinus's avatar
      Handle `make-process' in Tramp and ange-ftp · 3ea89aca
      Michael Albinus authored
      * doc/lispref/processes.texi (Asynchronous Processes):
      Explain, that not all file name handlers support `make-process'.
      * lisp/net/ange-ftp.el:
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      * lisp/net/tramp.el (tramp-file-name-for-operation): Add `make-process'.
      * lisp/vc/ediff-util.el:
      * src/process.c:
      * test/src/process-tests.el: Use "file name handler" consequently.
  2. 22 Dec, 2018 7 commits
  3. 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.
  4. 20 Dec, 2018 14 commits
  5. 19 Dec, 2018 11 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.