From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oleg Sivokon Newsgroups: gmane.emacs.bugs Subject: bug#24959: 26.0.50; cancel-timer: void-variable timer Date: Thu, 17 Nov 2016 20:00:27 +0200 Message-ID: References: <874m36sahw.fsf@localhost.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1479406136 28161 195.159.176.226 (17 Nov 2016 18:08:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2016 18:08:56 +0000 (UTC) Cc: 24959@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 17 19:08:51 2016 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 1c7R7D-0006XT-8D for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 19:08:51 +0100 Original-Received: from localhost ([::1]:60766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7R7G-0001Tr-Cn for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 13:08:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Qzi-0003oe-C0 for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 13:01:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Qze-0007yU-Tm for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 13:01:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7Qze-0007yM-Pg for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 13:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c7Qze-0000Do-Gq for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 13:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oleg Sivokon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2016 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24959-submit@debbugs.gnu.org id=B24959.1479405643811 (code B ref 24959); Thu, 17 Nov 2016 18:01:02 +0000 Original-Received: (at 24959) by debbugs.gnu.org; 17 Nov 2016 18:00:43 +0000 Original-Received: from localhost ([127.0.0.1]:60918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QzH-0000Cx-PB for submit@debbugs.gnu.org; Thu, 17 Nov 2016 13:00:43 -0500 Original-Received: from mail-qt0-f200.google.com ([209.85.216.200]:38683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7QzC-0000Cf-Gy for 24959@debbugs.gnu.org; Thu, 17 Nov 2016 13:00:38 -0500 Original-Received: by mail-qt0-f200.google.com with SMTP id p16so85476592qta.5 for <24959@debbugs.gnu.org>; Thu, 17 Nov 2016 10:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elastifile-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XkGoT7uIetlcpKAkYx5O/VtNouesfPGUxcrgjl97u9I=; b=VCJhyBg/QrA6k5jzHWV74k8B1sTD2Hr+fVico/3BpnoaLO+5LrKodfbi2ybxChQrlQ f8tV94xyum9+dRUc+bH1jBWb8JR8vaB6oTwjIQeQjSC6Xq6imeAIZULYNRl8wf6OK/LD EnYP3re5qw2VhYNVYStRmpet5Q003wTRuQ+F1TFek0PvafrKOljgMf8rOrR56Psj0SkI PsX4fpONLKbNr4h0aD6eFjk9vZLLF6H3OlG6WL5k8VktCvyyNjEwmVTy1m6XY518dyNa 0JQ5H6TXOn+RZ1VXOa+petayWTIxwU5fThYEkElbvtOkQuqFdgdBFFfjVUwDIc/FcmsI xbdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XkGoT7uIetlcpKAkYx5O/VtNouesfPGUxcrgjl97u9I=; b=lTEVDeviGAf9PqVpKezsVzLMhOnpuAIONgcu/BHRbIiIdYp47S4e8bPW0FTRa8vLWU SpR675CBUa8M+DlJbL0b35QDyte/p55fKMigPQsgYZxCTT3zFhJwhlaDRiYCDgr/WkNn Pru6k6BLSWL1mSqD4jA66cz/FGiPAtAfgF7BAe7ePncwSA6w/TM+WOtRIXsOawHpqLFl amULXyRU7cDFF2VLSbgPQVZKEJzVnshjllUlqsSBWuGdqqQCzq/hYpMV8LjcGtPenQfK xOlFFjDuhTPIDB2xqxIFiAV7/fp6R/sCiJSjMAk8GV67tNiZvCre46aqM696ReSYp0WL bjMg== X-Gm-Message-State: AKaTC026iNBetx7/nBBN89j8vVHXx6qnJVvbIG3XDWZQmRwfssDp+g9PMLLLQvRjLJYrHORh9BrUcYmvDbjQg4DU X-Received: by 10.55.111.68 with SMTP id k65mr5503082qkc.138.1479405627642; Thu, 17 Nov 2016 10:00:27 -0800 (PST) Original-Received: by 10.237.33.34 with HTTP; Thu, 17 Nov 2016 10:00:27 -0800 (PST) In-Reply-To: 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:125794 Archived-At: Lars, Simplified version looks like this: (setq timer (run-at-time 1 1 (lambda () (cancel-timer timer))) The version that does work looks like this: (let ((timer [nil])) (aset timer 0 (run-at-time 1 1 (lambda (timer) (cancel-timer (aref timer 0))) timer)) On Thu, Nov 17, 2016 at 7:56 PM, Lars Ingebrigtsen wrote: > Oleg Sivokon writes: > >> The code in the handler relies on the code that sets up the timer to >> create a special variable "timer". This variable is created by calling >> setq (but no defvar). setq used to make variable special, if it wasn't >> already let-bound. Now it seems like this behavior has changed. Does >> this make sense? > > You need to find the code that created the timer. If you find it and > post it here, we may be able to tell what's wrong with it. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no