[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: idle timer and current syntax-table

From: Dmitry Gutov
Subject: Re: idle timer and current syntax-table
Date: Thu, 18 May 2017 20:45:05 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Thunderbird/53.0

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]