From: Dmitry Gutov <dgutov@yandex.ru>
To: Yuri D'Elia <wavexx@thregr.org>, emacs-devel@gnu.org
Subject: Re: idle timer and current syntax-table
Date: Thu, 18 May 2017 20:45:05 +0300 [thread overview]
Message-ID: <10e8c197-3e26-d0ca-8610-9d091052a513@yandex.ru> (raw)
In-Reply-To: <87y3tu6q4i.fsf@wavexx.thregr.org>
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.
next prev parent reply other threads:[~2017-05-18 17:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-18 17:17 idle timer and current syntax-table Yuri D'Elia
2017-05-18 17:45 ` Dmitry Gutov [this message]
2017-05-19 9:12 ` Yuri D'Elia
2017-05-19 12:30 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10e8c197-3e26-d0ca-8610-9d091052a513@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=wavexx@thregr.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).