summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.Dmitry Gutov2013-12-171-0/+4
|
* Fix bug#16116Dmitry Gutov2013-12-172-6/+8
| | | | | | | | | | * 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'.
* Fix bug#16118Dmitry Gutov2013-12-142-4/+39
| | | | | | | | | | * 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.
* * lisp/progmodes/python.el (python-indent-calculate-indentation): FixFabián Ezequiel Gallina2013-12-122-0/+26
| | | | | | | | de-denters cornercase. * test/automated/python-tests.el (python-indent-dedenters-2): New test. Fixes: debbugs:15731
* Spelling fixes.Paul Eggert2013-12-121-1/+1
|
* * lisp/progmodes/python.el (python-indent-context)Fabián Ezequiel Gallina2013-12-122-0/+82
| | | | | | | | | | (python-indent-calculate-indentation): Fix auto-identation behavior for comment blocks. * test/automated/python-tests.el (python-indent-after-comment-1) (python-indent-after-comment-2): New tests. Fixes: debbugs:15916
* * lisp/progmodes/python.el (python-indent-calculate-indentation): WhenNathan Trapuzzano2013-12-122-1/+28
| | | | | | | | | | | determining indentation, don't treat "return", "pass", etc., as operators when they are just string constituents. * automated/python-test.el (python-indent-block-enders-1): Rename from python-indent-block-enders. (python-indent-block-enders-2): New test. Fixes: debbugs:15812
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return tDmitry Gutov2013-12-091-0/+3
| | | | after the end of a percent literal.
* Mention test/indent/js.js, and restore one lost piece of itDmitry Gutov2013-12-082-1/+9
| | | | * test/indent/js.js: New file.
* Port indentation code from js2-mode to js-modeDmitry Gutov2013-12-081-0/+45
| | | | | | | | | | | | | * lisp/progmodes/js.el (js-auto-indent-flag): Remove, was unused. (js-switch-indent-offset): New option. (js--proper-indentation): Use it. And handle the case when "default" is actually a key in an object literal. (js--same-line): New function. (js--multi-line-declaration-indentation): Use it. (js--indent-in-array-comp, js--array-comp-indentation): New functions. (js--proper-indentation): Use them, to handle array comprehension continuations.
* Commit missing ChangeLog entry.Michael Albinus2013-12-061-0/+4
|
* Fix Bug#15874Dmitry Gutov2013-12-061-2/+1
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-mode-syntax-table): Don't modify syntax for `?'. (ruby-expr-beg): Expect that `!' will have syntax class "symbol" where appropriate already. (ruby-syntax-propertize-function): Propertize `?' and `!' at the end of method names.
* * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.Cameron Desautels2013-12-052-8/+40
| | | | | | * test/automated/regexp-tests.el: New file. Fixes: debbugs:16046
* * automated/dbus-tests.el: New file.Michael Albinus2013-12-051-0/+136
|
* Spelling and punctuation fixes.Paul Eggert2013-12-011-1/+1
|
* Fix reftex-tests on MS-Windows.Eli Zaretskii2013-11-292-1/+12
| | | | | | 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.
* Fix decoder-tests test on MS-Windows.Eli Zaretskii2013-11-292-1/+8
| | | | | | | 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.
* Replace PATH_SEP with pre-existing SEPCHAR.Glenn Morris2013-11-282-2/+6
| | | | | * configure.ac: * test/automated/Makefile.in: Use SEPCHAR in place of PATH_SEP.
* Fix the test suite on Windows.Eli Zaretskii2013-11-282-2/+8
| | | | | | | | configure.ac (PATH_SEP): Set and AC_SUBST. test/automated/Makefile.in (PATH_SEP): Set this instead of PATH_SEPARATOR. (EMACSOPT): Use $(PATH_SEP).
* * automated/file-notify-tests.el (auto-revert-stop-on-user-input):Michael Albinus2013-11-282-2/+8
| | | | Set to nil.
* * automated/file-notify-tests.elMichael Albinus2013-11-273-18/+56
| | | | | | | | | | | | | | | | (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.
* Improve a couple of changelog entries.Bozhidar Batsov2013-11-261-2/+5
|
* Stop some python tests leaving temp-files behindGlenn Morris2013-11-232-3/+13
| | | | | | * 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.
* Use skip-unless in some python testsGlenn Morris2013-11-232-15/+11
| | | | | | | | * 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.
* Empty elements in EMACSLOADPATH now stand for the defaultGlenn Morris2013-11-222-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add missing ChangeLog entriesBozhidar Batsov2013-11-221-0/+7
|
* * automated/ruby-mode-tests.el (ruby-exit!-font-lock): Set expected-result.Glenn Morris2013-11-212-1/+7
|
* * test/automated/Makefile.in: Tweak previous changeGlenn Morris2013-11-201-1/+1
|
* * test/automated/Makefile.in (XARGS_LIMIT): New, set by configure.Glenn Morris2013-11-202-1/+8
| | | | | | (compile-main): Pass XARGS_LIMIT to xargs. (Cargo-culted from lisp/Makefile.in.)
* Use path-separator with -L, rather than just :Glenn Morris2013-11-202-1/+10
| | | | | | | | | | | * lisp/startup.el (command-line-1): Use path-separator with -L. * test/automated/Makefile.in (PATH_SEPARATOR): New, set by configure. (EMACSOPT): Use PATH_SEPARATOR. * doc/emacs/cmdargs.texi (Action Arguments): Use path-separator with -L. * etc/NEWS: Related edit.
* * test/automated/ruby-mode-tests.el:Bozhidar Batsov2013-11-201-0/+20
| | | | Add a few tests for `ruby--insert-coding-comment'.
* * test/automated/ruby-mode-tests.el:Bozhidar Batsov2013-11-201-0/+3
| | | | Add a failing test for bug #15874.
* Improve API of recently-added bool vector functions.Paul Eggert2013-11-182-24/+27
| | | | | | | | | | | | | | | | | | 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
* * lisp/progmodes/ruby-mode.el (ruby-toggle-block): Don't stop atAdam Sokolnicki2013-11-171-0/+6
| | | | | | interpolation curlies. Fixes: debbugs:15914
* * automated/tramp-tests.el (tramp-test07-file-exists-p)Michael Albinus2013-11-162-2/+106
| | | | | | | | | | | | | | | (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.
* * automated/tramp-tests.el (tramp-test29-utf8): Cleanup theMichael Albinus2013-11-152-4/+13
| | | | connection before running the test. Reenable last test case.
* * automated/tramp-tests.el (tramp-test29-utf8): Comment last testMichael Albinus2013-11-151-3/+3
| | | | case, it fails in batch mode. Needs further investigations.
* * automated/tramp-tests.el (tramp-test15-copy-directory)Michael Albinus2013-11-152-27/+72
| | | | | | | | | | | | (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.
* * automated/file-notify-tests.el (file-notify-test02-events)Michael Albinus2013-11-133-73/+128
| | | | | | | | | (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".
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Disambiguate betweenDmitry Gutov2013-11-121-0/+3
| | | | | | | | | binary "|" operator and closing block args delimiter. Remove FIXME comment referring to Ruby 1.8-only syntax. (ruby-smie--implicit-semi-p): Not after "|" operator. (ruby-smie--closing-pipe-p): New function. (ruby-smie--forward-token, ruby-smie--backward-token): Use it. (ruby-smie-rules): Indent after "|".
* * automated/tramp-tests.el (tramp-test-temporary-file-directory):Michael Albinus2013-11-112-24/+72
| | | | | | | | | 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".
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):Dmitry Gutov2013-11-091-2/+7
| | | | | | Not after "||". (ruby-smie-rules): Indent non-hanging "begin" blocks as part of their parent.
* * automated/file-notify-tests.el:Michael Albinus2013-11-083-29/+27
| | | | | | | | * automated/tramp-tests.el: Add `tramp-own-remote-path' to `tramp-remote-path' when running on hydra. (tramp-test07-file-exists-p): Remove instrumentation code. (tramp-test26-process-file): Don't use "/bin/true" and "/bin/false", these paths do not exist on hydra.
* * automated/tramp-tests.el: Add `tramp-own-remote-path' to `tramp-remote-path'.Michael Albinus2013-11-082-0/+9
|
* Rename test/automated/sentinel-tests.el to process-tests.elStefan Monnier2013-11-072-1/+1
|
* * indent/ruby.rb: New exampleDmitry Gutov2013-11-081-0/+7
|
* * test/automated/sentinel-tests.el: New file.Helmut Eller2013-11-072-0/+57
|
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Improve precedencesDmitry Gutov2013-11-082-2/+33
| | | | | | | | | | | | | | | | | of "and", "or", "&&" and "||". (ruby-smie--args-separator-p): Prohibit keyword "do" as the first argument. Prohibit opening curly brace because it could only be a block opener in that position. (ruby-smie--forward-token, ruby-smie--backward-token): Separate "|" from "&" or "*" going after it. That can happen in block arguments. (ruby-smie--indent-to-stmt): New function, seeks the end of previous statement or beginning of buffer. (ruby-smie-rules): Use it. (ruby-smie-rules): Check if there's a ":" before a curly block opener candidate; if there is, it's a hash. * test/indent/ruby.rb: New examples.
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):Dmitry Gutov2013-11-071-0/+12
| | | | | | | | | | No implicit semi after "^", "and" or "or". (ruby-smie-grammar): New tokens: "and" and "or". (ruby-smie--args-separator-p): Fix the check for tokens at POS. Exclude "and" and "or". Remove "do" in order to work around token priorities. (ruby-smie-rules): Add all infix tokens. Handle the case of beginning-of-buffer.
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority ofDmitry Gutov2013-11-071-3/+1
| | | | "." compared to "do".