From unknown Sat Aug 16 18:42:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16796: 24.3.50; global value of after-change-functions reset without error Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2014 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16796@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139274547826031 (code B ref -1); Tue, 18 Feb 2014 17:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Feb 2014 17:44:38 +0000 Received: from localhost ([127.0.0.1]:58752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoij-0006lk-FD for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:44:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoih-0006lW-Qf for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:44:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFoiQ-0000vP-GE for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:44:30 -0500 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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFoiQ-0000vI-Dj for submit@debbugs.gnu.org; Tue, 18 Feb 2014 12:44:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFoiB-0007m5-Mq for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 12:44:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFohu-0000jV-Bw for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 12:44:03 -0500 Received: from mout.web.de ([212.227.15.14]:55244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFohu-0000iy-1s for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 12:43:46 -0500 Received: from drachen.dragon ([90.186.103.16]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MbQfs-1WYaXj1nhU-00IiEN for ; Tue, 18 Feb 2014 18:43:44 +0100 From: Michael Heerdegen Date: Tue, 18 Feb 2014 18:43:36 +0100 Message-ID: <87a9douxiv.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Lu64lNkL+RJ/oFM4ntsNSaHf8eNV4Y+liaYgpm6S3aFQHUrHGqW 4iP1U5DViWiXYeoUgWuXqbowVudARG20dAUPZVWWuNYsK2z0Vi0eidRlT6ZuBcwfbmWgqtr 2eMPozfxnQflecS9DLvNUjwWnXskhBOYky17v72W3NvDerrOquaXFUSOdYijBWpe1e1IalK 3tecKd/l3FGhJa3FW9gig== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Hello, I'm working on a package that needs to install a function in (the global binding of) `after-change-functions'. I experience that the global value of `after-change-functions' is randomly reset to nil, without any error involved or any error message being printed. I invested lots of time to preclude any error. I installed a timer that frequently checks whether `after-change-functions' had been reset. A good situation to provoke the reset was completing with helm and just typing in the minibuffer. At random locations, the reset happened. Note that there is no error involved, nor does helm touch `after-change-functions'. Here is a different example that "works" from emacs -Q: --8<---------------cut here---------------start------------->8--- (progn (defun foo (&rest _) ()) (add-hook 'after-change-functions 'foo) (defun complain () (when (not (memq 'foo (default-value 'after-change-functions))) (message "Why does this happen?") (cancel-timer complain-timer))) (defvar complain-timer (run-with-idle-timer .03 .03 #'complain)) (require 'cl-lib) (global-set-key [f9] (lambda () (interactive) (completing-read "Hit tab and C-g: " (cl-loop for i from 1 to 100000 collect (format "%d" i)))))) --8<---------------cut here---------------end--------------->8--- Hit f9 and C-g one or two times. I get "Why does this happen?", but not always. If I repeat the test several times, I'll always happen sooner or later. Here is the response I got from Kalle Olavi Niemitalo in emacs dev: I debugged this a bit, with my custom Emacs 23.0.51. I don't know how much this machinery has changed in later versions. Emacs set Vquit_flag at: handle_interrupt tty_read_avail_input read_avail_input handle_async_input input_available_signal mark_object Fgarbage_collect Ffuncall run_hook_list_with_args signal_after_change Fadd_text_properties Fput_text_property Fdisplay_completion_list internal_with_output_to_temp_buffer Fminibuffer_completion_help do_completion Fminibuffer_complete Ffuncall Fcall_interactively After Fgarbage_collect returned, Ffuncall called funcall_lambda, in which the QUIT macro detected the non-nil value of Vquit_flag and called Fsignal (Qquit, Qnil). Because the quit was signaled within signal_after_change, after-change-functions were not restored. I don't see any reasonable way to prevent after-change-functions from being reset like this. Thanks! Kalle, does that mean that it won't be possible to fix this, and that I shouldn't rely on `after-change-functions' being kept? Do you know whether the buffer local binding is "safe"? Perhaps you could change your Emacs to break when the reset happens, and always run it in a debugger. Make signal_before_change and signal_after_change maintain some kind of flag or nesting counter, and set conditional breakpoints in Fthrow and Fsignal. That will get a false positive if the error is caught within the hook; but I don't think it happens often. Uff, I'm afraid I must say that this is a bit above my (zerop) C skills. Thanks, Michael. In GNU Emacs 24.3.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6) of 2014-02-12 on drachen Windowing system distributor `The X.Org Foundation', version 11.0.11405000 System Description: Debian GNU/Linux testing (jessie) From unknown Sat Aug 16 18:42:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16796: 24.3.50; global value of after-change-functions reset without error Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2016 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen Cc: 16796@debbugs.gnu.org Received: via spool by 16796-submit@debbugs.gnu.org id=B16796.14733784808748 (code B ref 16796); Thu, 08 Sep 2016 23:48:02 +0000 Received: (at 16796) by debbugs.gnu.org; 8 Sep 2016 23:48:00 +0000 Received: from localhost ([127.0.0.1]:53961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi932-0002H1-3a for submit@debbugs.gnu.org; Thu, 08 Sep 2016 19:48:00 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:32933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi92z-0002Gm-Vw for 16796@debbugs.gnu.org; Thu, 08 Sep 2016 19:47:58 -0400 Received: by mail-oi0-f46.google.com with SMTP id y2so101797478oie.0 for <16796@debbugs.gnu.org>; Thu, 08 Sep 2016 16:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=E/7PYZmdssOAhPR6ByxwNX/07MBkAtWv2JO15slXUWc=; b=e7kWQPMI1+fadEIc6v+VRihip5gWl8AeZskbmbsMyyxdM3s8rc9Esuu10cH+esDs8K o/HIMCIvVmpeQaqgleT2ItRSdUqMBMJIyyj3TsXIicAAAv0pnEDjwpHSaUXwB/ZbO+AC neKNIqWEwuac19VPYR7Ktqgh75j0xutzcpuWMrnq12QZg0CX+KX9lvslxKECEB2CPh++ lEelAjsR4GniUVk23X+omR7CKL0m8/9X7NK0gKy6GplV7O0O9IK7iOQ6MHmF23RPCOwc P33GjpbNO5Eb7t0Tq8M4jVAK/o18uD3V0SiTI72Hj8TQUF+Rtp8t1VogHDr0TcyUhpSG pmXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=E/7PYZmdssOAhPR6ByxwNX/07MBkAtWv2JO15slXUWc=; b=Ju2XR1YzQ7JwhWc/n8K6bcff/EV8S5e6hYXreo4+qf3afP89ljHh7yRxJj46LkbHdi 6aQj3pOs7uyDHiCuvMGAtjZyi4qXPeoFperm/Zpp9iKFMH6CkpmpdhoAdP16NzfciJ9O 6deuLWWkGJ42xJX+zVqmW3Nwd2EmX7Lwu0VS5yzJdGJh910LQNT8NwaoukWYpRdQoIj+ N83u8ynfxMjSnsPYKC38I2zim4HSFvcVtGYehtZiW+pfj/uTv5cfghEVO49gNLy4hJzS 02/mKIn2ZPooqPHUusZpvW/SUnmNAT0OFbEI+AwSXZuqCF3C8coqJDLCXzc3X/OLwheY hAsw== X-Gm-Message-State: AE9vXwPOiAJkKAZ7wNaUaBfP9eaLph9D4BysUd71IwmxykG7XWbeZGHN5CvwLFK++H/hxw== X-Received: by 10.157.59.227 with SMTP id k90mr880325otc.44.1473378472385; Thu, 08 Sep 2016 16:47:52 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id q1sm266981itb.2.2016.09.08.16.47.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Sep 2016 16:47:52 -0700 (PDT) From: Alex References: <87a9douxiv.fsf@web.de> Date: Thu, 08 Sep 2016 17:47:50 -0600 In-Reply-To: <87a9douxiv.fsf@web.de> (Michael Heerdegen's message of "Tue, 18 Feb 2014 18:43:36 +0100") Message-ID: <874m5q6jix.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Heerdegen writes: > Hello, > > I'm working on a package that needs to install a function in (the global > binding of) `after-change-functions'. > > I experience that the global value of `after-change-functions' is > randomly reset to nil, without any error involved or any error message > being printed. I invested lots of time to preclude any error. > > I installed a timer that frequently checks whether > `after-change-functions' had been reset. A good situation to provoke > the reset was completing with helm and just typing in the minibuffer. > At random locations, the reset happened. Note that there is no error > involved, nor does helm touch `after-change-functions'. > > > Here is a different example that "works" from emacs -Q: > > (progn > > (defun foo (&rest _) ()) > > (add-hook 'after-change-functions 'foo) > > (defun complain () > (when (not (memq 'foo (default-value 'after-change-functions))) > (message "Why does this happen?") > (cancel-timer complain-timer))) > > (defvar complain-timer > (run-with-idle-timer .03 .03 #'complain)) > > (require 'cl-lib) > (global-set-key > [f9] > (lambda () (interactive) > (completing-read > "Hit tab and C-g: " > (cl-loop for i from 1 to 100000 > collect (format "%d" i)))))) > > Hit f9 and C-g one or two times. I get "Why does this happen?", but not > always. If I repeat the test several times, I'll always happen sooner > or later. [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.218.46 listed in list.dnswl.org] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.218.46 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.218.46 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 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: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Heerdegen writes: > Hello, > > I'm working on a package that needs to install a function in (the global > binding of) `after-change-functions'. > > I experience that the global value of `after-change-functions' is > randomly reset to nil, without any error involved or any error message > being printed. I invested lots of time to preclude any error. > > I installed a timer that frequently checks whether > `after-change-functions' had been reset. A good situation to provoke > the reset was completing with helm and just typing in the minibuffer. > At random locations, the reset happened. Note that there is no error > involved, nor does helm touch `after-change-functions'. > > > Here is a different example that "works" from emacs -Q: > > (progn > > (defun foo (&rest _) ()) > > (add-hook 'after-change-functions 'foo) > > (defun complain () > (when (not (memq 'foo (default-value 'after-change-functions))) > (message "Why does this happen?") > (cancel-timer complain-timer))) > > (defvar complain-timer > (run-with-idle-timer .03 .03 #'complain)) > > (require 'cl-lib) > (global-set-key > [f9] > (lambda () (interactive) > (completing-read > "Hit tab and C-g: " > (cl-loop for i from 1 to 100000 > collect (format "%d" i)))))) > > Hit f9 and C-g one or two times. I get "Why does this happen?", but not > always. If I repeat the test several times, I'll always happen sooner > or later. [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.218.46 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.218.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.218.46 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Michael Heerdegen writes: > Hello, > > I'm working on a package that needs to install a function in (the global > binding of) `after-change-functions'. > > I experience that the global value of `after-change-functions' is > randomly reset to nil, without any error involved or any error message > being printed. I invested lots of time to preclude any error. > > I installed a timer that frequently checks whether > `after-change-functions' had been reset. A good situation to provoke > the reset was completing with helm and just typing in the minibuffer. > At random locations, the reset happened. Note that there is no error > involved, nor does helm touch `after-change-functions'. > > > Here is a different example that "works" from emacs -Q: > > (progn > > (defun foo (&rest _) ()) > > (add-hook 'after-change-functions 'foo) > > (defun complain () > (when (not (memq 'foo (default-value 'after-change-functions))) > (message "Why does this happen?") > (cancel-timer complain-timer))) > > (defvar complain-timer > (run-with-idle-timer .03 .03 #'complain)) > > (require 'cl-lib) > (global-set-key > [f9] > (lambda () (interactive) > (completing-read > "Hit tab and C-g: " > (cl-loop for i from 1 to 100000 > collect (format "%d" i)))))) > > Hit f9 and C-g one or two times. I get "Why does this happen?", but not > always. If I repeat the test several times, I'll always happen sooner > or later. I can reproduce this on 24.5 but not in 25.1. Can you reproduce this on 25.1 or up? From unknown Sat Aug 16 18:42:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16796: 24.3.50; global value of after-change-functions reset without error Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2016 23:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alex Cc: 16796@debbugs.gnu.org Received: via spool by 16796-submit@debbugs.gnu.org id=B16796.14733789319499 (code B ref 16796); Thu, 08 Sep 2016 23:56:02 +0000 Received: (at 16796) by debbugs.gnu.org; 8 Sep 2016 23:55:31 +0000 Received: from localhost ([127.0.0.1]:53979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi9AI-0002T9-Qv for submit@debbugs.gnu.org; Thu, 08 Sep 2016 19:55:30 -0400 Received: from mout.web.de ([212.227.17.12]:52213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi9AH-0002Sw-Ne for 16796@debbugs.gnu.org; Thu, 08 Sep 2016 19:55:30 -0400 Received: from drachen.dragon ([90.186.0.128]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MgwZQ-1bM3uT2cz2-00M1uo; Fri, 09 Sep 2016 01:55:21 +0200 From: Michael Heerdegen References: <87a9douxiv.fsf@web.de> <874m5q6jix.fsf@gmail.com> Date: Fri, 09 Sep 2016 01:55:17 +0200 In-Reply-To: <874m5q6jix.fsf@gmail.com> (Alex's message of "Thu, 08 Sep 2016 17:47:50 -0600") Message-ID: <87wpimlzfe.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:N/sxT+SsZ9HG1OwNSmuqtDd0HsLVx4LhX92wu/pXZ+jqV68fHsT 3JP/pGyYewYo5k9qk64jzOT2ogBmCxhDhBlCkkmE03EBNTwCwkpqcqz8++e1oU2Hno2lL+V rUUN1RVImeWGxdgs2QZKWECoikSU4R6BPoUmyRZvRfBpW/vwlh78bj8hflqF36zUuo8TTLA +JeK5D748+hVT9Utex0bw== X-UI-Out-Filterresults: notjunk:1;V01:K0:4ewZ1sHgwsk=:FRU40UM/yEaMGPhEHJyBs6 QokkqL1fx0DwcCDx3lcCbMITr+Gui6L6g6jFmG+0rmv307ZiiiHwWa7GT6sozh4DukTEJC2us +HUboHoxjGAqCSnla6UjNBYeDbnxLh+oA7uylkvf9jXrFa05nsLM3zeNjer6Yzx5q1StCXxPn kzUwiSwLJadb8BsJF/155M0pUhc7rS0N25P+JLPLoncm65f+AmjZ+lAjIM9zihkQtRm9ot6Wn dbK3fSBZ88VXSTerqwOLpt06SroOUBkCtPf2j7LmAfesZWK00trAA6wmlw/Yau+eJZ+0V7JYC Wt7Tf0rCkkGqnEX+LQmnA5KzmboDQ/tXpjoW9ik30LfpgUlyP674qYbtwl/e50NrI+KbBGymG 0HEVuamD6ciY+24871AeyyZR0C7kpfXmNrhBGQnThSfs4ZW7RLaM1euefJOVBuP+F1I7ZSQ7+ dhF0kA1xyS8rA27vzSI/LWi/f4cMsaRgdECLa3YkKMEzRAeWRz6mIW2NIbITjCyTdWOox45aQ nMvHJqiTcWTtlqtgc74UGKrz50hmdIHZa0gymQIo+kNmBnrDaKMDkwa+PnjOZze109xy55MGF X92m+/qbxgXrsBGMqTriaME2+gB+iHtdSSZBHXrFFpMoRJoErtErlquC+Yab/wd8/sYnGW/Xm sY32dU12BKIriKijbX8GsWfd8QI03yVW6QFMc/P/pKAjyMimgmWedrfchGlRk9331i0F9vOmd 6poPRciKDOzQrs1V22gRL/oonyjCIN+rspX25GowzTSwJwdUG9l5cHXzMXP/Cm1SZlUx/LuQa ZM6Om8OdQVGdiGzvYMtFjj7BTW1Qg== X-Spam-Score: -2.0 (--) 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: -2.0 (--) Alex writes: > > (progn > > > > (defun foo (&rest _) ()) > > > > (add-hook 'after-change-functions 'foo) > > > > (defun complain () > > (when (not (memq 'foo (default-value 'after-change-functions))) > > (message "Why does this happen?") > > (cancel-timer complain-timer))) > > > > (defvar complain-timer > > (run-with-idle-timer .03 .03 #'complain)) > > > > (require 'cl-lib) > > (global-set-key > > [f9] > > (lambda () (interactive) > > (completing-read > > "Hit tab and C-g: " > > (cl-loop for i from 1 to 100000 > > collect (format "%d" i)))))) > > > > Hit f9 and C-g one or two times. I get "Why does this happen?", but not > > always. If I repeat the test several times, I'll always happen sooner > > or later. > > I can reproduce this on 24.5 but not in 25.1. Can you reproduce this > on 25.1 or up? No, seems I can't reproduce it with 25.1. I guess we can close this and cross our fingers. Michael. From unknown Sat Aug 16 18:42:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16796: 24.3.50; global value of after-change-functions reset without error Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Sep 2016 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen Cc: 16796@debbugs.gnu.org Received: via spool by 16796-submit@debbugs.gnu.org id=B16796.147338040617988 (code B ref 16796); Fri, 09 Sep 2016 00:21:01 +0000 Received: (at 16796) by debbugs.gnu.org; 9 Sep 2016 00:20:06 +0000 Received: from localhost ([127.0.0.1]:53997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi9Y6-0004fy-H2 for submit@debbugs.gnu.org; Thu, 08 Sep 2016 20:20:06 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:36849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi9Y4-0004fM-Gq; Thu, 08 Sep 2016 20:20:04 -0400 Received: by mail-oi0-f48.google.com with SMTP id x125so48295736oia.3; Thu, 08 Sep 2016 17:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GZo+ecOWFHDd/pnQTt79qXwQ9ADQnKjLqR5ooeq7vQA=; b=TdI7vVcvQg9uTgu3LLmglo0e+Tn5NVYnP753yaliKpdaN+clZ7HPeKlHYDKaDA/3nv RjKae4d88zKyvl08dSM13ZHUZf+UttMCGLXaKPrH6JAMPhu9OIPCtE52m82VatRbFMYO wLk6cY/09EfrHMrroIKS2ef/Emrw5aVc2oWg9V/uHZ0HsPzcGxTI68avg82yFmqxu92Y 18bT7QI+MF10eE/XVeln23nkzaWWaO6Smu1ZfwPC1i9ZB79zlVN2O923UulayOoJJAB6 vlZVOfhqPtvhQhjdDATQBtOG4+h9GIen9GJrAqyrNebCOI+Q/h1UMw8Zze8TCT923WgO 0WMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=GZo+ecOWFHDd/pnQTt79qXwQ9ADQnKjLqR5ooeq7vQA=; b=EPCOs4hHuD05sOrsSP+L4tnydN7GjWonD1g/NtUCgHEikD/4w5eHDUdSFCyQ/V2lqm vetiqmcCJCltP9kWejU58Dz7IBRELm0E/1q9Yb8ePXAhLDm1INFMm4kvgrR1pVq3OFEz fOeSG6mzfk2eRylSSfY91+p21iTz+UAwW8ISWpqf/j52QKsFQ0waiqotKdzbaHaY9gHT JEB/1mf37DuyMDqTlq/pn7df+w1QXvNNh9Q09UmqQbshEWd0cus84BjSSOYmA+sXp7Dt K+QBLCwMXUB47loiil3wP05IqkGHCJX1U8avCrtmEeO1AiG1fE3n7F9cGg9VSeR1x67d GMTw== X-Gm-Message-State: AE9vXwPMT3Mpv+3GplFsAZVhST6nxCO8p16GjgMrp+Th/xZXoO9iCSF5/BqUmkWW+FLQBw== X-Received: by 10.202.7.5 with SMTP id 5mr1025899oih.115.1473380399084; Thu, 08 Sep 2016 17:19:59 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id u185sm315635itc.3.2016.09.08.17.19.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Sep 2016 17:19:58 -0700 (PDT) From: Alex References: <87a9douxiv.fsf@web.de> <874m5q6jix.fsf@gmail.com> <87wpimlzfe.fsf@web.de> Date: Thu, 08 Sep 2016 18:19:57 -0600 In-Reply-To: <87wpimlzfe.fsf@web.de> (Michael Heerdegen's message of "Fri, 09 Sep 2016 01:55:17 +0200") Message-ID: <87r38t6i1e.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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 (/) close 16796 25.1 quit Michael Heerdegen writes: > No, seems I can't reproduce it with 25.1. I guess we can close this and > cross our fingers. > > Michael. Great, I'll close this then.