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: Sat, 25 Mar 2017 17:37:45 +0100 Message-ID: <87inmx8g86.fsf@detlef> References: <87r31x9ulw.fsf@luca> <87efxw7xvc.fsf@luca> <87mvcjophx.fsf@detlef> <87tw6rssoi.fsf@luca> <87pohfkmvh.fsf@detlef> <87lgs2sobr.fsf@luca> <87y3w2gywc.fsf@detlef> <878to21fty.fsf@luca> <87wpbl1u80.fsf@detlef> <87d1ddecx2.fsf@luca> <87efxtnk8m.fsf@detlef> <87tw6nd6nf.fsf@luca> <871strm323.fsf@detlef> <838tnywshh.fsf@gnu.org> <8737e54f8c.fsf@detlef> <838tnx71u0.fsf@gnu.org> <87lgrulabr.fsf@luca> <87fui1jz9u.fsf@detlef> <87wpbdfoeu.fsf@luca> <8760ixjvnr.fsf@detlef> <87k27dfhjo.fsf@luca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490459896 23285 195.159.176.226 (25 Mar 2017 16:38:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Mar 2017 16:38:16 +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 Sat Mar 25 17:38:12 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 1crohe-0005SF-Cq for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Mar 2017 17:38:10 +0100 Original-Received: from localhost ([::1]:37964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crohk-0002l0-GF for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Mar 2017 12:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crohX-0002kA-Rb for bug-gnu-emacs@gnu.org; Sat, 25 Mar 2017 12:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crohW-0000Z4-R9 for bug-gnu-emacs@gnu.org; Sat, 25 Mar 2017 12:38:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crohW-0000Yo-OA for bug-gnu-emacs@gnu.org; Sat, 25 Mar 2017 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1crohW-0007MZ-IR for bug-gnu-emacs@gnu.org; Sat, 25 Mar 2017 12:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Mar 2017 16:38:02 +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.149045987828292 (code B ref 26126); Sat, 25 Mar 2017 16:38:02 +0000 Original-Received: (at 26126) by debbugs.gnu.org; 25 Mar 2017 16:37:58 +0000 Original-Received: from localhost ([127.0.0.1]:44518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crohS-0007MG-J2 for submit@debbugs.gnu.org; Sat, 25 Mar 2017 12:37:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crohQ-0007Lz-95 for 26126@debbugs.gnu.org; Sat, 25 Mar 2017 12:37:56 -0400 Original-Received: from detlef.gmx.de ([87.146.63.110]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M8NBi-1bvzB30iPK-00w06D; Sat, 25 Mar 2017 17:37:47 +0100 In-Reply-To: <87k27dfhjo.fsf@luca> (Andreas Politz's message of "Sat, 25 Mar 2017 17:27:23 +0100") X-Provags-ID: V03:K0:v+Cif0QFEC4lssYWM50maeU54dx7JVl3oVem/1LTTY3+NwvJxF7 cMI2CgMbvSXbQRp6Z8b60wJVchCxCqD+h+gb3NtFRmdV/7vCtO7dweOZHIL+3nBoyE/cWe2 obwbtB/JVsbr+NF6TrGwwVtBdMvpSD1oeftTTJSCmCY4bzQphiEjmrDy1tx1DEiwcK5wxsx /M8Vfk1yeoptS3pTg5YeA== X-UI-Out-Filterresults: notjunk:1;V01:K0:aTmEbcIDzzM=:RuZKVGw6z8P/zeUJwYll70 41dNor0G/AaRMNuSNWFaMu90kR5WOWLvF8j20+rPezOCx+MnZOb7IRX5DNYqpIiCt+RTYdK+i H2O8yHSuEUuweO451vLwvXQTkg+jgeniOoEvQP413JzVToteZSuCfYSzSH4Tx7RYPRgs9LQEN zz2hSdi9EgscxuV8/YTMHNUXr0wNQgm9oSmS6W2+iAAeExvg8U/ztKWfAnQgg/TtRfZ8a4tk8 H6MJhH5j+JMaUBqqPqJJDq7zyYZZtiT32FBG/7E/cWKbYwuJPhIN2kv05VzDVXujWgvDo3gAu GYQ7MNhUk57QMnr3q9Pazok03bEzAqHIdLa5Ev2JeG4otMC0nGUh3WkoelQ8/vGuap9Xccsvl xYTp1nWAgMCkthobFdy4LCPtRKA0kAiI9dvaVVxkwu+IY9oWRgJvXTqE9j/LMxSFK4UI5Dsm6 7iKxH6Hi2DlGiwQJezY7vH2+tYfaxvOO5nfwPGh8CVC4Mzq8pcm7QOV4YzChDMD5sdIdu3nca efbzZ+9RjLGG5OvHlW1CU7tTSLh8EZmC5XIuu3v9ypojLUdvth/OGBIQwOAUenGK+/wt+UdnX +tLCcfuwpJsDbiHHtfPGk0wmo+o8+I4K7JPZYFSsnk+FXbi3/k0k08HG+5QndFe8ue3yJPzh1 FiiSVUzaCYkGKPG0FpF33vISoLh8In5sby2wIvvLtWxpCowi4AtA0ecyDIlD7uX2LRWyvttN5 ItfDB/xqtYGTM4oNTpUoIjViWfMfNICye07gmz3JHVrkFQEHpivEee1RMz/h6XQWEnpdCPHz 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:130939 Archived-At: Andreas Politz writes: >> Which works also over file names, like "http://host/path/to/file". > > If you think that's a file, how about this: I don't think it's a file; beause I don't know anything about it. I think it's a file name, which makes a difference. > (url-handler-mode) > (find-file "http://www.google.com/?s=foo") > (file-notify-add-watch "http://www.google.com/?s=foo" '(change) #'ignore) > => File notification error: "Directory does not exist", "http://www.google.com" What's wrong with this? `url-handler-mode' hasn't implemented `file-notify-add-watch'. In such cases, the original implementation is applied. And `file-notify-add-watch' is right in saying that this "directory" doesn't exist, from its pov. > or this > > (hypothetical-emacsfs-mode) > (find-file "/efs/recentf/some-recent-file") > (find-file "/efs/bookmarks/some-bookmark") No problem. Write a file name handler which takes responsibility for all files whose names start with "/efs", and here we are. It would still be a handler which is called based on the file *name*. > -ap Best regards, Michael.