aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a generic function for creating streams from different sourcesNicolas Petton2015-08-141-1/+1
| | | | | | * lisp/emacs-lisp/stream.el (stream): New generic function. * test/automated/stream-tests.el (stream-list-test): Fix a reference to the old `stream-list' function
* Allow negative steps in stream-rangeNicolas Petton2015-08-101-2/+2
| | | | | | | * lisp/emacs-lisp/stream.el (stream-range): Do not signal an error if the step is negative. * test/automated/stream-tests.el (stream-range-test): Add a regression test for negative steps in stream-range.
* Add a new streaming library stream.elNicolas Petton2015-07-311-0/+117
| | | | | | | | | | | | | | | | | stream.el provides an implementation of streams. Streams are implemented as delayed evaluation of cons cells. The implementation is close to the one in the SICP book (https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html). Streams could be created from any sequencial input data, including sequences, , making operation on them lazy, a set of 2 forms (first and rest), making it easy to represent infinite sequences, buffers (by character), buffers (by line), buffers (by page), IO streams, orgmode table cells, etc. * lisp/emacs-lisp/stream.el: New file. * test/automated/stream-tests.el: New file.
* Minor cleanup in tramp-tests.elMichael Albinus2015-07-241-53/+41
| | | | | | * test/automated/tramp-tests.el (tramp-test31-*, tramp-test32-*): Implement using the documented interface `tramp-connection-properties', rather than with internal functions.
* Fix some Tramp problems with HP-UXMichael Albinus2015-07-231-3/+14
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Add "tab0" to stty call. * test/automated/tramp-tests.el (tramp-persistency-file-name): Set to nil. (tramp--test-hpux-p): New defun. (tramp--test-utf8): Use it.
* * test/automated/package-test.el (package-test-signed):Glenn Morris2015-07-211-1/+1
| | | | Update for recent changes.
* * test/automated/elisp-mode-tests.elGlenn Morris2015-07-211-3/+3
| | | | | | (elisp-xref-finds-both-function-and-variable) (elisp-xref-finds-only-function-for-minor-mode): Update for recent xref name changes.
* Sync with Tramp repositoryMichael Albinus2015-07-211-33/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Configuration): Note, that Tramp must be required prior changing its configuration. (Connection caching, Predefined connection information) (Remote shell setup): Fix typos. (Predefined connection information): Describe, how to overwrite parameters of `tramp-methods'. (Remote programs, Remote processes, Traces and Profiles): Simplify example. (Remote programs): Remove superfluous comment. * doc/misc/trampver.texi: Update release number. * lisp/net/tramp-cache.el (tramp-connection-properties): Adapt docstring. * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun. (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it. (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling, "gvfs-mkdir -p ..." does not work robust. (tramp-gvfs-maybe-open-connection): Adapt `tramp-get-method-parameter' call. * lisp/net/tramp-sh.el (tramp-methods): Add `tramp-remote-shell-login' parameter where it fits. (tramp-get-remote-path): Use it. (tramp-make-copy-program-file-name): Fix quoting for "psftp" method. (all): Adapt `tramp-get-method-parameter' calls. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-get-method-parameter): Replace argument METHOD by VEC. Check also for hits in `tramp-connection-properties'. Adapt docstring. (tramp-get-remote-tmpdir): Cache only the local name of tmpdir. (all): Adapt `tramp-get-method-parameter' calls. * lisp/net/trampver.el Update release number. * test/automated/tramp-tests.el (tramp--instrument-test-case): Add "^make-symbolic-link not supported$" to `debug-ignored-errors'. (tramp-test13-make-directory, tramp--test-adb-p) (tramp--test-smb-or-windows-nt-p): Simplify. (tramp--test-ftp-p, tramp--test-gvfs-p): New defuns. (tramp--test-special-characters): Fix docstring. Add gvfs and ftp tests. (tramp--test-utf8): Fix docstring.
* * lisp/emacs-lisp/package.el (package-buffer-info):Artur Malabarba2015-07-171-4/+13
| | | | Add author and maintainers to `package-buffer-info'.
* * lisp/emacs-lisp/package.el: Many small changesArtur Malabarba2015-07-171-10/+8
| | | | | | | | Replace all instances of 'face with 'font-lock-face. (describe-package-1): Improve some strings and move the summary up the list. (package-install-file): Update docstring. (package-menu-hide-package): Bind to `H'.
* Fix Bug#20943.Michael Albinus2015-07-161-3/+3
| | | | | | | | | | | * lisp/autorevert.el (auto-revert-handler): Do not check for `buffer-modified-p'. * lisp/files.el (buffer-stale--default-function): Check for `buffer-modified-p'. * test/automated/auto-revert-tests.el (auto-revert-test02-auto-revert-mode-dired): Adapt test.
* New autorevert tests.Michael Albinus2015-07-141-0/+210
| | | | * test/automated/auto-revert-tests.el: New file.
* * test/automated/map-tests.el (test-map-delete-return-value): Uncomment test.Nicolas Petton2015-07-091-16/+16
|
* Add support for gv.el in map.elNicolas Petton2015-07-091-55/+48
| | | | | | | * lisp/emacs-lisp/map.el (map-elt, map-delete): Declare a gv-expander. * lisp/emacs-lisp/map.el (map-put): Refactor using `setf' and `map-elt'. * test/automated/map-tests.el: Update tests to work with the new implementations of map-elt and map-put.
* * test/automated/ert-tests.el (ert-test-deftest):Glenn Morris2015-07-071-0/+2
| | | | Update for recent changes.
* python.el: Fix local/remote shell environment setupFabián Ezequiel Gallina2015-07-061-8/+36
| | | | | | | | * lisp/progmodes/python.el (python-shell-with-environment): Fix remote/local environment setup. * test/automated/python-tests.el (python-shell-with-environment-1) (python-shell-with-environment-2): New tests.
* python.el: Fix mark-defun behavior (Bug#19665)Fabián Ezequiel Gallina2015-07-061-0/+152
| | | | | | | * lisp/progmodes/python.el: (python-mark-defun): New function. * test/automated/python-tests.el (python-mark-defun-1) (python-mark-defun-2, python-mark-defun-3): New tests.
* * lisp/progmodes/f90.el (f90-type-def-re): Handle attribute listsGlenn Morris2015-07-051-0/+26
| | | | | | | such as "extends(parent), private". (Bug#20969) * test/automated/f90.el (f90-test-bug20969, f90-test-bug20969b): New tests.
* Respect `prog-indentation-context' in python.elChristoph Wedler2015-07-051-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-indent-guess-indent-offset) (python-indent-context, python-indent--calculate-indentation) (python-info-current-defun) (python-info-dedenter-opening-block-message) (python-info-line-ends-backslash-p) (python-info-beginning-of-backslash) (python-info-continuation-line-p): Use `prog-widen'. (python-indent--calculate-indentation) (python-indent--calculate-levels) (python-indent-calculate-indentation): Use `prog-first-column'. (python-indent--calculate-levels): Simplify. Ignore also initial empty lines for syntax calculation. * lisp/progmodes/python.el (python-indent-context): Return :no-indent for first non-empty line, not just in line 1. * test/automated/python-tests.el (python-indent-base-case) (python-indent-inside-paren-1, python-indent-inside-paren-2) (python-indent-inside-paren-3, python-indent-inside-paren-4) (python-indent-inside-paren-5, python-indent-inside-paren-6) (python-indent-after-backslash-1) (python-indent-after-backslash-2) (python-indent-after-backslash-3) (python-indent-after-backslash-4, python-indent-inside-string-1): Expect :no-indent for first non-empty line.
* Update eieio tests for recent eieio-core change.Glenn Morris2015-07-032-3/+3
| | | | | | | * test/automated/eieio-test-persist.el (persist-test-save-and-compare): * test/automated/eieio-tests.el (eieio-test-32-slot-attribute-override-2): Replace the deleted eieio--class-v with cl--find-class.
* Add seq-min and seq-maxNicolas Petton2015-06-301-0/+5
| | | | | | | Bump version number. * lisp/emacs-lisp/seq.el (seq-min, seq-max): New functions. * test/automated/seq-tests.el: Add tests for seq-min and seq-max.
* Sync with Tramp 2.2.12Michael Albinus2015-06-281-2/+67
| | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Update release number. * test/automated/tramp-tests.el (tramp-test13-make-directory): Fix cleanup.
* Fix VC test suite on MS-WindowsEli Zaretskii2015-06-271-1/+13
| | | | | | | | | * lisp/vc/vc-svn.el (vc-svn-create-repo): Make sure the file: URL always starts with 3 slashes after the colon. * test/automated/vc-tests.el (vc-test--create-repo-function): Use 'w32-application-type' to invoke CVS on MS-Windows with properly formatted CVSROOT directory name.
* * test/automated/package-test.el (package-test-update-listing):Artur Malabarba2015-06-231-0/+1
| | | | Fix test.
* Port tests to help-quote-translationPaul Eggert2015-06-212-4/+4
| | | | | | * test/automated/ert-x-tests.el (ert-test-describe-test): * test/automated/package-test.el (package-test-describe-package) (package-test-signed): Allow straight quotes, too.
* Revert "Define `map-elt' as a generalized variable"Nicolas Petton2015-06-211-12/+12
| | | | This reverts commit 8b6d82d3ca86f76ed964063b3941a7c6ab0bf1c6.
* Define `map-elt' as a generalized variableNicolas Petton2015-06-211-12/+12
| | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Define a gv-expander. * lisp/emacs-lisp/map.el (map--dispatch): Tighten the code. * lisp/emacs-lisp/map.el (map-put): Redefine it as a function using a `setf' with `map-elt'. * test/automated/map-tests.el: Comment out `test-map-put-literal'.
* Fix bytecomp-tests--warnings when $TMPDIR has a long nameEli Zaretskii2015-06-211-2/+6
| | | | | | * test/automated/bytecomp-tests.el (bytecomp-tests--warnings): Allow the warning to begin on the 3rd, not only 2nd line, which happens if temporary-file-directory has a very long name.
* Expect 2 icalendar tests to fail on MS-WindowsEli Zaretskii2015-06-211-0/+10
| | | | | * test/automated/icalendar-tests.el (icalendar-import-with-timezone) (icalendar-real-world): Make them expected failures on MS-Windows.
* Update data files from just-released Unicode 8.0Eli Zaretskii2015-06-181-3/+3
| | | | | | | | | * etc/NEWS: Update wording since Unicode 8.0 is no longer in draft status. * test/BidiCharacterTest.txt: Update from Unicode 8.0. * admin/unidata/BidiMirroring.txt: * admin/unidata/BidiBrackets.txt: * admin/unidata/UnicodeData.txt: Update from Unicode 8.0.
* * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/Stefan Monnier2015-06-151-0/+8
| | | | | | (perl--syntax-exp-intro-keywords): New var. (perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it. (bug#20800).
* Spelling fixesPaul Eggert2015-06-141-2/+2
|
* Fix quoting of help for functions with odd namesPaul Eggert2015-06-111-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While investigating Bug#20759, I discovered other quoting problems: C-h f mishandled characters like backslash and quote in function names. This fix changes the behavior so that 'C-h f pcase RET' now generates "... (\` QPAT) ..." instead of "... (` QPAT) ...", because '(format "%S" '(` FOO))' returns "(\\` FOO)". A comment in src/lread.c's read1 function says that the backslash will be needed starting in Emacs 25, which implies that 'format' is correct and the old pcase documention was wrong to omit the backslash. * lisp/emacs-lisp/nadvice.el (advice--make-docstring): * lisp/help-fns.el (help-fns--signature): * lisp/help.el (help-add-fundoc-usage): * lisp/progmodes/elisp-mode.el (elisp-function-argstring): Use help--make-usage-docstring rather than formatting help-make-usage. * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Return raw docstring. * lisp/help-fns.el (help-fns--signature): New arg RAW, to return raw docstring. Take more care to distinguish raw from cooked dstrings. (describe-function-1): Let help-fns--signature substitute command keys. * lisp/help.el (help--docstring-quote): New function. (help-split-fundoc): Use it, to quote funny characters more systematically. (help--make-usage): Rename from help-make-usage, since this should be private. Leave an obsolete alias for the old name. (help--make-usage-docstring): New function. * test/automated/help-fns.el (help-fns-test-funny-names): New test.
* * lisp/let-alist.el (let-alist--deep-dot-search): Fix consArtur Malabarba2015-06-111-0/+13
| | | | * test/automated/let-alist.el (let-alist-cons): Test it.
* * test/automated/Makefile.in (ELFILES): Sort.Glenn Morris2015-06-091-1/+1
|
* Skip past `#' to find BEGDmitry Gutov2015-06-091-0/+9
| | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Skip past `#' to find BEG (bug#20771). * test/automated/elisp-mode-tests.el (elisp-completes-functions-after-hash-quote): New test.
* Fix a unit test for map.elNicolas Petton2015-06-061-3/+3
| | | | | * test/automated/map-tests.el (test-map-let): Fix the test to work with the new syntax of `map-let'.
* * test/automated/map-tests.el: Replace "assert" with "should".Glenn Morris2015-06-051-93/+93
|
* Merge branch 'map'Nicolas Petton2015-06-041-0/+333
|\
| * Add a pcase pattern for maps and `map-let' based on itNicolas Petton2015-06-021-0/+12
| | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-let): New macro. (map--make-pcase-bindings, map--make-pcase-patterns): New functions. * test/automated/map-tests.el: New test for `map-let'.
| * Fix a false negative in `map-elt' with alists and values being nilNicolas Petton2015-04-251-0/+6
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): If map is an alist and key is found but its associated value is nil, do not return the default value. * test/automated/map-tests.el: Add a regression test.
| * Do not signal an error when trying to delete a key from an arrayNicolas Petton2015-04-241-1/+4
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-delete): When map is an array, check if the key is present to avoid signaling an error. * test/automated/map-tests.el: Add a test for deleting non-existing keys from maps.
| * Minor improvement in map-elt.Nicolas Petton2015-04-241-0/+1
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Do not use `ignore-errors' when doing a lookup in arrays, but check the boundaries of the array instead. * test/automated/map-tests.el: Adds a test for `map-elt' with arrays and a negative integer as key.
| * * test/automated/map-tests.el: Refactoring of test methods.Nicolas Petton2015-04-211-149/+135
| |
| * * test/automated/map-tests.el: Renamed from map-test.el.Nicolas Petton2015-04-211-0/+0
| |
| * Throw an error when converting a map into an unknown map typeNicolas Petton2015-04-181-1/+2
| | | | | | | | | | * lisp/emacs-lisp/map.el (map-into): Throw an error if type is not valid. * test/automated/map-test.el: Add a regression test.
| * New library map.el similar to seq.el but for mapping data structures.Nicolas Petton2015-04-181-0/+324
| | | | | | | | | | * test/automated/map-test.el: New file. * lisp/emacs-lisp/map.el: New file.
* | Add new function string-greaterpNicolas Petton2015-06-041-1/+23
| | | | | | | | | | | | | | | | * lisp/subr.el (string-greaterp): New function. Also aliased to `string>'. * test/automated/subr-tests.el (string-comparison-test): Add unit tests for `string>'and `string<'. * src/fns.c (string-lessp): Better docstring.
* | Fix error introduced recently in file-notify-tests.elMichael Albinus2015-06-031-26/+19
| | | | | | | | | | | | | | * test/automated/file-notify-tests.el (file-notify--test-remote-enabled): Do not use `file-notify--test-desc'. (file-notify--deftest-remote): Revert previous patch, not necessary anymore.
* | Instrument file-notify-test.el in order to catch hydra error.Michael Albinus2015-06-031-7/+11
| | | | | | | | | | * test/automated/file-notify-tests.el (file-notify--deftest-remote): Wrap body by `ignore-case', in order to trap non-local errors.