1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00
emacs/test/lisp
Andreas Politz 158bb8555d Fix issues regarding inotify file-notification
Remove special code handling the inotify back-end.
* lisp/filenotify.el (file-notify--watch): New struct
representing a file-watch.
(file-notify-descriptors): Use the new struct as hash-value.
(file-notify-handle-event): Check that event is a cons.
(file-notify--rm-descriptor, file-notify--event-watched-file)
(file-notify--event-file-name, file-notify--event-file1-name)
(file-notify-callback, file-notify-add-watch)
(file-notify-rm-watch, file-notify-valid-p): Use new struct.
Remove special code handling inotify descriptors.  Remove code
handling multiple clients per descriptor.
(file-notify--descriptor): Remove unused function.

Let inotify-add-watch return a unique descriptor on every
call, like every other back-end does (Bug#26126).  Prevent
multiple clients from interfering with each other, when
watching a shared descriptor.
* src/inotify.c (watch_list): Extend the format by including a
id and the provided mask.
(INOTIFY_DEFAULT_MASK): Default mask used for all clients.
(make_watch_descriptor): Removed.
(make_lispy_mask, lispy_mask_match_p): New functions.
(inotifyevent_to_event): Match event against the mask provided
by the client.
(add_watch, remove_descriptor, remove_watch): New functions
for managing the watch_list.
(inotify_callback): Use the new functions.
(Finotify_add_watch, Finotify_rm_watch): Remove deprecated
flags from documentation.  Add check for validity of provided
descriptor.  Use the new functions.  Use the default mask.
(INOTIFY_DEBUG): Add new debug conditional.
(inotify-watch-list, inotify-allocated-p): New debug functions.
(symbol_to_inotifymask, syms_of_inotify): Remove deprecated symbols.

* test/lisp/filenotify-tests.el:
(file-notify-test02-rm-watch): Remove expected failure for inotify.
2017-03-26 09:21:56 +02:00
..
calc Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
calendar Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
emacs-lisp * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187 2017-03-21 20:45:32 -04:00
emulation Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
erc Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
eshell Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
gnus Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
international Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
mail Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
net Use lexical-bind in Tramp 2017-03-23 14:58:04 +01:00
progmodes Protect against an infloop in python-mode 2017-03-23 23:05:19 +01:00
textmodes Fix bug in css--mdn-find-symbol 2017-02-11 08:43:47 -07:00
url Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
vc epatch: Save right backups in Git multipatches 2017-03-21 17:25:55 +09:00
abbrev-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
auth-source-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
autorevert-tests.el Fix autorevert-tests on MS-Windows 2017-02-04 13:49:55 +02:00
buff-menu-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
char-fold-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
comint-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dabbrev-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
descr-text-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dired-tests.el Choose the right target dir on dired operations 2017-02-27 16:26:06 +09:00
dom-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
electric-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
epg-tests.el Fix epg-tests with dummy-pinentry program (Bug#23619) 2017-02-28 19:57:35 -05:00
faces-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
ffap-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
filenotify-tests.el Fix issues regarding inotify file-notification 2017-03-26 09:21:56 +02:00
files-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
files-x-tests.el Rework connection local variables 2017-02-19 17:14:35 +01:00
help-fns-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
htmlfontify-tests.el Don't require a shell when loading htmlfontify 2017-01-27 18:37:58 +01:00
ibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
imenu-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
info-xref-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
isearch-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
jit-lock-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
json-tests.el Fix encoding of JSON surrogate pairs 2017-01-01 13:24:14 +01:00
kmacro-tests.el Add tests for lisp/kmacro.el 2017-02-04 13:55:47 +02:00
man-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
md4-tests.el Turn on lexical-binding in md4.el 2017-01-03 18:34:13 -05:00
minibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
mouse-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
obarray-tests.el Add obarray-size and fix tests accordingly. Use obarrayp in cedet. 2017-03-16 12:31:07 -04:00
ps-print-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
replace-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
rot13-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
shell-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
simple-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
sort-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
subr-tests.el Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
thingatpt-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
whitespace-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
xml-tests.el xml: Fix parsing of default namespace with quoted names 2017-01-24 22:56:05 +01:00
xt-mouse-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00