aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | ; 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.
* | | Adjust time-date tests to tweaked formatLars Ingebrigtsen2019-07-301-4/+4
| | |
* | | Add an ISO 8601 parsing libraryLars Ingebrigtsen2019-07-291-0/+291
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Parsing): Document it. * lisp/calendar/iso8601.el: New file. * test/lisp/calendar/iso8601-tests.el: Test ISO8601 parsing functions.
* | | Add support for dealing with decoded time structuresLars Ingebrigtsen2019-07-291-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Conversion): Document the new functions that work on decoded time. (Time Calculations): Document new date/time functions. * lisp/simple.el (decoded-time-second, decoded-time-minute) (decoded-time-hour, decoded-time-day, decoded-time-month) (decoded-time-year, decoded-time-weekday, decoded-time-dst) (decoded-time-zone): New accessor functions for decoded time values. * lisp/calendar/time-date.el (date-days-in-month) (date-ordinal-to-time): New functions. (decoded-time--alter-month, decoded-time--alter-day) (decoded-time--alter-second, make-decoded-time): New functions added to manipulate decoded time structures. * src/timefns.c (Fdecode_time): Mention the new accessors. * test/lisp/calendar/time-date-tests.el: New file to test the decoded time functions and the other new functions.
* | | * lisp/char-fold.el: Rename char-fold-make-table to char-fold--make-table.Juri Linkov2019-07-291-39/+41
| | |
* | | Move some uncontroversial char-folding pairs from test data to default valuesJuri Linkov2019-07-291-20/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/char-fold.el (char-fold--default-include) (char-fold--default-exclude): Add some default values. * test/lisp/char-fold-tests.el (char-fold--test-without-customization) (char-fold--test-with-customization): Move some test data to default values. Add more data for tests to pass. (Bug#35689)
* | | Make let-alist work with vectorsLars Ingebrigtsen2019-07-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Descend into vectors, too, looking for dotted variables (bug#23244). Test case: (let-alist '((a . 1) (b . 2)) `[,(+ .a) ,(+ .a .b .b)])
* | | `unknown' test case now worksLars Ingebrigtsen2019-07-281-1/+0
| | |
* | | Move tty-colors-tests.el to its proper directory.Eli Zaretskii2019-07-271-0/+38
| | |
* | | Fix recently-introduced file-name-absolute-p typoPaul Eggert2019-07-261-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | Fix a bug introduced in 2019-07-24T21:28:13!eggert@cs.ucla.edu. * src/fileio.c (file_name_absolute_p): ~/foo is also absolute (Bug#36809). * test/src/fileio-tests.el (fileio-tests--file-name-absolute-p): Rename from fileio-tests--no-such-user and add more tests.
* | | Add new macro `ignore-error'Lars Ingebrigtsen2019-07-261-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/control.texi (Handling Errors): Document `ignore-error'. * lisp/subr.el (ignore-error): New macro. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Provide completion for `ignore-error'.
* | | 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
* | | Do not treat ~nosuchuser as an absolute file namePaul Eggert2019-07-241-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Derived from Ken Brown’s patch (Bug#36502#97). * doc/lispref/files.texi (Relative File Names): * etc/NEWS: Document this. * src/fileio.c (user_homedir): New function. (Fexpand_file_name, file_name_absolute_p): Use it. (search_embedded_absfilename): Simplify via file_name_absolute_p. * test/src/fileio-tests.el (fileio-tests--no-such-user): New test.
* | | Don't use internal filenotify function in testMattias Engdegård2019-07-241-21/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-file, file-notify--test-add-watch): New. (file-notify--test-event-test, file-notify--test-event-handler) (file-notify-test02-rm-watch, file-notify-test03-events) (file-notify-test05-file-validity, file-notify-test07-many-events) (file-notify-test08-backup, file-notify-test09-watched-file-in-watched-dir): Avoid using the internal `file-notify--event-watched-file' so that it can be removed from filenotify.el. Instead, pass the file name to the callback as an extra argument; use `file-notify--test-add-watch' instead of `file-notify-add-watch'.
* | | Local definitions of accessors only used in testMattias Engdegård2019-07-241-3/+7
| | | | | | | | | | | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-event-file) (file-notify--test-event-file1, file-notify--test-event-test) (file-notify--test-event-handler): Define accessors locally, so that they can be removed from filenotify.el.
* | | Customizable char-fold with char-fold-symmetric, char-fold-include (bug#35689)Juri Linkov2019-07-231-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/search.texi (Lax Search): Document char-fold-symmetric, char-fold-include, char-fold-exclude. * lisp/char-fold.el (char-fold--default-include) (char-fold--default-exclude, char-fold--default-symmetric) (char-fold--previous): New defconsts. (char-fold-include, char-fold-exclude, char-fold-symmetric): New defcustoms. (char-fold-make-table): Use them. (char-fold-update-table): New function called at top-level. * test/lisp/char-fold-tests.el (char-fold--test-no-match-exactly) (char-fold--permutation): New functions. (char-fold--test-without-customization) (char-fold--test-with-customization): New tests.
* | | Support "%x" etc. formats on more floatsPaul Eggert2019-07-231-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/strings.texi (Formatting Strings): Document this. * src/editfns.c (styled_format): Support %o, %x, and %X on finite floats less than zero or greater than UINTMAX_MAX. * test/src/editfns-tests.el (format-%x-large-float) (read-large-integer, format-%o-negative-float): Adjust tests to match extended behavior. Rename the latter test from format-%o-invalid-float, since the float is no longer invalid. * test/src/editfns-tests.el (format-%x-large-float) (read-large-integer): Test this.
* | | * lisp/progmodes/opascal.el: Allow inline `var` decl in `for` (bug#36348)Stefan Monnier2019-07-221-0/+12
| | | | | | | | | | | | (opascal-enclosing-indent-of): Ignore decls "neutered" by delimiter.
* | | Make tramp test regexp more robustMattias Engdegård2019-07-221-1/+1
| | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Match a greater variety of human-readable size values.
* | | Fix expand-file-name for names starting with '~'Ken Brown2019-07-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fileio.c: (file_name_absolute_no_tilde_p): New static function. (Fexpand_file_name): If the current buffer's default-directory starts with "~user" where "user" is not a valid user name, don't give the '~' a special meaning. Just treat the value of default-directory as a relative name. (Bug#36502) * test/src/fileio-tests.el (fileio-tests--relative-default-directory): Add a test.
* | | Fix crash if user test munges hash tablePaul Eggert2019-07-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (restore_mutability) (hash_table_user_defined_call): New functions. (cmpfn_user_defined, hashfn_user_defined): Use them. (make_hash_table, copy_hash_table): Mark new hash table as mutable. (check_mutable_hash_table): New function. (Fclrhash, Fputhash, Fremhash): Use it instead of CHECK_IMPURE. * src/lisp.h (struct hash_table_test): User-defined functions now take pointers to struct Lisp_Hash_Table, not to struct hash_table_test. All uses changed. (struct Lisp_Hash_Table): New member ‘mutable’. * src/pdumper.c (dump_hash_table): Copy it. * test/src/fns-tests.el (test-hash-function-that-mutates-hash-table): New test, which tests for the bug.
* | | Merge from emacs-26Noam Postavsky2019-07-201-0/+19
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 150bdfe43a Handle completely undecoded input in term (Bug#29918) 021f32cca1 * doc/misc/forms.texi (Control File Format): Fix a doc error. 76538d09b7 Fix typo in package-alist docstring b2fde4b5e8 * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo... 7e62778548 ; Another minor change in 'bidi-display-reordering's doc s... 4455ddbe56 Improve doc string of 'bidi-display-reordering' 34ee26dd93 Add warning to bidi-display-reordering doc string # Conflicts: # lisp/term.el # test/lisp/term-tests.el
| * | Handle completely undecoded input in term (Bug#29918)Noam Postavsky2019-07-201-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/term.el (term-emulate-terminal): Avoid errors if the whole decoded string is eight-bit characters. Don't attempt to save the string for next iteration in that case. * test/lisp/term-tests.el (term-decode-partial) (term-undecodable-input): New tests.
* | | * test/manual/indent/octave.m (spmd): Add test for last changeStefan Monnier2019-07-201-0/+4
| | |
* | | Allow counter-clockwise rotations in image-rotateBasil L. Contovounesios2019-07-201-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-rotate): Extend with an optional argument specifying the rotation in degrees (bug#35421). * doc/lispref/display.texi (Showing Images): * etc/NEWS: Document the change. * test/lisp/image-tests.el (image-rotate): New test.
* | | Make REs in magic-(fallback-)mode-alist case-sensitive.Benjamin Riefenstahl2019-07-201-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These variables are used for well-defined file formats where relaxed case matching is not wanted usually. * lisp/files.el (magic-mode-alist, magic-fallback-mode-alist): Update the doc string. (set-auto-mode): Make looking-at for elements of magic-mode-alist and magic-fallback-mode-alist use case-fold-search == nil. * lisp/files.el (files-test-magic-mode-alist-re-baseline) (files-test-magic-mode-alist-re-no-match) (files-test-magic-mode-alist-re-case-diff): Add.
* | | Use lexical-binding in help-fns-tests.el (Bug#36585)Stefan Kangas2019-07-181-2/+2
| | | | | | | | | | | | * test/lisp/help-fns-tests.el: Use lexical-binding. Doc fix.
* | | 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.
* | | Update a tramp test for get-free-disk-space changeGlenn Morris2019-07-181-1/+1
| | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Handle optional unit suffix in free space.
* | | * test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define linesNick Drozd2019-07-171-0/+9
| | |
* | | An electric test is now passingGlenn Morris2019-07-161-10/+0
| | | | | | | | | | | | | | | | | | * test/lisp/electric-tests.el (electric-pair-whitespace-chomping-2-at-point-4-in-c++-mode-in-strings): Seems to pass since today's cc-mode changes.
* | | Fix failing secrets-test03-itemsBasil L. Contovounesios2019-07-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/secrets-tests.el: Use lexical-binding. (secrets-test03-items): Do not assume :xdg:schema attribute is silently added to the front of the collection (bug#36694). (secrets-test04-search, secrets-test-all): Quote function symbols as such.
* | | Fix calc number formatting with digit grouping (bug#36689)Mattias Engdegård2019-07-161-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions math-format-hex and math-format-octal were not implemented, yet called, leading to a crash when using hex or octal radix with digit grouping. * test/lisp/calc/calc-tests.el (calc-test-format-radix): New test. * lisp/calc/calc-ext.el: Don't declare non-existing functions. (math--format-integer-fancy): Don't call non-existing functions. * lisp/calc/calc-bin.el (math-format-binary, math-binary-digits): Simplify, fixing 0-padding bug.
* | | Stop wdired tests leaving behind symlink /tmp/emacs1000Glenn Morris2019-07-141-0/+3
| | | | | | | | | | | | * test/lisp/wdired-tests.el (server-socket-dir): Make effective.
* | | Update a ffap testGlenn Morris2019-07-141-3/+1
| | | | | | | | | | | | | | | * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Update for incompatible ffap-other-window change.
* | | Restore focus to Bookmark List after editing annotationStefan Kangas2019-07-141-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two entry points to bookmark-edit-annotation-mode: the first when we add a bookmark and bookmark-use-annotations is non-nil; the second when bookmark-bmenu-edit-annotation is run from the bookmark list. When editing is concluded, in the first case, we should just quit window. In the second case, we should instead return to the bookmark list. * lisp/bookmark.el (text-property-search): Require. (bookmark-annotation-name): Make buffer-local and improve doc string. (bookmark--annotation-from-bookmark-list): New buffer-local variable. (bookmark-edit-annotation): New argument from-bookmark-list sets bookmark--annotation-from-bookmark-list. (bookmark-bmenu-edit-annotation): Call bookmark-edit-annotation with argument from-bookmark-list set to t. (bookmark-send-edited-annotation): When editing originated in the bookmark list, restore focus to bookmark list and move point back to edited bookmark. (Bug#20150) (bookmark-edit-annotation-mode): Fix typo. (bookmark-bmenu-buffer): New variable. (bookmark-bmenu-surreptitiously-rebuild-list) (bookmark-bmenu-list): Use it. * test/lisp/bookmark-tests.el (with-bookmark-bmenu-test): New macro. (bookmark-tests-set/bookmark-use-annotations-t) (bookmark-bmenu-edit-annotation/show-annotation) (bookmark-bmenu-send-edited-annotation) (bookmark-bmenu-send-edited-annotation/restore-focus): New test cases.
* | | New function for scroll-lock-mode to almost always scrollMarco Wahl2019-07-141-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/scroll-lock.el (scroll-lock-next-line-always-scroll): New function. Opposed to scroll-lock-next-line it does not switch to forward-line at eob. S-down is the default key binding for this function. (Bug#36494) * test/lisp/scroll-lock-tests.el: A few tests for scroll-lock-next-line-always-scroll. * etc/NEWS: Announce the new command.
* | | ; Some precisements in test/READMEMichael Albinus2019-07-131-9/+10
| | |
* | | Add tests for so-long.elPhil Sainty2019-07-135-0/+708
| | |
* | | Document format-spec and expand the modifiers it supportsLars Ingebrigtsen2019-07-131-0/+18
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Interpolated Strings): New section. * lisp/format-spec.el (format-spec--parse-modifiers) (format-spec--pad): New functions. (format-spec): Support more format modifiers (bug#32931).
* | | * test/lisp/replace-tests.el (replace-tests-with-undo): OverrideJuri Linkov2019-07-121-3/+8
| | | | | | | | | | | | replace-highlight to emulate clobbering match-data (bug#36328).
* | | * 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.
* | | Fix breaking of rfc2047 headers with long wordsLars Ingebrigtsen2019-07-121-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/rfc2047.el (rfc2047-fold-region): Don't break lines right after the Header: field, but wait until the next whitespace. (This only makes a difference for words that are very long (i.e., longer than, say, 60 characters, depending on the header name length.)
* | | Refactor rfc2047-fold-region slightly and add a couple of testsLars Ingebrigtsen2019-07-121-0/+46
| | | | | | | | | | | | | | | | | | * lisp/mail/rfc2047.el (rfc2047--break-line): Refactor out to avoid code repetition... (rfc2047-fold-region): ... from this function.
* | | Check directory in Tramp's {copy,rename}-fileMichael Albinus2019-07-121-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file) (tramp-adb-handle-rename-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file) (tramp-smb-handle-rename-file): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file): Check, that NEWNAME is not a directory given as file name. * test/lisp/net/tramp-tests.el (tramp-test11-copy-file) (tramp-test12-rename-file): Extend tests.
* | | * test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'.Michael Albinus2019-07-111-4/+1
| | |
* | | Allow passing unknown specs to format-specLars Ingebrigtsen2019-07-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/format-spec.el (format-spec): Allow passing through format strings that have no specs (to be able to act as a filter). Also add an example. * test/lisp/format-spec-tests.el (test-format-spec): Add tests for the new functionality.
* | | Add tests for format-specLars Ingebrigtsen2019-07-111-0/+33
| | |
* | | Add test to time-stamp.elLars Ingebrigtsen2019-07-111-0/+36
| | |