summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Update copyright year to 2017Paul Eggert2016-12-31
| | | | Run admin/update-copyright.
* Improve treatment of Fortran's "class is"Glenn Morris2016-11-27
| | | | | | * lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit): Handle "class is". (Bug#25039) * test/automated/f90.el (f90-test-bug25039): New test.
* Avoid infloop in pythonDaniel Colascione2016-11-08
| | | | | | | | | | Fix bug#24905 * lisp/progmodes/python.el (python-info-docstring-p): Improve infloop avoidance: replace (bobp) with generic test for forward progress. * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add test for bug#24905
* Don't require isearch-update before isearch-doneNoam Postavsky2016-10-02
| | | | | | | | | | | It is useful to be able to call `isearch-done' unconditionally to ensure a non-isearching state. * lisp/isearch.el (isearch-done): Check that `isearch--current-buffer' is a live buffer before using it (Bug #21091). * test/lisp/isearch-tests.el (isearch--test-done): Test it. (cherry picked from commit 68f4b5292781bc331b040105c4079902b993835c)
* Improve display of tex-verbatim and Info quotedPaul Eggert2016-09-23
| | | | | | | | | | | | | | | | | Problem reported by Glenn Morris (Bug#19889). * doc/emacs/display.texi (Standard Faces): * doc/lispref/display.texi (Basic Faces): * etc/NEWS: Mention fixed-pitch-serif. * lisp/faces.el (face-font-family-alternatives): New family alias Monospace Serif. (fixed-pitch-serif): New face, which uses the new family. * lisp/info.el (Info-quoted): * lisp/textmodes/tex-mode.el (tex-verbatim): Use the new face. * test/lisp/legacy/font-parse-tests.el (font-parse-tests--data): Add test case for Monospace Serif. This is backport from master (cherry picked from commit 36906806ccfc0e53f1d8c365ab0d7151288b7833)
* Fix tagging of DEFUN by etagsEli Zaretskii2016-09-21
| | | | | | | | | | | | | | | | | * lib-src/etags.c (C_entries): Tag DEFUN twice: once with its C name, and then again with its Lisp name. This restores the ability to find Lisp primitives by their C name, which was lost when the etags back-end was switched to a more strict search criteria. * test/etags/ETAGS.good_1: * test/etags/ETAGS.good_2: * test/etags/ETAGS.good_3: * test/etags/ETAGS.good_4: * test/etags/ETAGS.good_5: * test/etags/ETAGS.good_6: * test/etags/CTAGS.good: Adapt to the changes in etags.c wrt tagging DEFUN.
* Improve timing in `tramp-test29-environment-variables'Michael Albinus2016-07-14
| | | | | | | * test/automated/tramp-tests.el (tramp-test--shell-command-to-string-asynchronously): Add additional `accept-process-output' call. (tramp-test29-environment-variables): Remove additional sleep calls.
* Add test for handling environment variables in TrampMichael Albinus2016-07-14
| | | | | | | | | | | | | | | | * test/automatedtramp-tests.el (tramp-test--shell-command-to-string-asynchronously): New defun. (tramp-test29-environment-variables): New test. (tramp-test30-vc-registered) (tramp-test31-make-auto-save-file-name) (tramp-test32-special-characters) (tramp-test32-special-characters-with-stat) (tramp-test32-special-characters-with-perl) (tramp-test32-special-characters-with-ls, tramp-test33-utf8) (tramp-test33-utf8-with-stat, tramp-test33-utf8-with-perl) (tramp-test33-utf8-with-ls) (tramp-test34-asynchronous-requests) (tramp-test35-recursive-load, tramp-test36-unload): Rename.
* Fix missing point information in undoPhillip Lord2016-07-05
| | | | | | | | | | | | * src/undo.c (record_insert): Use record_point instead of prepare_record, and do so unconditionally. (prepare_record): Do not record first change. (record_point): Now conditional on state before the last command. (record_delete): Call record_point unconditionally. (record_property_change): Use prepare_record. (record_marker_adjustments): Use prepare_record. Addresses Bug# 21722
* ; Spelling fixesPaul Eggert2016-06-26
|
* ; Only load .elc file in tests.Phillip Lord2016-06-22
| | | | | * test/automated/viper-tests.el (viper-test-undo-kmacro): Ensure that empty load file ends with .elc extension.
* Fix undo boundary in recursive edit (Bug#23632)Phillip Lord2016-06-08
| | | | | | | * src/keyboard.c (recursive_edit_1): specbind undo-auto--undoably-changed-buffers. * lisp/simple.el (undo-auto--undoably-changed-buffers): fix docstring.
* * test/automated/viper-tests.el (viper-test-undo-kmacro):Glenn Morris2016-05-31
| | | | Delete temp-file at end.
* Fix infloop in 'number-sequence'Eli Zaretskii2016-05-27
| | | | | | | * lisp/subr.el (number-sequence): Avoid overflow leading to an infloop. (Bug#23627) * test/automated/subr-tests.el (number-sequence-test): New test.
* ; Spelling and punctuation fixes in commentsPaul Eggert2016-05-26
|
* ; * test/automated/data-tests.el: Standardize license notice.Phillip Lord2016-05-23
|
* ; * test/automated/viper-tests.el: Standardize license notice.Glenn Morris2016-05-23
|
* Add automated test for viper-tests.elPhillip Lord2016-05-23
|
* Revert "epg: Add a way to detect gpg1 executable for tests"Daiki Ueno2016-05-20
| | | | This reverts commit d4ae6d7033b34e8b75c59aaf1584131e439ef2d5.
* epg: Add a way to detect gpg1 executable for testsDaiki Ueno2016-05-19
| | | | | | | | | | | | | | | | | Fixes bug#23561. * test/automated/epg-tests.el (epg-tests-program-alist-for-passphrase-callback): New constant. (epg-tests-find-usable-gpg-configuration): New function, renamed from `epg-tests-gpg-usable'. All callers changed. (epg-tests-gpg-usable): Remove. * lisp/epg-config.el (epg-config--program-alist): Factor out constructor element to... (epg-config--configuration-constructor-alist): ...here. (epg-find-configuration): Rename FORCE argument to NO-CACHE, and add PROGRAM-ALIST argument.
* * lisp/emacs-lisp/package.el (package--with-response-buffer):Artur Malabarba2016-05-18
| | | | | | | Fix some macro locals leaking into body. (Bug#22440) * test/automated/package-test.el (package-test-signed): Manually check all possible values of `package-check-signature'.
* * lisp/char-fold.el: Rename from character-fold.el.Juri Linkov2016-05-17
| | | | | | * lisp/replace.el (replace-char-fold): Rename from replace-character-fold. * test/automated/char-fold-tests.el: Rename from character-fold-tests.el. http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00529.html
* Do not mistake colon at the end of regexp for slash symbolDmitry Gutov2016-05-12
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Check the parse state in the "Symbols with special characters" rule (bug#23515).
* Don't treat JS spread as contination method callDmitry Gutov2016-05-11
| | | | | | | * lisp/progmodes/js.el (js--indent-operator-re): Allow only one dot (bug#23492). * test/indent/js.js (default): Add a corresponding example.
* Rework xref-query-replace-in-resultsDmitry Gutov2016-05-05
| | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-query-replace-in-results): Collect all xrefs from the buffer first, then delegate most of the processing to the value returned by xref--buf-pairs-iterator. (xref--buf-pairs-iterator): New function. Return an "iterator" which partitions returned markers into buffers, and only processes markers from one buffer at a time. When an xref is out of date, skip it with a message instead of signaling error (bug#23284). (xref--outdated-p): Extract from xref--buf-pairs-iterator. Trim CR from both strings before comparing. (xref--query-replace-1): Remove the variable current-buf, no need to track it anymore. Simplify the filter-predicate and search functions accordingly. Iterate over buffer-markers pairs returned by the iterator, and call `perform-replace' for each of them. Use multi-query-replace-map (bug#23284). Use `switch-to-buffer' every time after the first, in order not to jump between windows. * test/automated/xref-tests.el (xref--buf-pairs-iterator-groups-markers-by-buffers-1) (xref--buf-pairs-iterator-groups-markers-by-buffers-2) (xref--buf-pairs-iterator-cleans-up-markers): New tests.
* ; * test/automated/xref-tests.el: Add copyright and license.Glenn Morris2016-05-03
|
* Handle "empty line" regexp in xref searchesDmitry Gutov2016-05-04
| | | | | | | | | * lisp/progmodes/xref.el (xref--collect-matches-1): Stop after one match if re-search-forward doesn't move point (bug#23426). * test/automated/xref-tests.el (xref-collect-matches-finds-an-empty-line-regexp-match): Uncomment test.
* Add tests for xref-collect-matchesDmitry Gutov2016-05-04
| | | | | * test/automated/xref-tests.el: New file. Add tests for xref-collect-matches.
* Add electric-quote-string unit testPhilipp Stephani2016-05-02
| | | | * test/automated/electric-tests.el (electric-quote-string): New test.
* Don't mistake `for' inside a function for a part of array comprehensionDmitry Gutov2016-04-28
| | | | | | | * lisp/progmodes/js.el (js--indent-in-array-comp): Also check the depth in parens between the bracket and `for' (bug#23391). * test/indent/js.js: Add a corresponding example.
* Add new keywords of Python 3.5Lele Gaifax2016-04-26
| | | | | | | | | | | | | | | Python 3.5, released in mid September 2015, introduced a few new keywords to better support asynchronous code, "async" and "await" in particular. See https://www.python.org/dev/peps/pep-0492/ for details. (Bug#21783) * lisp/progmodes/python.el (python-rx-constituents): Add async def/for/with as block-start and async def as defun. * lisp/progmodes/python.el (python-font-lock-keywords): Add async def/for/with as keyword. * test/automated/python-tests.el (python-indent-after-async-block-1, python-indent-after-async-block-2, python-indent-after-async-block-3, python-nav-beginning-of-defun-3): New tests to test indentation and navigation for the async keyword.
* Fix Bug#20637. Do not merge to masterMichael Albinus2016-04-14
| | | | | | | | * lisp/vc/vc-hooks.el (vc-state, vc-working-revision): Use `vc-backend' instead of `vc-responsible-backend'. (Bug#20637) * test/automated/vc-tests.el (vc-test--state) (vc-test--working-revision): Deactivate now failing checks.
* Fix stability confusion in sort-testsPaul Eggert2016-04-06
| | | | | | | | | Problem reported by Philipp Stephani (Bug#23205). * test/automated/sort-tests.el: (sort-tests--insert-words-sort-and-compare): Don’t assume that reversing a sorted list is the same as sorting with the reverse predicate. This is not true for stable sorts when items compare equal.
* (js--continued-expression-p): Special-case unary plus and minusDmitry Gutov2016-04-02
| | | | | | * lisp/progmodes/js.el (js--continued-expression-p): Make an effort to recognize unary plus and minus, in the contexts where they make sense (https://github.com/mooz/js2-mode/issues/322).
* Fix OS X specific settings in tramp-testsMichael Albinus2016-03-31
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it. * lisp/net/tramp.el (tramp-get-local-locale): New defun. * test/automated/tramp-tests.el (tramp--test-darwin-p): Remove. (tramp--test-utf8): Improve settings of coding systems. Do not use `tramp--test-darwin-p' anymore. (Bug#22145)
* Fix map-put and map-delete for alists (Bug#23105)Nicolas Petton2016-03-25
| | | | | | * lisp/emacs-lisp/map.el (map-put): Do not bind the evaluated place expression to a new symbol. * test/lisp/emacs-lisp/map-tests.el: Add a regression test.
* Add customization option for using UTF-8 coordinates in xt-mousePhilipp Stephani2016-03-25
| | | | | | | | | | | | | | | | * lisp/xt-mouse.el (xterm-mouse-utf-8): New customization option. (xterm-mouse--read-coordinate): New function to replace `xterm-mouse--read-utf8-char'; uses UTF-8 only if enabled. (xterm-mouse--read-number-from-terminal): Adapt to new name. (xterm-mouse-tracking-enable-sequence) (xterm-mouse-tracking-disable-sequence): Replace constants with functions, mark constants as obsolete. (xterm-mouse--tracking-sequence): New helper function. (turn-on-xterm-mouse-tracking-on-terminal): Use new functions; enable UTF-8 only if customization option says so; store UTF-8 flag in terminal parameter. (Bug#23009) * test/automated/xt-mouse-tests.el: Add tests for xt-mouse.el.
* Suppress some Tramp tests for OSX, do not merge with masterMichael Albinus2016-03-17
| | | | | * test/automated/tramp-tests.el (tramp--test-darwin-p): New defun. (tramp--test-utf8): Use it. (Bug#22145)
* Fix Ruby's operator precedenceDmitry Gutov2016-03-16
| | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Rearrange the smie-precs->prec2 form.
* (ruby-interpolation-inside-another-interpolation): New failing testDmitry Gutov2016-03-16
| | | | | | * test/automated/ruby-mode-tests.el (ruby-interpolation-inside-another-interpolation): New failing test.
* * test/automated/package-test.el (package-test-signed): Tweak skipGlenn Morris2016-03-15
| | | | condition, for hydra.
* Do not tokenize a comment before continuation as ';'Dmitry Gutov2016-03-15
| | | | | * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Account for a comment right after point.
* Don't misindent arguments of a method call inside continuationDmitry Gutov2016-03-15
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Use smie-indent-virtual instead of smie-rule-parent (bug#23015). Simplify the traversal loop.
* Tweak the left precedence of '=>'Dmitry Gutov2016-03-14
| | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Tweak the left precedence of '=>', to improve indentation and sexp navigation.
* Indent '.' relative to the first sibling expressionDmitry Gutov2016-03-14
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent '.' relative to the first sibling expression, instead of the parent token (bug#17213).
* Support Ruby 2.3.0's safe navigation operatorDmitry Gutov2016-03-12
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token) (ruby-smie--backward-token): Tokenize '&.' as '.'. (ruby-smie--implicit-semi-p): Check for possible '&' before '.'. * test/indent/ruby.rb: Add an example using safe navigation operator. Fix a syntax error in existing example.
* Rework C source files to avoid ^(Paul Eggert2016-03-10
| | | | | | | | Work around Bug#22884 by rewording comments and strings to avoid ‘(’ at the start of a line unless it starts a function. This change is a short-term hack; in the longer run we plan to fix cc-mode’s performance for C files that have ‘(’ at the start of a line in a comment or string.
* By default, etags produces unqualified Perl tag namesEli Zaretskii2016-03-10
| | | | | | | | | | | | | | | | * lib-src/etags.c (Perl_functions): Produce unqualified names, unless -Q was specified. (print_help): Update the description of -Q. * doc/man/etags.1: Update the documentation of -Q. * test/etags/ETAGS.good_1: * test/etags/ETAGS.good_2: * test/etags/ETAGS.good_3: * test/etags/ETAGS.good_4: * test/etags/ETAGS.good_5: * test/etags/CTAGS.good: Adapt the expected test results to the changed Perl functionality.
* Indent methods with keyword names correctlyDmitry Gutov2016-03-10
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call): Rename to ruby-smie--before-method-name. Now also check if we're after a 'def' keyword. Update both callers.
* Propertize character literals and special global variables differentlyDmitry Gutov2016-03-10
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Propertize character literals and global variables with special names with prefix and symbol syntax classes, for SMIE to tokenize them together automatically. (ruby-font-lock-keywords): Fix an old regression in highlighting character literals.