1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

1086 Commits

Author SHA1 Message Date
Nicolas Petton
51d840a8a1 Rename seq-p and map-p to seqp and mapp
* lisp/emacs-lisp/seq.el (seqp): New name.
* lisp/emacs-lisp/map.el (mapp): New name.
* doc/lispref/sequences.texi: Update the documentation for seqp.
* test/automated/map-tests.el: Update the tests for mapp.
2015-11-11 18:20:03 +01:00
Nicolas Petton
23036bac7d Rename obarray-p to obarrayp
* lisp/obarray.el (obarrayp): New name.
* test/automated/obarray-tests.el: Update the tests.
2015-11-11 18:09:42 +01:00
Nicolas Petton
20aea42934 Rename obarray-foreach to obarray-map
* lisp/obarray.el (obarray-map): New name.
* test/automated/obarray-tests.el: Update the corresponding tests.
2015-11-11 17:53:41 +01:00
Przemysław Wojnowski
a3b210129c New file with obarray functions.
* lisp/obarray.el: basic obarray functions extracted from abbrev.el
* test/automated/obarray-tests.el: new file
2015-11-11 17:53:00 +01:00
Paul Eggert
c92dbd6d0c Spelling fixes
* lisp/net/soap-inspect.el (soap-inspect-xs-simple-type):
Fix misspelling in output.
2015-11-10 10:23:00 -08:00
Artur Malabarba
cbaa04014e * lisp/emacs-lisp/map.el (map-merge-with): New function
* test/automated/map-tests.el (test-map-merge-with): New test
2015-11-10 13:04:30 +00:00
Dmitry Gutov
0be6fb8e17 Merge branch 'project-next' 2015-11-10 02:47:46 +02:00
Simen Heggestøyl
29d740aac9 Add support for retrieving paths to JSON elements
Add support for retrieving the path to a JSON element. This can for
instance be useful to retrieve paths in deeply nested JSON
structures.

* lisp/json.el (json-pre-element-read-function)
(json-post-element-read-function): New variables to hold pre- and post
read callback functions for `json-read-array' and `json-read-object'.
(json--path): New variable used internally by `json-path-to-position'.
(json--record-path, json--check-position): New functions used
internally by `json-path-to-position'.
(json-path-to-position): New function for retrieving the path to a
JSON element at a given position.
(json-read-object, json-read-array): Call
`json-pre-element-read-function' and `json-post-element-read-function'
when set.

* test/automated/json-tests.el (test-json-path-to-position-with-objects)
(test-json-path-to-position-with-arrays)
(test-json-path-to-position-no-match): New tests for
`json-path-to-position'.
2015-11-08 21:44:21 +01:00
Eli Zaretskii
b9acb9502f ;* test/automated/abbrev-tests.el: Fix a typo in a comment 2015-11-08 05:43:00 +02:00
Noam Postavsky
76be8f28eb Add test for bug #21824
* test/automated/buffer-tests.el: New file.
(overlay-modification-hooks-message-other-buf): New test.
2015-11-07 20:04:00 +02:00
Artur Malabarba
b74c8847e8 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug
The defsubst was being created as:
    (cl-defsubst name (args) ("DOC") ...)

* test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
2015-11-07 13:55:16 +00:00
Eli Zaretskii
bede518c38 Fix error in copy-abbrev-table
* lisp/abbrev.el (define-abbrev): Don't erase the :abbrev-table-modiff
property of the abbrev-table.  (Bug#21828)

* test/automated/abbrev-tests.el: New file.
2015-11-07 13:32:33 +02:00
Michael Albinus
b29be62888 Add test to auto-revert-tests.el for Bug#21841
* test/automated/auto-revert-tests.el
(auto-revert-test01-auto-revert-several-files): New test.
(auto-revert-test02-auto-revert-tail-mode)
(auto-revert-test03-auto-revert-mode-dired): Rename them.
2015-11-07 11:05:03 +01:00
Artur Malabarba
8025fdbbea * test/automated/subr-tests.el (subr-test-when): Fix again 2015-11-06 16:18:32 +00:00
Dmitry Gutov
977697203f Rename "search path" to "library roots"
* lisp/emacs-lisp/cl-seq.el (cl-set-difference): Retain the order
of the elements from CL-LIST1.

* test/automated/cl-lib-tests.el (cl-lib-test-set-functions):
Update WRT to the above change.

* lisp/progmodes/project.el (project-search-path-function): Rename
to project-library-roots-function, update the documentation and
references.
(project-search-path): Likewise, to project-library-roots.
(project-roots): Clarify documentation.
(project-vc-search-path): Likewise, to project-vc-library-roots.
(project-library-roots): In addition to the renames, thread the
results through file-name-as-directory.
(project-prune-directories): Accept a variable number of
arguments.  Rename to project-combine-directories.
(project-subtract-directories): New function.

* lisp/progmodes/elisp-mode.el (elisp--xref-find-references):
Append project-roots and project-library-roots together.

* lisp/progmodes/etags.el (etags--xref-find-references): Ditto.
2015-11-06 15:37:24 +02:00
Artur Malabarba
9b912623ad * test/automated/subr-tests.el (subr-test-when): Fix test 2015-11-06 11:18:23 +00:00
Michael Albinus
f353f53b64 Skip some file notification tests for cygwin
* test/automated/file-notify-tests.el (file-notify--test-with-events):
Remove argument TIMEOUT.  Adapt all callees.
(file-notify-test02-events, file-notify-test04-file-validity):
Skip for cygwin.  (Bug#21804)
2015-11-06 07:33:50 +01:00
Juanma Barranquero
7afaf0c0de * test/automated/elisp-mode-test.el: Silence some run-time warnings
(xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.
2015-11-05 22:47:52 +01:00
Juanma Barranquero
0880d5f6e1 * test/automated/process-tests.el: Skip tests when bash is not available
(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for): skip-unless bash executable found.
2015-11-05 19:42:47 +01:00
Eli Zaretskii
3be53aaed1 Add test for bug #21831
* test/automated/process-tests.el
(start-process-should-not-modify-arguments): New test.  (Bug#21831)
Suggested by Nicolas Richard <youngfrog@members.fsf.org>
2015-11-05 20:12:19 +02:00
Juanma Barranquero
c9def83b49 ; * test/automated/elisp-mode-tests.el: Fix typo. 2015-11-05 12:01:25 +01:00
Stefan Monnier
54e2ed97bf * lisp/emacs-lisp/eieio-compat.el: Typo caught by tests
(eieio--generic-static-object-generalizer): Fix typo.
* test/automated/eieio-tests.el: Byte-compile it again.
It looks like the underlying cause of bug#17852 was fixed in the mean time.
2015-11-04 09:42:20 -05:00
Artur Malabarba
8e843831ea * lisp/subr.el (when): Use `macroexp-progn'
* test/automated/subr-tests.el (subr-test-when): New test
2015-11-04 12:56:25 +00:00
Michael Albinus
7e9da9f709 ; Shorten TODO list in file-notify-tests.el 2015-11-03 18:33:25 +01:00
Stephen Leake
fcfa23911d Fix Bug#21816; case insensitive file system in elisp-mode-tests.el
* test/automated/elisp-mode-tests.el (xref-elisp-test-run): Use
case-insensitive string compare for file names.
(emacs-test-dir): Add 'downcase' to cause case differences (at least on
my system).
2015-11-03 08:48:54 -06:00
Juanma Barranquero
1cd0e89ab9 flymake-tests.el (warning-predicate-rx-gcc): Fix check.
* test/automated/flymake-tests.el (warning-predicate-rx-gcc):
Also check that "make" is available, not just "gcc".
2015-11-02 18:16:54 +01:00
Ken Brown
a9cdc4a23c Document behavior of collation on Cygwin
* test/automated/fns-tests.el (fns-tests-collate-sort): Mark as
expected failure on Cygwin.
* doc/lispref/strings.texi (Text Comparison): Document that
punctuation and whitespace are not ignored for sorting on Cygwin.
2015-11-02 11:22:51 -05:00
Glenn Morris
ff80687aee * lisp/progmodes/f90.el (f90-no-block-limit):
Add associate.  (Bug#21794)
* test/automated/f90.el (f90-test-bug21794): New test.
2015-11-01 18:25:42 -08:00
Juanma Barranquero
3a769e173e Fix incompatibility with TCC in test for bug#18745
* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.
2015-11-01 19:14:27 +01:00
Juanma Barranquero
590a820fd9 Fix bug#21762
* lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with
`eql' instead of `=' to accommodate the case that (syntax-after (point))
returns nil.

* test/automated/python-tests.el (python-indent-inside-paren-7):
New test.
2015-11-01 02:55:16 +01:00
Juanma Barranquero
9278095442 * test/automated/python-tests.el: Avoid warnings
(python-tests-with-temp-buffer, python-tests-with-temp-file):
Bind `python-indent-guess-indent-offset' to nil.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
#	modified:   test/automated/python-tests.el
#
2015-11-01 01:17:16 +01:00
Jackson Ray Hamilton
958da7ff63 Add JSX indentation via js-jsx-mode. (Bug#21799)
* progmodes/js.el: Add JSX indentation support.
(js-jsx-indent-line)
(js-jsx-mode): New functions.
2015-10-31 13:02:36 -07:00
Michael Albinus
547a23469a Minor fix in filenotify.el
* lisp/filenotify.el (file-notify--event-file-name)
(file-notify--event-file1-name): Normalize result with
`directory-file-name'.
2015-10-31 14:42:16 +01:00
Michael Albinus
9c36df736b Add result messages in vc-tests.el
* test/automated/vc-tests.el (vc-test--state)
(vc-test--working-revision, vc-test--checkout-model): Add result messages.
2015-10-30 18:35:58 +01:00
Artur Malabarba
36ead807e2 * test/automated/faces-tests.el: Add another test 2015-10-30 18:20:42 +00:00
Artur Malabarba
76033d22a2 * test/automated/faces-tests.el: New file 2015-10-30 18:15:52 +00:00
Artur Malabarba
3fb3af1d2a * test/automated/character-fold-tests.el: New file 2015-10-30 12:20:07 +00:00
Artur Malabarba
8c443c55d8 * test/automated/sort-tests.el: New file
Tests in this file are randomly generated and then tested with
regular, reverse, and case-fold sorting.
2015-10-30 12:20:07 +00:00
Artur Malabarba
25be5df44a * lisp/isearch.el: Avoid an error that blocks isearch
(isearch-update): Don't error if `isearch--current-buffer' has
been killed.

* test/automated/isearch-tests.el (isearch--test-update): New
file.
2015-10-30 11:08:57 +00:00
Stefan Monnier
a4f754ca0b * test/indent/css-mode.css: Add tests for url(...) syntax. 2015-10-29 10:36:52 -04:00
Juanma Barranquero
1f02cbea8b Fix bug#21766 and add test
* lisp/simple.el (delete-trailing-whitespace): Save match data when
calling `skip-syntax-backward'.
* test/automated/simple-test.el (simple-delete-trailing-whitespace):
New test.
2015-10-28 18:23:53 +01:00
Michael Albinus
f72ac3591b ; Fix comments in file-notify-tests.el 2015-10-27 16:06:33 +01:00
Michael Albinus
838023d469 Fall back to polling in autorevert when needed
* lisp/autorevert.el (auto-revert-notify-handler): When a
`stopped' event arrives from file notification, fall back to polling.

* test/automated/file-notify-tests.el
(file-notify-test03-autorevert): Extend test for polling when file
notification ceases to work.
2015-10-27 16:02:26 +01:00
Michael Albinus
14d725725b Fix subtle bug in auto-revert-tests.el
* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
buffer where it belongs to.  (Bug#21668)
2015-10-27 10:01:13 +01:00
Eli Zaretskii
c9fb8954bc Fix simple-test.el test
* test/automated/simple-test.el (simple-test--dummy-buffer): Make
sure indentation doesn't use TABs, otherwise the 6th test might
fail.
2015-10-26 21:25:10 +02:00
Michael Albinus
0d9c67236c Further work on `stopped' events in filenotify.el
* doc/lispref/os.texi (File Notifications): Rework examples.

* lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter.
(file-notify--rm-descriptor, file-notify-callback): Improve check
for sending `stopped' event.
(file-notify-add-watch): Check for more events for `inotify'.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): New defvar.
(file-notify--test-with-events): Use it.
(file-notify--test-cleanup): Make it more robust when deleting
directories.
(file-notify--test-event-test): Check also for watched directories.
(file-notify--test-event-handler): Suppress temporary .#files.
(file-notify-test02-events, file-notify-test04-file-validity):
Rework `stopped' events.
(file-notify-test05-dir-validity): Wait for events when appropriate.
2015-10-26 16:46:48 +01:00
Artur Malabarba
207f235e33 * test/automated/simple-test.el: New file
Define tests for `newline' and `open-line'.
2015-10-26 00:27:10 +00:00
Michael Albinus
ab116b19ed Introduce `stopped' event in file notification
* lisp/filenotify.el (file-notify--rm-descriptor): New defun.
(file-notify-rm-watch): Use it.
(file-notify-callback): Implement `stopped' event.
(file-notify-add-watch): Mention `stopped' in the docstring.
Check, that upper directory exists.

* test/automated/file-notify-tests.el (file-notify-test01-add-watch):
Add two test cases.
(file-notify-test02-events): Handle also `stopped' event.
(file-notify-test04-file-validity): Add another test case.
2015-10-25 14:18:17 +01:00
Nicolas Petton
0f443a1236 New library thunk.el
thunk.el is extracted from stream.el in ELPA, with additional tests.

* lisp/emacs-lisp/thunk.el: New file.
* test/automated/thunk-tests.el: New file.
* etc/NEWS: Add information about thunk.el
2015-10-23 13:22:21 +02:00
Michael Albinus
71d6acff1c Fix Bug#21669
* lisp/filenotify.el (file-notify-rm-watch): Improve check for
calling low-level functions.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
Decrase to 6 seconds for remote directories.
(file-notify-test02-events): Expect different number of
`attribute-changed' events for the local and remote cases.  Apply
short delays between the operations, in order to receive all
events in the remote case.  Combine `attribute-change' tests.
(Bug#21669)
2015-10-23 13:14:09 +02:00