1. 29 Dec, 2018 1 commit
  2. 28 Dec, 2018 1 commit
    • João Távora's avatar
      Tweak electric-layout-mode's API again after Stefan's comments · ba97dad7
      João Távora authored
      * lisp/electric.el (electric-layout-rules): Tweak docstring.
      (electric-layout-post-self-insert-function-1): MATCHER is always a
      char.  Call function with last-command-event.
      * test/lisp/electric-tests.el (electric-pair-mode-newline-between-parens)
      (electric-layout-mode-newline-between-parens-without-e-p-m): Don't
      pass a name to the ERT test buffer.
      (electric-layout-mode-newline-between-parens-without-e-p-m-2): New test.
  3. 24 Dec, 2018 2 commits
  4. 23 Dec, 2018 10 commits
    • João Távora's avatar
      Slightly more powerful electric-layout-rules · 1173d509
      João Távora authored
      * lisp/electric.el (electric-layout-rules): Expand slightly.
      (electric-layout-post-self-insert-function-1): Accept new rules.
      * test/lisp/electric-tests.el (electric-pair-mode-newline-between-parens)
      (electric-layout-mode-newline-between-parens-without-e-p-m): New
      (failing) tests.
    • João Távora's avatar
      Test electric.el in plainer c-mode without c-electric-{brace,paren} · fae3e7c0
      João Távora authored
      If cc-mode ever drops/changes its usage of c-electric-{brace,paren}
      test that electric pairing, layout and indentation based on
      electric.el keep working.
      * test/lisp/electric-tests.el
      (electric-layout-int-main-allman-style): Change order of after and
      (plainer-c-mode): New test mode.
      (electric-modes-in-c-mode-with-self-insert-command): New test.
    • João Távora's avatar
      Handle entries of multiple symbols in electric-layout-rules · e4ef7a2e
      João Távora authored
      Instead of allowing multiple rules in electric-layout-rules, allow
      rules to specify multiple symbols.  This should be entirely
      backward-compatible to existing customizations of that variable.
      * lisp/electric.el (electric-layout-rules):  a single entry can
      specify multiple symbols.
      (electric-layout-post-self-insert-function-1):  rework.
      * test/lisp/electric-tests.el: Update tests to work with new semantics
        of electric-layout-rules.
    • João Távora's avatar
      Minor cleanup in new electric-layout-mode after Stefan's feedback · e02256cf
      João Távora authored
      * lisp/electric.el (electric-layout-post-self-insert-function-1):
      Update comments and function names.
    • 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.
  5. 22 Dec, 2018 7 commits
  6. 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.
  7. 20 Dec, 2018 14 commits
  8. 19 Dec, 2018 3 commits