From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#26126: 26.0.50; file-notify-rm-watch removes arbitrary watches Date: Wed, 22 Mar 2017 19:57:10 +0100 Message-ID: <87lgrx2l89.fsf@detlef> References: <87r31x9ulw.fsf@luca> <87shmcney8.fsf@detlef> <87efxw7xvc.fsf@luca> <87mvcjophx.fsf@detlef> <87tw6rssoi.fsf@luca> <87pohfkmvh.fsf@detlef> <87lgs2sobr.fsf@luca> <87y3w2gywc.fsf@detlef> <8737e8excq.fsf@luca> <87bmsuixuj.fsf@detlef> <87efxqmzyp.fsf@luca> <877f3h4fjd.fsf@detlef> <87shm5ky0q.fsf@luca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490209097 18972 195.159.176.226 (22 Mar 2017 18:58:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2017 18:58:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26126@debbugs.gnu.org To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 22 19:58:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqlSS-0003xR-S4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 19:58:08 +0100 Original-Received: from localhost ([::1]:52894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqlSX-0007tG-6d for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 14:58:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqlSR-0007rj-B9 for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 14:58:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqlSM-0007kO-Fa for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 14:58:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqlSM-0007kD-CZ for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 14:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqlSL-0000Hb-Sy for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2017 14:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2017 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26126-submit@debbugs.gnu.org id=B26126.14902090401031 (code B ref 26126); Wed, 22 Mar 2017 18:58:01 +0000 Original-Received: (at 26126) by debbugs.gnu.org; 22 Mar 2017 18:57:20 +0000 Original-Received: from localhost ([127.0.0.1]:39743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqlRg-0000GZ-H3 for submit@debbugs.gnu.org; Wed, 22 Mar 2017 14:57:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqlRd-0000GH-Ox for 26126@debbugs.gnu.org; Wed, 22 Mar 2017 14:57:19 -0400 Original-Received: from detlef.gmx.de ([93.209.67.208]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LaGJa-1cT0kj15m2-00m0Be; Wed, 22 Mar 2017 19:57:11 +0100 In-Reply-To: <87shm5ky0q.fsf@luca> (Andreas Politz's message of "Wed, 22 Mar 2017 18:43:33 +0100") X-Provags-ID: V03:K0:rMjYu87Wnf1ljic/ta1MrHT9GadC9XCKCur2akFhQ9RJhqY8k9s uz1QlKyd5DcyqDe3TpwQq/lva9wSuFsF0HU0IOcnE7qWDX1ucANn2HbQP1d6Z5bTZPKTH1i TMRUUZZy425YQ+/35Vhhvp66z1vPmfDmjZiW3yrlRyqEbgUiykC5/RqaxCSK+pN+sqvOxPl FEfow6fggo2IPEmmSq6pg== X-UI-Out-Filterresults: notjunk:1;V01:K0:O/SN2e2J0+A=:ehwuplcS7JXmXvXb/ZEjE/ KMTJdPKaBwmrA/sikUGeG0dLv6PfuFdxdWAlH+B+7WRdoh5sf9v/rvFbxhpOhj7ZAl6vt1PsB 806QuMh440fPC/beqQtva9wXov/UxIJPpS60PD2Fc87jAnr1uK1gM+AVUx2fNGtVQECoq/BDO 3WSJXepTGP5K3YWJ7vfcO+Mlsx4tAiMVkuU37LvJrw9yIKNjhbIas27gI+P5QsVh0CT8J4VuN dsIhdqtWMmi8QgImMej2bxiZgCWSWi1Fb2VExFAvRjeE9CO0Lp2lqq7MnHbpEzFUnu+Rp2kz+ Qf5OAJjQ6SfkasxEJZe3hbNCfYJKKglPTLhJ4/4XWiCEaNZptbNW/BHSGLyrFulYmMP6rQvHZ L1sZTGQCzt6jz9rPJsDOghSDekwi94PdmEhq53V+97Ylu/vRkHGhLjMdXt2GxKYNXWxUs2azX rfWH3Q3MAT7STTusaA7Ut7kA3nndqwtm+74rBkoWHtI7Dpdxymc5dIUqmROD9AMY0GuYLUEhO BzrlDECGiBsIPjiY+Npmib94taWHO3k8zCQfs42IcDZXPgOh6BaSrwRoeE6iXQTxH8lTPD7vI nWiTqs7fom8wA901AXhyfWooYyMMMvW5jvrbwNiupBTKnDUaNEad8N6yr2FidvUXVNsm+F+EH CcTm99nXQhVr4SqglDjnf1juj7dsAY276M58ttPOCe0+nFrExSaSc2NQH1zlp5XYYx/wJPNai t/s8tGgZlpINiePrGPB85mmLqlqNWN3r95SrWi638MTLfqbOx2vpyV1XsYt5nY2YjSDH5HCC X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130820 Archived-At: Andreas Politz writes: Hi Andreas, > This touches the question whether we're operating under the assumption, > that other Lisp-code (apart from filenotify.el) may freely call > inotify-add-watch or not. Because if it does, this has to be handled in > inotify.c. Otherwise we may handle it in filenotify.el . It is still possible to call inotify-add-watch and companions. However, we don't force this use; the Elisp manual decribes only filenoty.el functionality. And I don't know any example people are using initofy-add-watch directly. > If I do it in inotify.c: Is it possible to store a bit-mask (of type > uint32_t) in a Lisp_Object ? Since this would be the easiest make this > change. Sure, but Emacs integers guarantee you only 30 bits. But why do you want to do this? You could map your bit mask into a complex Lisp object, a vector with 32 slots, or whatever. This makes access/manipulation in Lisp much more simple. > -ap Best regards, Michael.