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 21:14:06 +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 1479410118 8964 195.159.176.226 (17 Nov 2016 19:15:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2016 19:15:18 +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 20:15: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 1c7S9R-0001W1-Jx for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 20:15:13 +0100 Original-Received: from localhost ([::1]:32839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7S9T-0002Us-AJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 14:15:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7S9J-0002Pu-Pf for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7S9G-0001wH-7M for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:15:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7S9G-0001wB-3p for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c7S9F-0003pE-UL for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2016 14:15:01 -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 19:15: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.147941006114629 (code B ref 24959); Thu, 17 Nov 2016 19:15:01 +0000 Original-Received: (at 24959) by debbugs.gnu.org; 17 Nov 2016 19:14:21 +0000 Original-Received: from localhost ([127.0.0.1]:60985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7S8X-0003no-MW for submit@debbugs.gnu.org; Thu, 17 Nov 2016 14:14:21 -0500 Original-Received: from mail-qk0-f199.google.com ([209.85.220.199]:34607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7S8S-0003nT-Qk for 24959@debbugs.gnu.org; Thu, 17 Nov 2016 14:14:16 -0500 Original-Received: by mail-qk0-f199.google.com with SMTP id i34so194109508qkh.1 for <24959@debbugs.gnu.org>; Thu, 17 Nov 2016 11:14:12 -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=1OALcLQSMpRSvIxTGdQGa4xJNffPvifzyYFZoDaRuM8=; b=oLbsxDAdGrsn6kR4LIX30jfyBbKhOXnGRsk9QcybF6Vk0ifGbHiwN7h+oNCJFhskjb eSJE2K/Kd/jY/kgq/1zVJc2teSIcxddQbKW7LJl75gH3z/aEdTkWNvq8njOBgmx+2BjK WH3IHN7cXTbhmKziizcxywSD1Lq4TK2Gtg5ku42zxj3xmP/z9r/XC7ZyvIx4WNounJ+m Or/A7+hXQgYyf4B+dZgvIlxXRXn279/hR7a64FkbrXrVClTP4RPVYh8B+jzJjWiI2Xh9 UQSQgC8/Ys1yPHJIti64syjYhEnizxjqRgHcZNx9FaiApGmYwCXMpAhv7uTriWkIHj8K HqhA== 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=1OALcLQSMpRSvIxTGdQGa4xJNffPvifzyYFZoDaRuM8=; b=JL9rcJFxv7PAg/l9TMsRb+A05KROZIyu04Mu4nAyoDSHL4KokUVZnNQyeENLHxFOa5 iHL4KgyuKZN5i24ygJPEJGYgjzhEKQusyGD+YOmZV9BCrbngH+RCT5nOkJd+pCs9tqOP fkSIJOaDLt2C2lCRb/+mdZ5PnQ7r2WAFOmbiwsN6NdFHUOL+hrXmzBE3n/0uXmHhB/qK fb4KhE0foSAA6NVfZBywDo+1j+lGB0UZWYP2TFmgCH4U2Xvz3pf1b4NwMONRz2vDkvbP X1rL5d6Q5Nhz+MfwSELDFDOulyF9wcIMXRlf0QkUUktJ8PHTwvhirGH0ykNjZCp8Kvvf pnmQ== X-Gm-Message-State: AKaTC02+QvhWc99Z7AN9drjK6L5cKleXmaGfdc6nGLwqjOX5kOSEK4zpxwYHq2w5THZAsK3V4/nRlem+Xk2nT21A X-Received: by 10.200.56.88 with SMTP id r24mr3688427qtb.39.1479410047199; Thu, 17 Nov 2016 11:14:07 -0800 (PST) Original-Received: by 10.237.33.34 with HTTP; Thu, 17 Nov 2016 11:14:06 -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:125803 Archived-At: Lars, I'll need to experiement with this then. My hunch is that when this happens inside condition-case, the things don't work exactly the same. I'll try to come up with a minimal example for the problem. On Thu, Nov 17, 2016 at 8:09 PM, Lars Ingebrigtsen wrote: > Oleg Sivokon writes: > >> No, I don't use lexical bindings in this code. But, my point is that >> the behavior of setq used to be to make variable special (i.e. >> universaly accessible, like global, except it can be let-bound >> temporarily), which it doesn't seem to do anymore. > > It does for me. > > [...] > >>>> (setq timer (run-at-time 1 1 (lambda () (cancel-timer timer))) > > You've forgotten an end parentheses there. If I add one and eval the > form, it works fine for me. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no