From unknown Wed Jun 18 23:17:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26127 <26127@debbugs.gnu.org> To: bug#26127 <26127@debbugs.gnu.org> Subject: Status: 26.0.50; Using file-notify-rm-watch on invalid descriptor raises invalid-function Reply-To: bug#26127 <26127@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:17:19 +0000 retitle 26127 26.0.50; Using file-notify-rm-watch on invalid descriptor rai= ses invalid-function reassign 26127 emacs submitter 26127 Andreas Politz severity 26127 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 16 10:24:25 2017 Received: (at submit) by debbugs.gnu.org; 16 Mar 2017 14:24:25 +0000 Received: from localhost ([127.0.0.1]:59007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coWKG-00071c-Q5 for submit@debbugs.gnu.org; Thu, 16 Mar 2017 10:24:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coWKE-00071N-D9 for submit@debbugs.gnu.org; Thu, 16 Mar 2017 10:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coWK6-0001Yg-Kk for submit@debbugs.gnu.org; Thu, 16 Mar 2017 10:24:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coWK6-0001Yc-HW for submit@debbugs.gnu.org; Thu, 16 Mar 2017 10:24:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coWK3-0005Sp-FN for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2017 10:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coWK0-0001Wo-5q for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2017 10:24:11 -0400 Received: from gateway-a.fh-trier.de ([143.93.54.181]:39682) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coWJz-0001WI-F0 for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2017 10:24:08 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Received: from localhost (ip5f5bdecf.dynamic.kabel-deutschland.de [95.91.222.207]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 9D106179B3A3 for ; Thu, 16 Mar 2017 15:23:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1489674197; bh=D1pTgkTGh0AbZ4o3mw3qRTijv98=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=daGdsQhp3CXQk+WhmuULwoqBxJy8k1DMRHrT85Kxglf7DFI+uYgMziEXk6iPYtTQm dkhjhwNWvNx8gQoK6RL/8kGQr2STRyz6vtSldcfDDYgw+ErFEW/xIex/R9N+o0fiA/ pxAus9EtEjTJEMnviLfNh6EALhManN4qQMX5Y2qI= From: Andreas Politz To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Using file-notify-rm-watch on invalid descriptor raises invalid-function Date: Thu, 16 Mar 2017 15:23:16 +0100 Message-ID: <87mvcl9u7f.fsf@luca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain Calling file-notify-rm-watch on an invalid descriptor may throw a invalid-function error, but it should throw a file-notify-error instead. For example, this may occur when calling the function multiple times on the same descriptor. The error stems from file-notify--rm-descriptor, which contains the expression (funcall (cdr (assoc file (cdr registered))) `(,descriptor stopped ,(if file (expand-file-name file dir) dir))) , but (assoc file (cdr registered)) is nil. I think this error is confusing. Attached you'll find a test case for this. -ap --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=file-notify-bug-2.el Content-Transfer-Encoding: quoted-printable Content-Description: test-case ;; -*- lexical-binding: t -*- (require 'filenotify) (require 'ert) (defmacro test-with-tempfiles (files &rest body) (declare (debug (sexp &rest form)) (indent 1)) (let ((tempdir (make-symbol "tempdir"))) `(let* ((,tempdir (make-temp-file "test" t)) ,@(mapcar (lambda (f) `(,f (let ((temporary-file-directory ,tempdir) (file-name-handler-alist nil)) (make-temp-file "test")))) files)) (unwind-protect (progn ,@body) (when (file-exists-p ,tempdir) (delete-directory ,tempdir t)))))) (ert-deftest file-notify-rm-multiple-times () "Remove a descriptor twice." (test-with-tempfiles (tempfile1 tempfile2) (let* ((desc1 (file-notify-add-watch tempfile1 '(change attribute-change) #'ignore)) (desc2 (file-notify-add-watch tempfile2 '(change attribute-change) #'ignore))) (file-notify-rm-watch desc1) (should-error (file-notify-rm-watch desc1) :type 'file-notify-error)))) --=-=-= Content-Type: text/plain In GNU Emacs 26.0.50 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.22.9) of 2017-03-15 built on luca Repository revision: 2f972349bdc99d5d9ebf63169c00e24b119aa38d Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Arch Linux Recent messages: Spell-checking region using aspell with default dictionary... Exited spell-checking Sending... Mark set [2 times] Sending via mail... Mark set nnimap read 0k from localhost Sending...done Quit No expansion found Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-xwidgets 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro CPPFLAGS=-D_FORTIFY_SOURCE=2' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS LIBSYSTEMD Important settings: value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: TeX-PDF-mode: t diff-auto-refine-mode: t yas-minor-mode: t sow-scroll-other-window-mode: t synclient-fix-tapping-mode: t show-paren-mode: t check-parens-mode: t pdf-occur-global-minor-mode: t override-global-mode: t recentf-mode: t shell-dirtrack-mode: t save-place-mode: t ewm-desktop-mode: t ewm-mode: t ewm-bindings-mode: t ewm-compat-mode: t savehist-mode: t ekey-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/politza/src/ewm/ewm-ruleset hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-ruleset /home/politza/src/ewm/dev hides /home/politza/.emacs.d/elpa/ewm-1.0/dev /home/politza/src/ewm/ewm-layout hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-layout /home/politza/src/ewm/ewm-frame hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-frame /home/politza/src/ewm/ewm hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm /home/politza/src/ewm/ewm-buffer hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-buffer /home/politza/src/ewm/ewm-configuration hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-configuration /home/politza/src/ewm/ewm-util hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-util /home/politza/src/ewm/ewm-compat hides /home/politza/.emacs.d/elpa/ewm-1.0/ewm-compat ~/fh_notebook/politza/.emacs.d/plugins/s hides /home/politza/.emacs.d/elpa/s-20160928.636/s ~/fh_notebook/politza/.emacs.d/plugins/term hides /usr/share/emacs/26.0.50/lisp/term ~/fh_notebook/politza/.emacs.d/plugins/imenu hides /usr/share/emacs/26.0.50/lisp/imenu ~/fh_notebook/politza/.emacs.d/plugins/saveplace hides /usr/share/emacs/26.0.50/lisp/saveplace /home/politza/.emacs.d/elpa/org-20170210/ox-md hides /usr/share/emacs/26.0.50/lisp/org/ox-md /home/politza/.emacs.d/elpa/org-20170210/org-rmail hides /usr/share/emacs/26.0.50/lisp/org/org-rmail /home/politza/.emacs.d/elpa/org-20170210/org-capture hides /usr/share/emacs/26.0.50/lisp/org/org-capture /home/politza/.emacs.d/elpa/org-20170210/ob-fortran hides /usr/share/emacs/26.0.50/lisp/org/ob-fortran /home/politza/.emacs.d/elpa/org-20170210/org-list hides /usr/share/emacs/26.0.50/lisp/org/org-list /home/politza/.emacs.d/elpa/org-20170210/org-table hides /usr/share/emacs/26.0.50/lisp/org/org-table /home/politza/.emacs.d/elpa/org-20170210/ob-screen hides /usr/share/emacs/26.0.50/lisp/org/ob-screen /home/politza/.emacs.d/elpa/org-20170210/org-pcomplete hides /usr/share/emacs/26.0.50/lisp/org/org-pcomplete /home/politza/.emacs.d/elpa/org-20170210/ob-ditaa hides /usr/share/emacs/26.0.50/lisp/org/ob-ditaa /home/politza/.emacs.d/elpa/org-20170210/ox-texinfo hides /usr/share/emacs/26.0.50/lisp/org/ox-texinfo /home/politza/.emacs.d/elpa/org-20170210/ob-plantuml hides /usr/share/emacs/26.0.50/lisp/org/ob-plantuml /home/politza/.emacs.d/elpa/org-20170210/org-w3m hides /usr/share/emacs/26.0.50/lisp/org/org-w3m /home/politza/.emacs.d/elpa/org-20170210/ob-ref hides /usr/share/emacs/26.0.50/lisp/org/ob-ref /home/politza/.emacs.d/elpa/org-20170210/ob-lilypond hides /usr/share/emacs/26.0.50/lisp/org/ob-lilypond /home/politza/.emacs.d/elpa/org-20170210/ox-odt hides /usr/share/emacs/26.0.50/lisp/org/ox-odt /home/politza/.emacs.d/elpa/org-20170210/ob-latex hides /usr/share/emacs/26.0.50/lisp/org/ob-latex /home/politza/.emacs.d/elpa/org-20170210/ox-ascii hides /usr/share/emacs/26.0.50/lisp/org/ox-ascii /home/politza/.emacs.d/elpa/org-20170210/ob-sqlite hides /usr/share/emacs/26.0.50/lisp/org/ob-sqlite /home/politza/.emacs.d/elpa/org-20170210/ob-lisp hides /usr/share/emacs/26.0.50/lisp/org/ob-lisp /home/politza/.emacs.d/elpa/org-20170210/org-archive hides /usr/share/emacs/26.0.50/lisp/org/org-archive /home/politza/.emacs.d/elpa/org-20170210/ox-latex hides /usr/share/emacs/26.0.50/lisp/org/ox-latex /home/politza/.emacs.d/elpa/org-20170210/org-macro hides /usr/share/emacs/26.0.50/lisp/org/org-macro /home/politza/.emacs.d/elpa/org-20170210/org-macs hides /usr/share/emacs/26.0.50/lisp/org/org-macs /home/politza/.emacs.d/elpa/org-20170210/ob-makefile hides /usr/share/emacs/26.0.50/lisp/org/ob-makefile /home/politza/.emacs.d/elpa/org-20170210/ob-core hides /usr/share/emacs/26.0.50/lisp/org/ob-core /home/politza/.emacs.d/elpa/org-20170210/ox hides /usr/share/emacs/26.0.50/lisp/org/ox /home/politza/.emacs.d/elpa/org-20170210/ob-awk hides /usr/share/emacs/26.0.50/lisp/org/ob-awk /home/politza/.emacs.d/elpa/org-20170210/ob-js hides /usr/share/emacs/26.0.50/lisp/org/ob-js /home/politza/.emacs.d/elpa/org-20170210/ob-table hides /usr/share/emacs/26.0.50/lisp/org/ob-table /home/politza/.emacs.d/elpa/org-20170210/ox-man hides /usr/share/emacs/26.0.50/lisp/org/ox-man /home/politza/.emacs.d/elpa/org-20170210/ob-dot hides /usr/share/emacs/26.0.50/lisp/org/ob-dot /home/politza/.emacs.d/elpa/org-20170210/org-attach hides /usr/share/emacs/26.0.50/lisp/org/org-attach /home/politza/.emacs.d/elpa/org-20170210/ox-publish hides /usr/share/emacs/26.0.50/lisp/org/ox-publish /home/politza/.emacs.d/elpa/org-20170210/org-clock hides /usr/share/emacs/26.0.50/lisp/org/org-clock /home/politza/.emacs.d/elpa/org-20170210/ob-matlab hides /usr/share/emacs/26.0.50/lisp/org/ob-matlab /home/politza/.emacs.d/elpa/org-20170210/org-habit hides /usr/share/emacs/26.0.50/lisp/org/org-habit /home/politza/.emacs.d/elpa/org-20170210/ob-picolisp hides /usr/share/emacs/26.0.50/lisp/org/ob-picolisp /home/politza/.emacs.d/elpa/org-20170210/org-faces hides /usr/share/emacs/26.0.50/lisp/org/org-faces /home/politza/.emacs.d/elpa/org-20170210/ob-css hides /usr/share/emacs/26.0.50/lisp/org/ob-css /home/politza/.emacs.d/elpa/org-20170210/org-irc hides /usr/share/emacs/26.0.50/lisp/org/org-irc /home/politza/.emacs.d/elpa/org-20170210/ob-C hides /usr/share/emacs/26.0.50/lisp/org/ob-C /home/politza/.emacs.d/elpa/org-20170210/ob-eval hides /usr/share/emacs/26.0.50/lisp/org/ob-eval /home/politza/.emacs.d/elpa/org-20170210/org-bbdb hides /usr/share/emacs/26.0.50/lisp/org/org-bbdb /home/politza/.emacs.d/elpa/org-20170210/org-ctags hides /usr/share/emacs/26.0.50/lisp/org/org-ctags /home/politza/.emacs.d/elpa/org-20170210/ob-sass hides /usr/share/emacs/26.0.50/lisp/org/ob-sass /home/politza/.emacs.d/elpa/org-20170210/ob-perl hides /usr/share/emacs/26.0.50/lisp/org/ob-perl /home/politza/.emacs.d/elpa/org-20170210/ox-org hides /usr/share/emacs/26.0.50/lisp/org/ox-org /home/politza/.emacs.d/elpa/org-20170210/org-docview hides /usr/share/emacs/26.0.50/lisp/org/org-docview /home/politza/.emacs.d/elpa/org-20170210/ob-maxima hides /usr/share/emacs/26.0.50/lisp/org/ob-maxima /home/politza/.emacs.d/elpa/org-20170210/org-datetree hides /usr/share/emacs/26.0.50/lisp/org/org-datetree /home/politza/.emacs.d/elpa/org-20170210/org-mobile hides /usr/share/emacs/26.0.50/lisp/org/org-mobile /home/politza/.emacs.d/elpa/org-20170210/ox-icalendar hides /usr/share/emacs/26.0.50/lisp/org/ox-icalendar /home/politza/.emacs.d/elpa/org-20170210/ob-octave hides /usr/share/emacs/26.0.50/lisp/org/ob-octave /home/politza/.emacs.d/elpa/org-20170210/org-footnote hides /usr/share/emacs/26.0.50/lisp/org/org-footnote /home/politza/.emacs.d/elpa/org-20170210/ob-scala hides /usr/share/emacs/26.0.50/lisp/org/ob-scala /home/politza/.emacs.d/elpa/org-20170210/ob hides /usr/share/emacs/26.0.50/lisp/org/ob /home/politza/.emacs.d/elpa/org-20170210/ob-ocaml hides /usr/share/emacs/26.0.50/lisp/org/ob-ocaml /home/politza/.emacs.d/elpa/org-20170210/org-eshell hides /usr/share/emacs/26.0.50/lisp/org/org-eshell /home/politza/.emacs.d/elpa/org-20170210/org-bibtex hides /usr/share/emacs/26.0.50/lisp/org/org-bibtex /home/politza/.emacs.d/elpa/org-20170210/ob-mscgen hides /usr/share/emacs/26.0.50/lisp/org/ob-mscgen /home/politza/.emacs.d/elpa/org-20170210/ob-haskell hides /usr/share/emacs/26.0.50/lisp/org/ob-haskell /home/politza/.emacs.d/elpa/org-20170210/org-timer hides /usr/share/emacs/26.0.50/lisp/org/org-timer /home/politza/.emacs.d/elpa/org-20170210/org-entities hides /usr/share/emacs/26.0.50/lisp/org/org-entities /home/politza/.emacs.d/elpa/org-20170210/ob-clojure hides /usr/share/emacs/26.0.50/lisp/org/ob-clojure /home/politza/.emacs.d/elpa/org-20170210/org-plot hides /usr/share/emacs/26.0.50/lisp/org/org-plot /home/politza/.emacs.d/elpa/org-20170210/ob-io hides /usr/share/emacs/26.0.50/lisp/org/ob-io /home/politza/.emacs.d/elpa/org-20170210/ob-java hides /usr/share/emacs/26.0.50/lisp/org/ob-java /home/politza/.emacs.d/elpa/org-20170210/ob-calc hides /usr/share/emacs/26.0.50/lisp/org/ob-calc /home/politza/.emacs.d/elpa/org-20170210/ob-emacs-lisp hides /usr/share/emacs/26.0.50/lisp/org/ob-emacs-lisp /home/politza/.emacs.d/elpa/org-20170210/org-indent hides /usr/share/emacs/26.0.50/lisp/org/org-indent /home/politza/.emacs.d/elpa/org-20170210/org-src hides /usr/share/emacs/26.0.50/lisp/org/org-src /home/politza/.emacs.d/elpa/org-20170210/org hides /usr/share/emacs/26.0.50/lisp/org/org /home/politza/.emacs.d/elpa/org-20170210/ob-lob hides /usr/share/emacs/26.0.50/lisp/org/ob-lob /home/politza/.emacs.d/elpa/org-20170210/ob-shen hides /usr/share/emacs/26.0.50/lisp/org/ob-shen /home/politza/.emacs.d/elpa/org-20170210/org-inlinetask hides /usr/share/emacs/26.0.50/lisp/org/org-inlinetask /home/politza/.emacs.d/elpa/org-20170210/ox-beamer hides /usr/share/emacs/26.0.50/lisp/org/ox-beamer /home/politza/.emacs.d/elpa/org-20170210/ob-asymptote hides /usr/share/emacs/26.0.50/lisp/org/ob-asymptote /home/politza/.emacs.d/elpa/org-20170210/org-colview hides /usr/share/emacs/26.0.50/lisp/org/org-colview /home/politza/.emacs.d/elpa/org-20170210/ob-sql hides /usr/share/emacs/26.0.50/lisp/org/ob-sql /home/politza/.emacs.d/elpa/org-20170210/org-mhe hides /usr/share/emacs/26.0.50/lisp/org/org-mhe /home/politza/.emacs.d/elpa/org-20170210/org-agenda hides /usr/share/emacs/26.0.50/lisp/org/org-agenda /home/politza/.emacs.d/elpa/org-20170210/ob-python hides /usr/share/emacs/26.0.50/lisp/org/ob-python /home/politza/.emacs.d/elpa/org-20170210/org-crypt hides /usr/share/emacs/26.0.50/lisp/org/org-crypt /home/politza/.emacs.d/elpa/org-20170210/ob-gnuplot hides /usr/share/emacs/26.0.50/lisp/org/ob-gnuplot /home/politza/.emacs.d/elpa/org-20170210/ob-org hides /usr/share/emacs/26.0.50/lisp/org/ob-org /home/politza/.emacs.d/elpa/org-20170210/org-id hides /usr/share/emacs/26.0.50/lisp/org/org-id /home/politza/.emacs.d/elpa/org-20170210/ob-ledger hides /usr/share/emacs/26.0.50/lisp/org/ob-ledger /home/politza/.emacs.d/elpa/org-20170210/org-protocol hides /usr/share/emacs/26.0.50/lisp/org/org-protocol /home/politza/.emacs.d/elpa/org-20170210/ox-html hides /usr/share/emacs/26.0.50/lisp/org/ox-html /home/politza/.emacs.d/elpa/org-20170210/ob-comint hides /usr/share/emacs/26.0.50/lisp/org/ob-comint /home/politza/.emacs.d/elpa/org-20170210/org-compat hides /usr/share/emacs/26.0.50/lisp/org/org-compat /home/politza/.emacs.d/elpa/org-20170210/ob-R hides /usr/share/emacs/26.0.50/lisp/org/ob-R /home/politza/.emacs.d/elpa/org-20170210/org-feed hides /usr/share/emacs/26.0.50/lisp/org/org-feed /home/politza/.emacs.d/elpa/org-20170210/org-mouse hides /usr/share/emacs/26.0.50/lisp/org/org-mouse /home/politza/.emacs.d/elpa/org-20170210/org-info hides /usr/share/emacs/26.0.50/lisp/org/org-info /home/politza/.emacs.d/elpa/org-20170210/ob-keys hides /usr/share/emacs/26.0.50/lisp/org/ob-keys /home/politza/.emacs.d/elpa/org-20170210/ob-ruby hides /usr/share/emacs/26.0.50/lisp/org/ob-ruby /home/politza/.emacs.d/elpa/org-20170210/org-install hides /usr/share/emacs/26.0.50/lisp/org/org-install /home/politza/.emacs.d/elpa/org-20170210/org-version hides /usr/share/emacs/26.0.50/lisp/org/org-version /home/politza/.emacs.d/elpa/org-20170210/ob-exp hides /usr/share/emacs/26.0.50/lisp/org/ob-exp /home/politza/.emacs.d/elpa/org-20170210/ob-scheme hides /usr/share/emacs/26.0.50/lisp/org/ob-scheme /home/politza/.emacs.d/elpa/org-20170210/org-loaddefs hides /usr/share/emacs/26.0.50/lisp/org/org-loaddefs /home/politza/.emacs.d/elpa/org-20170210/org-gnus hides /usr/share/emacs/26.0.50/lisp/org/org-gnus /home/politza/.emacs.d/elpa/org-20170210/ob-tangle hides /usr/share/emacs/26.0.50/lisp/org/ob-tangle /home/politza/.emacs.d/elpa/org-20170210/org-element hides /usr/share/emacs/26.0.50/lisp/org/org-element Features: (qp ispell shadow sort gnus-cite mail-extr nnir nndraft nnmh utf-7 nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud gnus-spec emacsbug sendmail gxref apropos timezone eieio-opt speedbar sb-image ezimage dframe reposition cl-print edebug help-fns radix-tree xref project ert debug hippie-exp misearch multi-isearch browse-kill-ring bash colir color ivy delsel ivy-overlay ffap mm-archive conf-mode image-file org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view org-bibtex bibtex org-bbdb org-w3m undo-tree diff vc-dir ewoc vc autorevert filenotify sh-script smie executable autoconf autoconf-mode vc-dispatcher vc-svn preview prv-emacs tex-buf font-latex latex tex-ispell tex-style tex dbus xml crm tex-mode dired-aux vc-git diff-mode map view haskell-snippets yasnippet network-stream starttls url-http url-gw nsm url-auth sow which-key url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap paren rtags popup repeat thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pdf-dev pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch let-alist pdf-misc pdf-tools compile cus-edit cus-start cus-load pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util ob-shell ob-plantuml org-www-bookmark org-protocol org-element avl-tree org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs disp-table image-mode lib-kbd gnus-nnimap-format nnimap nnmail gnus-int gnus-range mail-source message puny rfc822 mml mml-sec epa epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader tls gnutls utf7 netrc nnoo parse-time-rfc2822 info-look gnus-win iedit iedit-lib multiple-cursors-core rect bind-key graphviz-dot-mode recentf tree-widget tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ring parse-time format-spec advice derived saveplace ewm edmacro kmacro ewm-configuration ewm-frame ewm-buffer ibuf-macs ibuf-ext ibuffer ibuffer-loaddefs ewm-ruleset ewm-layout find-func ewm-compat gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit cal-menu calendar cal-loaddefs calc calc-loaddefs calc-macs ewm-util savehist server tsdh-dark-theme ekey dash dired-imenu imenu dired-x dired dired-loaddefs desktop frameset easy-mmode ansi-color finder-inf tex-site cl info package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt subr-x gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1140844 1230822) (symbols 48 72307 2) (miscs 40 1273 8727) (strings 32 199591 370964) (string-bytes 1 7784266) (vectors 16 94511) (vector-slots 8 2252361 388185) (floats 8 591 1309) (intervals 56 63703 5137) (buffers 968 345)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 17 05:32:15 2017 Received: (at 26127) by debbugs.gnu.org; 17 Mar 2017 09:32:15 +0000 Received: from localhost ([127.0.0.1]:59623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cooF5-0007TJ-HW for submit@debbugs.gnu.org; Fri, 17 Mar 2017 05:32:15 -0400 Received: from mout.gmx.net ([212.227.15.19]:59480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cooF2-0007T1-1c for 26127@debbugs.gnu.org; Fri, 17 Mar 2017 05:32:12 -0400 Received: from detlef.gmx.de ([93.209.75.8]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MSdNs-1ch8lB0Kjk-00RayV; Fri, 17 Mar 2017 10:32:01 +0100 From: Michael Albinus To: Andreas Politz Subject: Re: bug#26127: 26.0.50; Using file-notify-rm-watch on invalid descriptor raises invalid-function References: <87mvcl9u7f.fsf@luca> Date: Fri, 17 Mar 2017 10:31:59 +0100 In-Reply-To: <87mvcl9u7f.fsf@luca> (Andreas Politz's message of "Thu, 16 Mar 2017 15:23:16 +0100") Message-ID: <87inn89rlc.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:7cXbXdZbszeStkWXeQFYO1oQZV8J+4on111iyTC0sKO+fu18zgC Nj1TALW67UOxCLWApH7b2QDxESbSUEB5IMuimQ8iglZ5tKPMP74lJkqC0RhfjNMNAiPLPbi rL0ygV5ogsSqyE0Nbvsv4w7b5HUqpNPp9cMuBFAnQMoFpLQYZD8FkoV7WTnvzdOtaJK5g8a U+KffOCfmUGZncsYneUMg== X-UI-Out-Filterresults: notjunk:1;V01:K0:z+WYnE6i1Ug=:yZgGsa4l+WNUcodi9kuD8H IwMhQF6SnqRjuocqTuRQkyVBP0Hdee2jvXZ8RCg7UeufAnftx+2mstg1sj++EqPWdmf86LAuh 1xcR8UO/0evUvyVreH8tzDKkqzafremTvJX/qFZgyPlHIp1U9Xfu3hF2MjmTej/IfRY/FVqSx cAmGsQxzNy312REGr7eGvYOAfN0Z5sK/koxi5+TroYf1+UfGatNZPC8uc7kUekBdJlybZilam 2jraJlPnCm1SR4bAthI+iFhB5VVVW+TYFJ6O318zI2NeOE6XYz7ZY9qUYkIt3CaH0HJOSjKV2 GUYDV7vfKs6sg6laO46zFMzsG5skDqVxA20t+/JdbNhy+e+Eb9uRDmWNQqmWiUMt7dCUHEwgA kHHX60RtjoEcZWRKA/cns8AwVWaQuFlegS3+K1uh/RMGx74vNaHr+0nJKf9DKTSJ7SpGmbR17 vBAzGa9TittzO4xqKxLFFp+T0j9ayLYhwmWLxbM8iOtLf8wkFfcY48ruW00rwvSWzuCXmS8pm dDxEXbQtvWHM2XOjBmPvBFsqMSoclag4MCjPv/R4O6X4GAfJR9FV1Lvt6Cf8hkTdLWLMVB0Il LzRfOm1Uk3e9SPtbzsqbOH03Zoo63yH0mgQHRjxO9HlQs6OQcpUXB8BF8h8QPLGlcNktUTvby 1JJCcBDSglwFj/dq9GJjgQXwFE1USq80URys0cZ9Zgn1jujT1LLm/PPmjK3uMCMTo566W7LmD QDw0voIRj2MUmKmSQNHFL4aOgbyhizxgnH0Vf1hufpMhj/OvIBp0go7ITN20w59OXmRvYkCwe iuovetS X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 26127 Cc: 26127@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Andreas Politz writes: Hi Andreas, Thanks for the bug report! > Calling file-notify-rm-watch on an invalid descriptor may throw a > invalid-function error, but it should throw a file-notify-error instead. `file-notify-error' shall appear only from `file-notify-add-watch'. `file-notify-rm-watch' shall not raise an error at all. > For example, this may occur when calling the function multiple times on > the same descriptor. > > The error stems from file-notify--rm-descriptor, which contains the expression > > (funcall > (cdr (assoc file (cdr registered))) > `(,descriptor stopped ,(if file (expand-file-name file dir) > dir))) > > , but (assoc file (cdr registered)) is nil. I think this error is > confusing. I've fixed this in the master branch; there shouldn't be an error anymore. > Attached you'll find a test case for this. Thanks also for this. I've added it, modified, to filenotify-tests.el. > -ap Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 27 10:53:05 2017 Received: (at 26127-done) by debbugs.gnu.org; 27 Mar 2017 14:53:05 +0000 Received: from localhost ([127.0.0.1]:47528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csW13-0002YT-5p for submit@debbugs.gnu.org; Mon, 27 Mar 2017 10:53:05 -0400 Received: from mout.gmx.net ([212.227.15.18]:49278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csW11-0002Xu-S7 for 26127-done@debbugs.gnu.org; Mon, 27 Mar 2017 10:53:04 -0400 Received: from detlef.gmx.de ([87.146.52.208]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MZTbR-1cZc5F3UrN-00LGG0; Mon, 27 Mar 2017 16:52:56 +0200 From: Michael Albinus To: Andreas Politz Subject: Re: bug#26127: 26.0.50; Using file-notify-rm-watch on invalid descriptor raises invalid-function References: <87mvcl9u7f.fsf@luca> <87inn89rlc.fsf@detlef> Date: Mon, 27 Mar 2017 16:52:55 +0200 In-Reply-To: <87inn89rlc.fsf@detlef> (Michael Albinus's message of "Fri, 17 Mar 2017 10:31:59 +0100") Message-ID: <877f3a93g8.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:hTnFKpyul6m3YnENjNAXWq+VZKyNZU9mdzoX51eE8q3GlDJnM2D yBZgLE+iEAnb0/EkF/m80zrO3Q7IngI4Me5YgolPxqjVH6A2hO9iCizHRkZUuXM23AUQaQ+ gfkv8nezVLKlJrkdm8mLeLrbndFv07g7eRZ6O4Gh/QbGxkFnOTpUu+0E9qOZbZSApkuXs7S 3erBRUNz3nN9yUSe0cfmQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:94E2uyxG/lk=:5WW97YLZPOWB8p9aQ+QPi2 s7eRw+FHtwit/wn8dY1kbi87+yFW0RbL6uqHaZwnElmSqhKkKfTh6jmxpzVNKzz0pnhgbN3kb VHJkYtTTFEycsF07gB6BiLPg6J3PIB+Je588v4APMwZJoPwJ7215h34V1jT1E3cd+eVMex8tG IK+LavdH6lNqSvRn1/MbB9RCBroZCg7B1t1gG4R0AGcOQTbY+i/Mu14SVl6rb4T9817FC5v1D BlEgMrr2LukBKXR+Alg8W4kI71IvzCpVa1f2cqXiXb8c7iqx3Ey6thjHLvtYbjKE+V7ZODGNh YtLmpC9jZVAXTICZRicdy3a/V/hLCuZhdp0UW+XiqaSfdvnwn84mJU8m8xgQzoeg3VymTimII RyVvBCBO2I4rzlgvLAjSE6qQvxB9NlSqwgqH/k7L4zNIrk6NCK9Neyja1tJFX0GHHN8IvPys4 D7txASK02nO7+bL8QKxbfXq57YJSs4dqnAuft2hMFxTfc/17ClsfnSYyES/AAYxYEZCJie1DQ k2tUiiD9AxEAaZzbQjme2Mgezn10ynDCN4Vmhu4ibfo9kU+LRYpXenLU8caRN+3nAodwcfdX5 7L4b0RIqHWGbcsUFHpCi/mNSk/L3kN0a8vA2LbtqWIv53n+IAN6K3/8iBdenUdP7V9ilR87NZ p700v3fz2cpGq0qgXugCRWu4POT4iqPHwX9Myh44baU7cmYykyT884eW9VCEwEzGDQ1GA6Rbg 8i742D+TX/Ma+RGx/5VvWUoy+wOf7+TF2ogJtfRMe0wkOZUtizlDJOTCl+s1ruhudA6aI/Sao DpAUkOQ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26127-done Cc: 26127-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Michael Albinus writes: > I've fixed this in the master branch; there shouldn't be an error anymore. Nobody reported that this doesn't work, so I'm closing the bug. >> -ap Best regards, Michael. From unknown Wed Jun 18 23:17:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Apr 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator