From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: idle timer and current syntax-table Date: Thu, 18 May 2017 20:45:05 +0300 Message-ID: <10e8c197-3e26-d0ca-8610-9d091052a513@yandex.ru> References: <87y3tu6q4i.fsf@wavexx.thregr.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1495129590 11221 195.159.176.226 (18 May 2017 17:46:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 May 2017 17:46:30 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Thunderbird/53.0 To: Yuri D'Elia , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 19:46:23 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dBPV7-0002SP-S3 for ged-emacs-devel@m.gmane.org; Thu, 18 May 2017 19:46:13 +0200 Original-Received: from localhost ([::1]:55001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBPVD-000721-9i for ged-emacs-devel@m.gmane.org; Thu, 18 May 2017 13:46:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBPUO-00070r-Dm for emacs-devel@gnu.org; Thu, 18 May 2017 13:45:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBPUK-0005aN-Hf for emacs-devel@gnu.org; Thu, 18 May 2017 13:45:28 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:38305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBPUK-0005aC-Al for emacs-devel@gnu.org; Thu, 18 May 2017 13:45:24 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id v15so60924334wmv.1 for ; Thu, 18 May 2017 10:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KUH63uJ234E2c7sjRfyyHLElKRnw1hTbmeByNEczCpg=; b=t/h2jv5Sg1JoP3eHsEDAEPWq5NWtwckzgebCfy44ojG6njJpWVcAEoobBNr3JDdRj8 dNijGykW+EpsB37nA0heGRllqXF6jHgYCjrl+iP4NDSf6Sm6cyXS/Jdcl4mIHCwc05V0 Kr3ePEogJfFo38hLbEbkgeRFoMKkUlM36uMlwnBAp3zpIxde0fipss0T+Z0w7tRMgrQZ G6mweNFm3MZXvTPmsZ6d71DYyLuSfTmiVxIZ+6wyHVn/an7IgDhpQqyMdh/OIflEvJip +fexp9ocJXSEwpNB5a6/lNwR+wLJ98ZOnZ2P14R7SWVQ3pd7SeMSLnNkZOe/hSbQV984 3pBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KUH63uJ234E2c7sjRfyyHLElKRnw1hTbmeByNEczCpg=; b=bDnaIbAffo1hUzWOuLRZ+gFBZIxmMiRvaS0IFRP+lxcPhRjqM21WokEryg6rB6wdDW muhnulkm514rNqXH2f6KNaFh2Yk5d+NvV3WAJwC82PQ4MgGXMNhvdyOQhZHcid4pU0dJ QQnSbvZMbuQ0UjsdmSIQH41OlWW1sVj1XFcJcNmkI2baafheonDa9ngBC3ls1seCbIll a1BYB3hW+uy9u7MpbE7FRbUPs+4Sl5RRnxWaL1gCyXdmX24w159soxnGFn6NY3Icu3nv OhEIWjZMCs+ZEJdNzc3ZjduqK8YZNEWrXWnIZi3xU5LaDFtjUrPnFhyj6CRaJSjItcVV bgfw== X-Gm-Message-State: AODbwcBeyi2bqa19RrLPKE8gxQIvYTjNgHOgsTlRxxa/xvNkI3GcFZ86 /OiQUE+zJJUapN9g3rk= X-Received: by 10.28.229.196 with SMTP id c187mr3513716wmh.130.1495129522917; Thu, 18 May 2017 10:45:22 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.156]) by smtp.googlemail.com with ESMTPSA id 77sm6829925wmw.24.2017.05.18.10.45.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 10:45:21 -0700 (PDT) In-Reply-To: <87y3tu6q4i.fsf@wavexx.thregr.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214952 Archived-At: On 18.05.2017 20:17, Yuri D'Elia wrote: > When setting up some function to run with an idle timer, I noticed the > (syntax-table) is empty while calling the timer. I've just evaluated this is the scratch buffer: (run-with-idle-timer 1 nil (lambda () (message "%s" (syntax-table)))) And the message came with a normal, non-empty syntax table value. > It somehow makes sense, since there's no buffer associated with it. It normally runs in whatever buffer is current in the selected window.