1. 25 Apr, 2019 2 commits
    • Stephen Leake's avatar
      Add new file completion tables, change project.el to allow using them · d2a5283a
      Stephen Leake authored
      * lisp/file-complete-root-relative.el: New file.
      
      * lisp/uniquify-files.el: New file.
      
      * test/lisp/progmodes/uniquify-files-resources/: New directory
      containing files for testing uniquify-files.
      
      * test/lisp/progmodes/uniquify-files-test.el: New file; test
      uniquify-files.
      
      * lisp/files.el (path-files): New function; useful with new completion
      tables.
      
      * lisp/progmodes/project.el (project-file-completion-table): Use
      file-complete-root-relative completion table.
      (project-find-file): Add optional FILENAME parameter.
      (project--completing-read-strict): Rewrite to just use the given
      completion table; extracting the common directory is now done by
      file-complete-root-relative. This also allows using the new
      uniquify-files completion table.
      
      * lisp/minibuffer.el (completion-category-defaults): Add
      uniquify-file.
      (completing-read-default): Add final step to call completion table
      with 'alist action if supported.
      d2a5283a
    • Michael R. Mauger's avatar
      * lisp/progmodes/sql.el · a1386fa6
      Michael R. Mauger authored
      (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.
      a1386fa6
  2. 21 Apr, 2019 1 commit
    • Michael R. Mauger's avatar
      * lisp/progmodes.sql.el · 23d8cfb9
      Michael R. Mauger authored
      (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.
      23d8cfb9
  3. 20 Apr, 2019 1 commit
  4. 13 Apr, 2019 1 commit
    • Michael Albinus's avatar
      Replace (skip-unless nil) by tag :unstable in test packages · ae21fb3d
      Michael Albinus authored
      * 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).
      ae21fb3d
  5. 10 Apr, 2019 1 commit
  6. 03 Apr, 2019 1 commit
  7. 19 Mar, 2019 1 commit
    • Paul Eggert's avatar
      Fix more regular expression typos · bc2a93d5
      Paul Eggert authored
      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.
      bc2a93d5
  8. 13 Mar, 2019 1 commit
  9. 03 Mar, 2019 1 commit
  10. 21 Feb, 2019 1 commit
    • Michael R. Mauger's avatar
      Correct implementation of `sql-set-product-feature' (Bug#30494). · c124d532
      Michael R. Mauger authored
      * lisp.progmodes/sql.el (sql-add-product): Correct argument spec.
      (sql-set-product-feature): Handle all cases as intended.
      (sql-get-product-feature): Fetch varaiable value by `eval'.
      * test/lisp/progmodes/sql-tests.el (sql-test-feature-value-[a-d]):
      New test variables.
      (sql-test-product-feature-harness): New test macro.
      (sql-test-add-product, sql-test-add-existing-product)
      (sql-test-set-feature, sql-test-set-indirect-feature)
      (sql-test-set-existing-feature)
      (sql-test-set-existing-indirect-feature)
      (sql-test-set-missing-product, sql-test-get-feature)
      (sql-test-get-indirect-feature, sql-test-get-missing-product)
      (sql-test-get-missing-feature)
      (sql-test-get-missing-indirect-feature): New ERT tests
      c124d532
  11. 19 Feb, 2019 1 commit
    • Michael R. Mauger's avatar
      * lisp/progmodes/sql.el: Added password wallet using · 1a6bcc91
      Michael R. Mauger authored
      `auth-source' package.
      (sql-auth-source-search-wallet): New function.
      (sql-password-wallet): New variable.
      (sql-password-search-wallet-function): New variable.
      (sql-get-login): Handle password wallet search.
      (sql-product-interactive): Handle password function.
      * test/lisp/progmodes/sql-test.el: Test wallet changes.
      (sql-test-login-params): New test variable.
      (with-sql-test-connect-harness): New macro to wrap test
      configuration around calls to `sql-connect'.
      (sql-test-connect, sql-test-connect-password-func)
      (sql-test-connect-wallet-server-database)
      (sql-test-connect-wallet-database)
      (sql-test-connect-wallet-server): New ERT tests.
      * etc/NEWS: Updated SQL Mode descriptions.
      1a6bcc91
  12. 05 Jan, 2019 1 commit
    • Joel Rosdahl's avatar
      Fix electric indent bug in python-mode after dedenting colon · a3c79d44
      Joel Rosdahl authored
      * list/progmodes/python.el (python-indent-post-self-insert-function):
      Use markers instead of positions when reindenting statement(s) after
      inserting electric colon to avoid reindenting too many
      statements (bug#22663).
      
      * test/lisp/progmodes/python-tests.el (python-indent-electric-colon-2):
      Improve test case to also verify the fix of bug#22663.
      
      Copyright-paperwork-exempt: yes
      a3c79d44
  13. 01 Jan, 2019 2 commits
    • Paul Eggert's avatar
      Update more copyright years · a04bf151
      Paul Eggert authored
      Update some other copyright years automatically, by running:
      Run 'UPDATE_COPYRIGHT_YEAR=2019 \
      UPDATE_COPYRIGHT_USE_INTERVALS=1 \
      UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright'
      followed by 'admin/merge-gnulib'.
      a04bf151
    • Paul Eggert's avatar
      Update copyright year to 2019 · 26bed8ba
      Paul Eggert authored
      Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
      26bed8ba
  14. 19 Dec, 2018 2 commits
    • Glenn Morris's avatar
      Skip rather than fail in flymake tests · 7ca9bb78
      Glenn Morris authored
      * test/lisp/progmodes/flymake-tests.el
      (flymake-tests--wait-for-backends): Skip rather than fail if
      backends are slow to respond.  This always seems like a temporary
      system glitch and not something that should be reported as a failure.
      7ca9bb78
    • Glenn Morris's avatar
      Restrict downcasing in elisp xref tests (bug#25534) · 4c6c327d
      Glenn Morris authored
      The tests happen to not fail at the moment because find-library-name
      now has an extra feature, find-library--from-load-history, which
      happens to do a case-insensitive regexp match; but still it seems
      better not to rely on this.
      
      * test/lisp/progmodes/elisp-mode-tests.el (xref--case-insensitive):
      New variable.
      (xref-elisp-test-run, emacs-test-dir): Only downcase if the
      filesystem seems to be case-insensitive.
      4c6c327d
  15. 15 Dec, 2018 1 commit
  16. 11 Dec, 2018 1 commit
    • Nobuyoshi Nakada's avatar
      Support Ruby block arguments ending with , or * · 3729a3f8
      Nobuyoshi Nakada authored
      * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token):
      Recognize punctuation before "closing-|" as a separate token.
      (ruby-smie--backward-token): Same (bug#33487).
      
      * test/lisp/progmodes/ruby-mode-tests.el
      (ruby-forward-sexp-jumps-do-end-block-with-no-args)
      (ruby-backward-sexp-jumps-do-end-block-with-no-args)
      (ruby-forward-sexp-jumps-do-end-block-with-empty-args)
      (ruby-backward-sexp-jumps-do-end-block-with-empty-args)
      (ruby-forward-sexp-jumps-do-end-block-with-args)
      (ruby-backward-sexp-jumps-do-end-block-with-args)
      (ruby-forward-sexp-jumps-do-end-block-with-any-args)
      (ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg)
      (ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args)
      (ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args):
      New tests.
      3729a3f8
  17. 13 Jul, 2018 1 commit
    • Noam Postavsky's avatar
      Match w32 paths in grep sans --null hits (Bug#32051) · 3eb4603b
      Noam Postavsky authored
      * lisp/progmodes/grep.el (grep-regexp-alist): Add an optional part to
      match paths starting with C: (other drive letters).
      * test/lisp/progmodes/compile-tests.el
      (compile-tests--grep-regexp-testcases)
      (compile-tests--grep-regexp-tricky-testcases)
      (compile-test-grep-regexps): New tests.
      (compile--test-error-line): Return `compilation-message'.
      3eb4603b
  18. 04 Jul, 2018 1 commit
    • Tom Tromey's avatar
      Fix Tcl indentation in a namespace · 38ea8e14
      Tom Tromey authored
      Fixes bug#32035
      * lisp/progmodes/tcl.el (tcl-proc-list): Add "namespace".
      * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent): New
      test.
      38ea8e14
  19. 24 Jun, 2018 1 commit
    • Tom Tromey's avatar
      Fix two tcl-mode defun-related bugs · cd5bb4bf
      Tom Tromey authored
      Fixes bug#23565
      * lisp/progmodes/tcl.el (tcl-mode): Set beginning-of-defun-function
      and end-of-defun-function.
      (tcl-beginning-of-defun-function, tcl-end-of-defun-function): New
      defuns.
      * test/lisp/progmodes/tcl-tests.el: New file.
      cd5bb4bf
  20. 16 Jun, 2018 1 commit
    • Noam Postavsky's avatar
      Fix off by one error in python-mode assertion (Bug#30964) · 05345bab
      Noam Postavsky authored
      * lisp/progmodes/python.el (python-nav-end-of-statement): Don't assert
      that string-start is strictly greater than last-string-end, because
      the string end is a position outside of the string and may therefore
      be the same as the following string's start.
      * test/lisp/progmodes/python-tests.el (python-nav-end-of-statement-2):
      New test.
      05345bab
  21. 21 May, 2018 1 commit
    • João Távora's avatar
      Fix Flymake's ruby-mode tests when user has "rubocop" installed · f21db9e1
      João Távora authored
      The Flymake test suite fails if the "rubocop" program is installed,
      because the ruby-flymake-rubocop backend is selected automatically by
      ruby-flymake-auto.  The test was designed for ruby-flymake-simple,
      tough, and fails.
      
      * test/lisp/progmodes/flymake-tests.el (ruby-backend): Ensure
      this test runs exclusively with the ruby-flymake-simple backend.
      f21db9e1
  22. 15 May, 2018 1 commit
  23. 14 May, 2018 1 commit
    • Tino Calancha's avatar
      run-python: Make the buffer running python current · b015fb0c
      Tino Calancha authored
      * lisp/progmodes/python.el (run-python, python-shell-make-comint):
      Make the buffer running the inferior python process the current buffer
      (Bug#31398).
      * test/lisp/progmodes/python-tests.el (python-tests--bug31398):
      Add test.
      b015fb0c
  24. 15 Mar, 2018 1 commit
    • Eli Zaretskii's avatar
      Support variable-unquoting syntax in bat-mode · 9e73c9d0
      Eli Zaretskii authored
      * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fontify
      argument numbers in %~n.  Suggested by Jostein Kjønigsen
      <jostein@secure.kjonigsen.net> in emacs-devel.
      
      * test/lisp/progmodes/bat-mode-tests.el
      (bat-test-fontification-iter-var-1): Update the test to check also
      the %~n construct.
      9e73c9d0
  25. 09 Mar, 2018 1 commit
    • Glenn Morris's avatar
      Quieten compilation of some test/lisp files · 94a59a6d
      Glenn Morris authored
      * test/lisp/dired-tests.el (dired-test-bug27243-02)
      (dired-test-bug27243-03, dired-test-bug27899)
      (dired-test-with-temp-dirs): Remove unused local variables.
      * test/lisp/hi-lock-tests.el (hi-lock-bug26666)
      (hi-lock-test-set-pattern): Mark unused arguments.
      * test/lisp/ses-tests.el (ses-tests-renamed-cells-row-insertion):
      Remove unused global "ses-tests-trigger".
      * test/lisp/simple-tests.el (line-number-at-pos-when-passing-point):
      Remove unused local "pos".
      * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests):
      Pacify compiler.
      * test/lisp/emacs-lisp/package-tests.el (package-test-signed):
      Replace obsolete function epg-configuration.
      * test/lisp/ls-lisp-tests.el:
      * test/lisp/eshell/em-ls-tests.el: Require dired.
      * test/lisp/progmodes/ruby-mode-tests.el
      (ruby-forward-sexp-skips-method-calls-with-keyword-names):
      * test/lisp/vc/diff-mode-tests.el
      (diff-mode-test-ignore-trailing-dashes): Replace interactive funcs.
      94a59a6d
  26. 01 Jan, 2018 1 commit
  27. 02 Dec, 2017 1 commit
  28. 12 Nov, 2017 1 commit
  29. 11 Nov, 2017 1 commit
  30. 09 Nov, 2017 1 commit
  31. 05 Nov, 2017 1 commit
    • João Távora's avatar
      Add tests for Flymake backends for Ruby and Perl · 58bb3462
      João Távora authored
      * test/lisp/progmodes/flymake-tests.el (perl-backend)
      (ruby-backend): New tests.
      (warning-predicate-rx-perl, warning-predicate-function-perl):
      Delete tests.
      
      * test/lisp/progmodes/flymake-resources/test.pl: Include an
      error the test file.
      
      * test/lisp/progmodes/flymake-resources/test.rb: file.
      58bb3462
  32. 24 Oct, 2017 1 commit
  33. 20 Oct, 2017 3 commits
  34. 15 Oct, 2017 1 commit
  35. 09 Oct, 2017 1 commit
    • João Távora's avatar
      Be lazy when starting Flymake checks · 11b37b4a
      João Távora authored
      Don't start the check immediately if the buffer is not being
      displayed.  Wait until it is, using window-configuration-change-hook.
      
      This enables the user to batch-enable flymake-mode on many buffers and
      not have that operation exhaust system resources for checking each
      one.  Likewise, an editing or save operation in a currently
      non-displayed buffer does not immediately start a check.
      
      * lisp/progmodes/flymake.el (flymake-start-on-flymake-mode):
      Rename from flymake-start-syntax-check-on-find-file.
      (flymake-start-syntax-check-on-find-file): Obsolete alias for
      flymake-start-on-flymake-mode.
      (flymake-start): Redesign.  Affect the global post-command-hook
      and local window-configuraiton-change-hook.
      (flymake--schedule-timer-maybe)
      (flymake-after-change-function, flymake-after-save-hook): Pass
      t to flymake-start.
      
      * test/lisp/progmodes/flymake-tests.el (flymake-tests--call-with-fixture)
      (dummy-backends, recurrent-backend): Start flymake check
      explicitly and immediately.
      11b37b4a