From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24959: 26.0.50; cancel-timer: void-variable timer Date: Thu, 17 Nov 2016 20:22:06 +0100 Message-ID: References: <874m36sahw.fsf@localhost.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479410597 2512 195.159.176.226 (17 Nov 2016 19:23:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2016 19:23:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 24959@debbugs.gnu.org To: Oleg Sivokon Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 17 20:23:13 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 1c7SH9-0008BJ-IZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 20:23:11 +0100 Original-Received: from localhost ([::1]:32859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7SHC-0004Ed-Dm for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 14:23:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7SH5-0004Ds-41 for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:23:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7SH0-0004LK-4F for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:23:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7SH0-0004LG-0N for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c7SGz-00043i-Ov for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2016 19:23:01 +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.147941053415525 (code B ref 24959); Thu, 17 Nov 2016 19:23:01 +0000 Original-Received: (at 24959) by debbugs.gnu.org; 17 Nov 2016 19:22:14 +0000 Original-Received: from localhost ([127.0.0.1]:60994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7SGE-00042L-Ab for submit@debbugs.gnu.org; Thu, 17 Nov 2016 14:22:14 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7SGC-000428-FH for 24959@debbugs.gnu.org; Thu, 17 Nov 2016 14:22:12 -0500 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c7SG7-00056x-0T; Thu, 17 Nov 2016 20:22:08 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEUAAAMeFBMCAQEBAQMP CgpOODAAAAKMbFYsHxwEAgTizam/lwSNAAACaElEQVQ4jVVUTYvbMBQU5BcIvOCze8otm9eq+OhW 0M1xD8Kmp4JAsD/AGHxzqVn32MYX/YKAf2VnJGfZviT+eKM3M+9ZjhKEFwn41ZGx2hSKueBNCMYY H4x4743IQRSOIYU3RAPyhhQKaS9BjMcdalElhvQq7AEKT4A1noABpWFGUOWNz15IBQJPbkmLM8/p QA3kAQQq4EzA38Vpg0m5KydxQ+CMgrwkhaE4SOD8wDbY0h2hKxD8kNS0UMOnjzJseLcasi7jCruc xBu12YGosCRJpi5YItcduAvSbkrtQOCgQcKy3RKjTkPM3N6fJI8ERXGfrsi9t8wW490V3ZjT7uma AY75/XpUSL0qjs2Y90DaE98UBvf/crlyq4wqbYEdub4VvI4cotmROiYBrG+HjXbTFOXhK0Qjv8xv ijMNvp4e+2ery2W6rPFh3AAId6B83uZ+SNF3M/Mbxc3L5fvW932boZQnlZj6dRtvW45hSKdbGsnj 6zhu4/Yubk6ZP93v2Q07Taa6Dc4p+bS4blnm7pfF0bW9a5FuRwDPznVIfKnQmn1qh24ekt2PExaO Q6fRBfCue8p2RawubNuON/qEhAMRLlWeztSUSOQOccJX5X1XHS+2mWHNFdaWM2yovPeq+Lc6rs20 FDDQLAXfWn8wZ4nHaJFATFovC3wAkHNVNWiiRDM4agR84sU5o4F0q8upXIpLA9vs3IDc2rgSmcgO cQKnD9W6xlgdC+Q0WtJ8Xgs0ChshDTNQR1GRxKdS1b37WcX0v9LoBWy6xFAnraQpqurItSBwyEyY Adzh0VYAnuCTkt2ki4YXyz8vh3nHLQZbgAAAAABJRU5ErkJggg== In-Reply-To: (Oleg Sivokon's message of "Thu, 17 Nov 2016 21:19:05 +0200") 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:125805 Archived-At: Oleg Sivokon writes: > (defun tesla-do-containers (command &optional need-refresh output) > (let (temp-buffs timer) [...] > (setq timer > (run-at-time > 1 1 > (lambda (output buffs) [...] > (cancel-timer timer)) This can't work. You're setting a locally bound variable, and then you're running the lambda in a different context afterwards. Start using lexical bindings, and it'll work. In any case, this doesn't look like an Emacs bug, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no