summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* Fix spurious error in beginning-of-defun in pascal-mode (bug#41740)Mattias Engdegård2020-06-221-0/+8
| | | | | | * lisp/progmodes/pascal.el (pascal-beg-of-defun): Ignore errors in forward-sexp. * test/lisp/progmodes/pascal-tests.el (pascal-beg-of-defun): New test.
* Preserve point in pascal-mode completion (bug#41740)Mattias Engdegård2020-06-221-0/+55
| | | | | | | | | Failure to do so caused errors in several cases. Reported by Shinichi Sakata. * lisp/progmodes/pascal.el (pascal-type-completion) (pascal-completion): Wrap code that may move point in save-excursion. * test/lisp/progmodes/pascal-tests.el: New file.
* 2020-03-29 Michael R. Mauger <michael@mauger.com>Michael R. Mauger2020-06-131-1/+7
| | | | | | | | * lisp/progmodes/sql.el (sql-add-product): Re-correct argument spec. Previous change was due to my mistake; I have resolved back to the prior behavior (Bug#39960). * test/lisp/progmodes/sql-tests.el (sql-test-add-product): Added test to insure I don't make the same mistake again.
* Merge from origin/emacs-27Glenn Morris2020-06-072-6/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 35661ef943 (origin/emacs-27) Fix typo in "(elisp) Type Keywords" 1af0e95fec Gnus nnir-summary-line-format has no effect dd366b5d3b Improve documentation of 'window-text-pixel-size' fbd49f969e * src/xdisp.c (Fwindow_text_pixel_size): Doc fix. (Bug#41... d8593fd19f Minor improvements to EDE and EIEIO manuals 3916e63f9e Have Fido mode also imitate Ido mode in ignore-case options cc35b197c7 Update package-menu-quick-help bf09106256 Improve documentation of 'sort-subr' 73749efa13 Update Ukrainian transliteration 30a7ee505a Fix Arabic shaping when eww/shr fill the text to be rendered 7d323f07c0 Silence some byte-compiler warnings in tests cf473e742f * test/lisp/battery-tests.el: New file. b07e3b1d97 Improve format-spec documentation (bug#41571) # Conflicts: # test/lisp/emacs-lisp/package-tests.el
| * Silence some byte-compiler warnings in testsBasil L. Contovounesios2020-06-032-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/progmodes/elisp-mode-tests.el: Declare functions referred to within macroexpansions. (xref-elisp-overloadable-no-default) (xref-elisp-overloadable-co-located-default) (xref-elisp-overloadable-separate-default): Prefix unused arguments with underscore. * test/lisp/international/ccl-tests.el: * test/lisp/wdired-tests.el: * test/lisp/emacs-lisp/package-tests.el: Declare functions used. (package-test-update-archives, package-test-signed): Use revert-buffer in place of its obsolete alias package-menu-refresh. * test/lisp/eshell/eshell-tests.el: * test/lisp/mail/footnote-tests.el: * test/src/buffer-tests.el: Require dependencies used. * test/lisp/image/exif-tests.el: Remove unneeded (require 'seq). (test-exit-direct-ascii-value): Actually perform the test. * test/lisp/progmodes/sql-tests.el (sql-test-add-existing-product): Fix typo. * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): * test/src/data-tests.el (test-bool-vector-bv-from-hex-string) (test-bool-vector-apply-mock-op): Remove unused local variables.
* | Use lexical-binding in autoconf.el and add testsSimen Heggestøyl2020-05-151-0/+55
| | | | | | | | | | | | | | * lisp/progmodes/autoconf.el: Use lexical-binding. * test/lisp/progmodes/autoconf-tests.el: New file with tests for autoconf.el.
* | Use lexical-binding in glasses.el and add testsSimen Heggestøyl2020-05-101-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/glasses.el: Use lexical-binding. (glasses-separator, glasses-original-separator, glasses-face) (glasses-separate-parentheses-p) (glasses-separate-parentheses-exceptions) (glasses-separate-capital-groups, glasses-uncapitalize-p) (glasses-uncapitalize-regexp, glasses-convert-on-write-p): Remove redundant :group args. * test/lisp/progmodes/glasses-tests.el: New file with tests for glasses.el.
* | cc-mode: extend regexp used by ‘c-or-c++-mode’Michal Nazarewicz2020-05-091-2/+10
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode (c-or-c++-mode--regexp): Expand the regexp to match some more C++-only constructs and recognise a few more standard C++ header files. Also make sure identifiers start with non-digit. (c-or-c++-mode): Add ‘(interactive)’ declaration. * test/lisp/progmodes/cc-mode-tests.el (c-or-c++-mode): Add test case for the newly recognised constructs.
* | cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061)Michal Nazarewicz2020-05-091-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ‘c-lineup-ternary-bodies’ function which, when used as a c lineup function, aligns question mark and colon of a ternary operator. For example: return arg % 2 == 0 ? arg / 2 : (3 * arg + 1); * lisp/progmodes/cc-align.el (c-lineup-ternary-bodies): New function. * doc/misc/cc-mode.texi (Operator Line-Up Functions): Document the new function. * test/lisp/progmodes/cc-mode-tests.el (c-lineup-ternary-bodies): New test case.
* | Use lexical-binding in most progmodes testsStefan Kangas2020-04-288-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/etags-tests.el: * test/lisp/progmodes/f90-tests.el: * test/lisp/progmodes/ps-mode-tests.el: * test/lisp/progmodes/python-tests.el: * test/lisp/progmodes/ruby-mode-tests.el: * test/lisp/progmodes/subword-tests.el: * test/lisp/progmodes/tcl-tests.el: * test/lisp/progmodes/xref-tests.el: Use lexical-binding. * test/lisp/progmodes/python-tests.el (python-tests-visible-string) (python-tests-look-at-1, python-tests-look-at-2) (python-shell-calculate-process-environment-2): Silence byte-compiler.
* | javac support in compilation-parse-errors rulesFilipp Gunbin2020-04-011-2/+5
|/ | | | | | | | | | | * etc/compilation.txt: Add doc and example. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add javac rule. (compilation-parse-errors): Fix file/line/col test, so that lambda/closure (which are valid values) don't match. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data, compile-test-error-regexps): Add test.
* Make OMake support slightly less expensive (bug#39595)Mattias Engdegård2020-02-171-1/+4
| | | | | | | | | | | | | | | | | When run with -p or -P, OMake regurgitates error messages that prevented further progress, indented by 6 spaces. Use that fact to ameliorate the modification done to other error message regexps. * lisp/progmodes/compile.el (compilation-parse-errors): When 'omake' is enabled, allow error messages to be indented by 0 or 6 spaces instead of any number of spaces, to avoid pathological behaviour. (compilation-error-regexp-alist-alist): Anchor the 'omake' pattern to bol for performance. Repair the 'ruby-Test::Unit' pattern, which relied on the previously over-generous 'omake' hack. * etc/compilation.txt (OMake): Add examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test for OMake (indented error).
* Speed up 'maven' compilation error message regexpMattias Engdegård2020-02-171-1/+1
| | | | | | | | | | | | | Anchor the regexp at line-start to prevent quadratic behaviour when it doesn't match (bug#39595). It's unclear whether the type tag, like [ERROR], is always present; we keep it optional just in case. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Rewrite 'maven' regexp, using rx for clarity. * etc/compilation.txt (maven): More examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): No leading spaces; they seems to stem from a misunderstanding in bug#11517.
* f90: handle F2008 module functionGlenn Morris2020-01-151-0/+20
| | | | | | | * lisp/progmodes/f90.el (f90-font-lock-keywords-1) (f90-looking-at-program-block-start): Handle F2008 "module function" and subroutine. (Bug#38415) * test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test.
* Update copyright year to 2020Paul Eggert2020-01-0116-16/+16
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Rename xref-collect-references and xref-collect-matchesDmitry Gutov2019-12-291-13/+14
| | | | | | | | | | | * lisp/progmodes/xref.el (xref-references-in-directory): Rename from xref-collect-references. Update the sole caller. (xref-matches-in-directory): Rename from xref-collect-matches. Update all callers (all of them are in the /tests/ dir). * test/lisp/progmodes/xref-tests.el (xref-tests-data-dir): Don't use the EMACS_TEST_DIRECTORY env var. It doesn't work when running interactively.
* Make ant regexp in compilation-error-regexp-alist-alist more laxFilipp Gunbin2019-11-011-5/+13
| | | | | | | * lisp/progmodes/compile.el: Make ant regexp accept filenames that may occur on Cygwin (like c:/test) and optional additional severity level after task name. * etc/compilation.txt: Add sample.
* Add gradle-kotlin to compilation-error-regexp-alist-alistFilipp Gunbin2019-10-291-2/+9
| | | | | | * lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it.
* Support GNU make error messages in compile mode.Paul Smith2019-10-051-1/+7
| | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Match GNU make error messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Test GNU make error message matching. (compile-test-error-regexps): Update count of infos found.
* Fix error in gnu compilation-mode regexp (bug#37582)Mattias Engdegård2019-10-041-1/+3
| | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix a mistake introduced when the regexp was translated to rx. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test case. * etc/compilation.txt: Add example.
* Make compile-tests re-runnableMattias Engdegård2019-10-041-5/+8
| | | | | | | * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Don't rely on compilation-num-errors (etc) all being zero, which they aren't if the test has been run before. (compile-tests--test-regexps-data): Change defvar to defconst.
* Fix fill-paragraph in python docstrings (Bug#36056)Noam Postavsky2019-09-121-1/+12
| | | | | | | | | | * lisp/progmodes/python.el (python-do-auto-fill): New function. (python-mode): Set it as normal-auto-fill-function, and don't set fill-indent-according-to-mode. Having the latter set during fill-paragraph gives wrongs result, because python-indent-line doesn't remove indentation added by filling. * test/lisp/progmodes/python-tests.el (python-fill-docstring): New test.
* ; Re-enable all Flymake tests on HydraDmitry Gutov2019-07-301-4/+0
| | | | To see if the recent improvements fixed something
* Guard against flymake-no-changes-timeout being nilDmitry Gutov2019-07-301-1/+1
| | | | | | | * test/lisp/progmodes/flymake-tests.el (flymake-tests--wait-for-backends): Guard against flymake-no-changes-timeout being nil (in personal configurations) to help when running tests interactively.
* Strip trailing whitespaces at the end of converted do blockNobuyoshi Nakada2019-07-251-1/+5
| | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end): Strip trailing whitespaces at the end of converted do block (bug#36756). https://bugs.ruby-lang.org/issues/16014 https://github.com/syl20bnr/spacemacs/issues/12548
* Use lexical-binding in asm-mode.el and add testsSimen Heggestøyl2019-07-181-0/+72
| | | | | | | | | | * lisp/progmodes/asm-mode.el: Use lexical-binding. (asm-comment-char): Remove redundant :group arg. (asm-mode): Use `setq-local'. (asm-calculate-indentation): Remove moot `or'. * test/lisp/progmodes/asm-mode-tests.el: New file with tests for asm-mode.el.
* * test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define linesNick Drozd2019-07-171-0/+9
|
* * lisp/progmodes/compile.el (compilation-filter): `compilation--ensure-parse'Juri Linkov2019-07-121-2/+6
| | | | | | | is used instead of `font-lock-ensure' (bug#36564). * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps) (compile-test-grep-regexps): Check the number of errors.
* Change expected result of a flymake test on embaMichael Albinus2019-07-031-1/+0
| | | | | * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Test is now passing on emba.gnu.org, too.
* Change expected result of a flymake test on hydraGlenn Morris2019-07-021-3/+1
| | | | | * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Test is now passing on hydra.nixos.org, since today.
* Merge from emacs-26Noam Postavsky2019-06-251-5/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e62ad04963 Fix sgml-mode handling of quotes within parens (Bug#36347) 06b35b2f92 ; * lisp/frame.el: Enhance add-variable-watcher commentary. 572e34bb6f Rename 'make-symbolic-link' argument NEWNAME to LINKNAME 04477adedc Check that length of data returned by sysctl is non-zero 81535eeadb * test/lisp/progmodes/python-tests.el (python-virt-bin): D... 9d48979ca8 Fix Python tests depending on system-type fcf6cc3177 Fix problem with wdired test when symlinks cannot be created. 4701e0663e Improve wording of documentation of click events # Conflicts: # lisp/textmodes/sgml-mode.el # test/lisp/textmodes/sgml-mode-tests.el
| * * test/lisp/progmodes/python-tests.el (python-virt-bin): Doc fix.Juanma Barranquero2019-06-171-1/+1
| |
| * Fix Python tests depending on system-typeJuanma Barranquero2019-06-171-5/+15
| | | | | | | | | | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-virt-bin): New function. (python-shell-calculate-exec-path-2) (python-shell-calculate-exec-path-3) (python-shell-calculate-exec-path-4) (python-shell-with-environment-1, python-shell-with-environment-2): Use it.
* | * test/lisp/progmodes/flymake-tests.el (ruby-backend): Skip on hydra.Glenn Morris2019-06-251-0/+1
| | | | | | | | Another unstable test.
* | Fix python docstring auto-fill (Bug#36056)Noam Postavsky2019-06-221-0/+18
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-mode): Set fill-indent-according-to-mode locally to t. This lets auto-fill do the right thing when auto-filling inside a docstring. The default was to nil on 2001-11-25 "(fill-indent-according-to-mode): Default to nil" with the comment that it "screws up CC-mode's filling tricks". But presumably it shouldn't be a problem for python-mode. * test/lisp/progmodes/python-tests.el (python-auto-fill-docstring): New test.
* | Add more ps-mode octal testsLars Ingebrigtsen2019-06-131-1/+12
| | | | | | | | | | * test/lisp/progmodes/ps-mode-tests.el (ps-mode-test-octal-region-multibyte): New test.
* | Add ps-mode-tests.el and remove a compilation warningLars Ingebrigtsen2019-06-131-0/+37
| | | | | | | | | | | | * lisp/progmodes/ps-mode.el (ps-mode-octal-region): Remove a string-make-unibyte that apparently had no effect here. * test/lisp/progmodes/ps-mode-tests.el: New file.
* | Skip some flymake tests on hydra.nixos.orgGlenn Morris2019-06-011-0/+3
| | | | | | | | | | | | * test/lisp/progmodes/flymake-tests.el (perl-backend) (included-c-header-files, recurrent-backend): Skip on hydra.nixos due to frequent intermittent failures. (Bug#32764)
* | ; Add test for previous changeNoam Postavsky2019-04-281-0/+13
| | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-indent-hanging-close-paren): New test.
* | * test/lisp/progmodes/sql-tests.el (sql-tests-buffer-naming-harness):Glenn Morris2019-04-251-1/+1
| | | | | | | | Fix previous for TEST_LOAD_EL=no.
* | * test/lisp/progmodes/sql-tests.el (sql-tests-buffer-naming-harness):Glenn Morris2019-04-251-14/+16
| | | | | | | | Skip if no sqlite program.
* | * lisp/progmodes/sql.elMichael R. Mauger2019-04-241-31/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (sql-is-sqli-buffer-p): New function. (sql-generate-unique-sqli-buffer-name): Refactor and use it. (sql-product-interactive): Simplify name logic. * test/lisp/progmodes/sql-tests.el (sql-tests-placeholder-filter-harness): New macro. (sql-tests-placeholder-filter-simple) (sql-tests-placeholder-filter-ampersand) (sql-tests-placeholder-filter-period): Refactored tests and use macro. (sql-tests-buffer-naming-harness): New macro. (sql-tests-buffer-naming-default) (sql-tests-buffer-naming-multiple) (sql-tests-buffer-naming-explicit) (sql-tests-buffer-naming-universal-argument) (sql-tests-buffer-naming-existing): New tests.
* | * lisp/progmodes.sql.elMichael R. Mauger2019-04-211-0/+34
| | | | | | | | | | | | | | | | | | | | (sql-product-alist): Corrected :terminator defns. (sql-debug-send): New variable. (sql-send-string): Use it and correct buffer context. (sql-send-magic-terminator): Use `sql-input-sender'. (sql-placeholders-filter): Bug#11481 Don't recursively replace placeholders * test/lisp/progmodes/sql-tests.el (sql-test-placeholder-filter): Test placeholder functionality.
* | Mark different-diagnostic-types as failed on emba.Michael Albinus2019-04-201-1/+2
| | | | | | | | | | * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types): Expect also failure on emba.gnu.org.
* | Replace (skip-unless nil) by tag :unstable in test packagesMichael Albinus2019-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--deftest-remote): Use tag :unstable if SKIP is non-nil. * test/lisp/net/tramp-tests.el (tramp-test36-vc-registered): Use ert-skip instead of (skip-unless nil). * test/lisp/progmodes/python-tests.el (python-tests--python-nav-end-of-statement--infloop): Use tag :unstable instead of (skip-unless nil).
* | * test/lisp/progmodes/python-tests.el: "Fix" failing testStefan Monnier2019-04-101-0/+10
| | | | | | | | (python-tests--python-nav-end-of-statement--infloop): Disable.
* | * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types):Glenn Morris2019-04-031-0/+2
| | | | | | | | Expect failure on hydra.nixos.
* | Fix more regular expression typosPaul Eggert2019-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00548.html except that I didn’t address the issues involving Hebrew, or involving comint-prompt-regexp. * lisp/align.el (align-rules-list, align-exclude-rules-list): * lisp/auth-source-pass.el (auth-source-pass--parse-secret) (auth-source-pass--parse-data): * lisp/cedet/data-debug.el (data-debug-next) (data-debug-prev, data-debug-expand-or-contract): * lisp/comint.el (comint-within-quotes): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * lisp/emulation/viper-ex.el (ex-cmd-complete): * lisp/gnus/gnus-cite.el (gnus-message-search-citation-line): * lisp/gnus/nnir.el (nnir-imap-end-of-input): * lisp/mail/mail-extr.el (mail-extr-all-letters): * lisp/minibuffer.el (minibuffer-maybe-quote-filename): * lisp/nxml/rng-nxml.el (rng-complete-tag) (rng-complete-end-tag, rng-complete-attribute-name): * lisp/obsolete/vip.el (vip-get-ex-token, vip-get-ex-pat): * lisp/org/org-pcomplete.el (org-thing-at-point): * lisp/org/org.el (org-set-tags) (org-increase-number-at-point) (org-fill-line-break-nobreak-p): * lisp/pcomplete.el (pcomplete-parse-comint-arguments): * lisp/progmodes/ada-mode.el (ada-compile-goto-error): * lisp/progmodes/cperl-mode.el (cperl-highlight-charclass) (cperl-find-pods-heres, cperl-not-bad-style-regexp) (cperl-regext-to-level-start): * lisp/progmodes/ebnf-yac.el (ebnf-yac-skip-spaces): * lisp/progmodes/flymake-proc.el (flymake-proc-master-tex-init): * lisp/progmodes/flymake.el (flymake-diag-region): * lisp/progmodes/fortran.el (fortran-current-line-indentation): * lisp/progmodes/idlw-complete-structtag.el: (idlwave-complete-structure-tag): * lisp/progmodes/idlwave.el (idlwave-complete-sysvar-or-tag): * lisp/progmodes/prolog.el (prolog-pred-end) (prolog-clause-info): * lisp/progmodes/ruby-mode.el (ruby-forward-sexp) (ruby-backward-sexp): * lisp/progmodes/verilog-mode.el (verilog-repair-open-comma): * lisp/term.el (term-within-quotes): * lisp/textmodes/bib-mode.el (bib-capitalize-title-stop-words): * lisp/textmodes/refbib.el (r2b-capitalize-title-stop-words): * lisp/textmodes/reftex-parse.el (reftex-nth-arg): * lisp/textmodes/rst.el (rst-svn-rev): * lisp/url/url-http.el (url-http-parse-response): * test/lisp/progmodes/f90-tests.el (f90-test-bug3730): Fix regular expression typos.
* | * test/lisp/progmodes/python-tests.elGlenn Morris2019-03-131-2/+1
| | | | | | | | | | | | (python-syntax-after-python-backspace): Expect failure again. ; since 5feaf90
* | * test/lisp/progmodes/python-tests.elGlenn Morris2019-03-021-1/+2
| | | | | | | | (python-syntax-after-python-backspace): Expect success.