1. 26 Dec, 2013 1 commit
    • João Távora's avatar
      Make Electric Pair mode smarter/more useful: · 3b8d5131
      João Távora authored
      * lisp/electric.el: Pairing/skipping helps preserve
        balance. Autobackspacing behaviour. Opens extra newlines between
        pairs. Skip whitespace before closing delimiters.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use new
        features.
      
      * test/automated/electric-tests.lisp: New file.
      
      * doc/emacs/programs.texi: Describe new features.
      
      * lisp/simple.el: Pass non-nil interactive arg to newline call inside
        newline-and-indent.
      3b8d5131
  2. 25 Dec, 2013 1 commit
    • Fabián Ezequiel Gallina's avatar
      * lisp/progmodes/python.el: · 01379221
      Fabián Ezequiel Gallina authored
      (python-nav--lisp-forward-sexp): New function.
      (python-nav--lisp-forward-sexp-safe): Use it.  Rename from
      python-nav-lisp-forward-sexp-safe.
      (python-nav--forward-sexp): New argument SAFE allows switching
      forward sexp movement behavior for parens.
      (python-nav-forward-sexp): Throw errors on unterminated parens.
      (python-nav-backward-sexp, python-nav-forward-sexp-safe)
      (python-nav-backward-sexp-safe): New functions.
      (python-shell-buffer-substring): Use
      `python-nav-forward-sexp-safe'.
      
      * test/automated/python-tests.el
      (python-nav-lisp-forward-sexp-safe-1): Remove test.
      (python-nav-forward-sexp-safe-1): New test.
      
      Fixes: debbugs:16191
      01379221
  3. 20 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New · b520f210
      Dmitry Gutov authored
      option. 
      (ruby-smie--indent-to-stmt-p): Use it.
      (ruby-smie-rules): Revert the logic in the handling of `when'.
      Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
      (ruby-deep-arglist, ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style): Update docstrings to note that the
      vars don't have any effect with SMIE.
      
      * test/automated/ruby-mode-tests.el: Add tests for
      `ruby-align-to-stmt-keywords'.
      
      * test/indent/ruby.rb: Update examples to reflect the lack of change in
      default indentation of `begin' blocks.
      
      Fixes: debbugs:16182
      b520f210
  4. 17 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      Fix bug#16116 · 5556c0ce
      Dmitry Gutov authored
      * lisp/emacs-lisp/smie.el (smie-indent--rule): Extract `smie-indent--rule-1'.
      (smie-indent-close): Call `smie-indent--rule-1' with METHOD
      :close-all, to see which indentation method to use.
      (smie-rules-function): Document the method :close-all.
      
      * test/indent/ruby.rb: Update examples according to the change
      in `smie-indent-close'.
      5556c0ce
  5. 14 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      Fix bug#16118 · 276bc333
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
      open-paren tokens when preceded by a open-paren, too.
      (ruby-smie-rules): Handle virtual indentation after open-paren
      tokens specially.  If there is code between it and eol, return the
      column where is starts.
      
      * test/indent/ruby.rb: New examples.
      276bc333
  6. 12 Dec, 2013 4 commits
  7. 08 Dec, 2013 1 commit
  8. 06 Dec, 2013 1 commit
  9. 05 Dec, 2013 1 commit
  10. 29 Nov, 2013 2 commits
    • Eli Zaretskii's avatar
      Fix reftex-tests on MS-Windows. · de20f087
      Eli Zaretskii authored
       test/automated/reftex-tests.el (reftex-parse-from-file-test): Run
       temp-dir through file-truename, to make sure the temporary file
       names are comparable as strings.
      de20f087
    • Eli Zaretskii's avatar
      Fix decoder-tests test on MS-Windows. · a48eb50b
      Eli Zaretskii authored
       test/automated/decoder-tests.el (ert-test-decoder-prefer-utf-8):
       Force Unix EOLs by using 'utf-8-unix', since the default of
       'utf-8' is system-dependent, while the test expects to see Unix
       EOLs.
      a48eb50b
  11. 28 Nov, 2013 3 commits
  12. 27 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * automated/file-notify-tests.el · 1baa1e49
      Michael Albinus authored
      (file-notify-test-remote-temporary-file-directory):
      Check $REMOTE_TEMPORARY_FILE_DIRECTORY.
      (tramp-read-passwd): Check $REMOTE_ALLOW_PASSWORD.
      (file-notify--deftest-remote): Cleanup connection initially.
      (file-notify-test03-autorevert): Run also in batch mode.  Use a
      larger timeout for remote files.  `sit-for' 1 second; 0.1 second
      does not work on MS Windows.  Call `accept-process-output' for
      remote files.  Apply `string-match' instead of `string-equal', the
      messages are different on MS Windows.
      
      * automated/tramp-tests.el (tramp-test-temporary-file-directory):
      Use $REMOTE_TEMPORARY_FILE_DIRECTORY.
      (tramp-read-passwd): Check $REMOTE_ALLOW_PASSWORD.
      1baa1e49
  13. 26 Nov, 2013 1 commit
  14. 23 Nov, 2013 3 commits
    • Glenn Morris's avatar
      Stop some python tests leaving temp-files behind · 0b09f7c0
      Glenn Morris authored
      * test/automated/python-tests.el (python-shell-make-comint-1)
      (python-shell-make-comint-2, python-shell-get-process-1):
      Suppress creation of some temp-files.
      0b09f7c0
    • Glenn Morris's avatar
      Use skip-unless in some python tests · f4d341af
      Glenn Morris authored
      * test/automated/python-tests.el (python-shell-parse-command-1)
      (python-shell-make-comint-1, python-shell-make-comint-2)
      (python-shell-get-process-1)
      (python-shell-internal-get-or-create-process-1):
      Skip rather than fail if prereqs not found.
      f4d341af
    • Glenn Morris's avatar
      Empty elements in EMACSLOADPATH now stand for the default · 17e0445b
      Glenn Morris authored
      * src/lread.c (load_path_check): Take path to check as argument.
      (load_path_default): New, split from init_lread.
      (init_lread): Move calc of default load-path to load_path_default.
      Empty elements in EMACSLOADPATH now stand for the default.
      (load-path): Doc fix.
      
      * src/emacs.c (decode_env_path): Add option to treat empty elements
      as nil rather than ".".
      
      * src/callproc.c (init_callproc_1, init_callproc):
      * src/image.c (Vx_bitmap_file_path):
      * src/lisp.h (decode_env_path):
      * lread.c (Vsource_directory):
      Update for new argument spec of decode_env_path.
      
      * leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting.
      
      * lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting.
      
      * test/automated/Makefile.in (emacs):
      Empty EMACSLOADPATH rather than unsetting.
      
      * doc/emacs/cmdargs.texi (General Variables):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      
      * doc/lispref/loading.texi (Library Search):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:12100
      17e0445b
  15. 22 Nov, 2013 2 commits
  16. 21 Nov, 2013 2 commits
  17. 18 Nov, 2013 1 commit
    • Paul Eggert's avatar
      Improve API of recently-added bool vector functions. · ec2c4ee6
      Paul Eggert authored
      The old API had (bool-vector-count-matches A B)
      and (bool-vector-count-matches-at A B I), which gave the
      misleading impression that the two functions were variants, one
      with a location I.  The new API has (bool-vector-count-population A)
      and (bool-vector-count-consecutive A B I) to make the distinction
      clearer.  The first function no longer has a B argument, since the
      caller can easily determine the number of nils if the length and
      number of ts is known.
      * src/data.c (Fbool_vector_count_population): Rename from
      bool_vector_count_matches, and accept just 1 argument.
      (Fbool_vector_count_consecutive): Rename from
      Fbool_vector_count_matches_at.
      * test/automated/data-tests.el: Adjust to API changes.
      
      Fixes: debbugs:15912
      ec2c4ee6
  18. 16 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * automated/tramp-tests.el (tramp-test07-file-exists-p) · 0010ca51
      Michael Albinus authored
      (tramp-test08-file-local-copy)
      (tramp-test09-insert-file-contents, tramp-test10-write-region)
      (tramp-test11-copy-file, tramp-test12-rename-file)
      (tramp-test13-make-directory, tramp-test14-delete-directory)
      (tramp-test15-copy-directory, tramp-test16-directory-files)
      (tramp-test17-insert-directory, tramp-test18-file-attributes)
      (tramp-test19-directory-files-and-attributes)
      (tramp-test20-file-modes, tramp-test21-file-links)
      (tramp-test22-file-times, tramp-test23-visited-file-modtime)
      (tramp-test24-file-name-completion, tramp-test25-load)
      (tramp-test26-process-file, tramp-test27-start-file-process)
      (tramp-test28-shell-command): Cleanup connection initially.
      0010ca51
  19. 15 Nov, 2013 2 commits
    • Michael Albinus's avatar
      * automated/tramp-tests.el (tramp-test29-utf8): Cleanup the · 82407168
      Michael Albinus authored
      connection before running the test.  Reenable last test case.
      82407168
    • Michael Albinus's avatar
      * automated/tramp-tests.el (tramp-test15-copy-directory) · 3cd4192f
      Michael Albinus authored
      (tramp-test16-directory-files, tramp-test17-insert-directory)
      (tramp-test18-file-attributes)
      (tramp-test19-directory-files-and-attributes)
      (tramp-test20-file-modes, tramp-test21-file-links)
      (tramp-test22-file-times, tramp-test23-visited-file-modtime)
      (tramp-test24-file-name-completion, tramp-test25-load)
      (tramp-test26-process-file, tramp-test27-start-file-process):
      (tramp-test28-shell-command): Protect unwindforms with `ignore-errors'.
      (tramp-test29-utf8): New test.
      3cd4192f
  20. 13 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * automated/file-notify-tests.el (file-notify-test02-events) · 927fbd6b
      Michael Albinus authored
      (file-notify-test03-autorevert): Suppress messages in `write-region'.
      
      * automated/tramp-tests.el (tramp-test02-file-name-dissect)
      (tramp-test03-file-name-defaults, tramp-test21-file-links): Add tests.
      (tramp-test26-process-file, tramp-test28-shell-command): Ensure,
      that the directory is not empty when calling "ls".
      927fbd6b
  21. 11 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * automated/tramp-tests.el (tramp-test-temporary-file-directory): · 8ee0219f
      Michael Albinus authored
      Check $TRAMP_TEST_TEMPORARY_FILE_DIRECTORY.
      (tramp-read-passwd): Check $TRAMP_TEST_ALLOW_PASSWORD.
      (tramp-test09-insert-file-contents, tramp-test10-write-region):
      (tramp-test26-process-file): Add tests.
      (tramp-test11-copy-file): Remove debug message.
      (tramp-test20-file-modes): Special case, if user is "root".
      8ee0219f
  22. 08 Nov, 2013 5 commits
  23. 06 Nov, 2013 3 commits