1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-31 20:02:42 +00:00
emacs/test/data
Philipp Stephani 72ec233f2a Ignore pending_signals when checking for quits.
pending_signals is often set if no quit is pending.  This results in
bugs in module code if the module returns but no quit is actually
pending.

As a better alternative, add a new process_input environment function
for Emacs 27.  That function processes signals (like maybe_quit).

* configure.ac: Add module snippet for Emacs 27.

* src/module-env-27.h: New file.

* src/emacs-module.h.in: Add process_input function to environment
interface.

* src/emacs-module.c (module_should_quit): Use QUITP macro to check
whether the caller should quit.
(module_process_input): New function.
(initialize_environment): Use it.

* src/eval.c: Remove obsolete comment.

* test/data/emacs-module/mod-test.c (signal_wrong_type_argument)
(signal_errno): New helper functions.
(Fmod_test_sleep_until): New test module function.

* test/src/emacs-module-tests.el (mod-test-sleep-until): New unit
test.

* doc/lispref/internals.texi (Module Misc): Document process_input.
2019-02-24 22:43:07 +01:00
..
decompress * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) 2019-02-03 23:00:29 +02:00
emacs-module Ignore pending_signals when checking for quits. 2019-02-24 22:43:07 +01:00
epg Fix epg-tests with dummy-pinentry program (Bug#23619) 2017-02-28 19:57:35 -05:00
image Add image sizing tests for an image that's narrow 2017-04-24 07:56:31 +02:00
mailcap Add tests for mailcap.el 2017-09-05 11:55:01 -04:00
net Move the cert files to the data directory 2016-03-20 16:08:55 +01:00
shr Handle HTML 'ol' start attribute in shr.el 2019-02-22 09:52:57 +02:00
vc/diff-mode * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock): New test. 2019-02-02 23:23:16 +02:00
xdg Add MIME apps spec utilities 2017-09-26 17:48:00 -04:00
xref Port xref-tests to master branch 2016-05-06 10:09:53 -07:00
files-bug18141.el.gz
somelib2.el Put re-loaded file back at start of load-history (bug#26837) 2017-05-09 19:44:09 -04:00
somelib.el Put re-loaded file back at start of load-history (bug#26837) 2017-05-09 19:44:09 -04:00