[Top][All Lists]

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

idle timer and current syntax-table

From: Yuri D'Elia
Subject: idle timer and current syntax-table
Date: Thu, 18 May 2017 19:17:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

When setting up some function to run with an idle timer, I noticed the
(syntax-table) is empty while calling the timer.

It somehow makes sense, since there's no buffer associated with it.
However, it breaks code in very subtle ways. For example, any regexp
won't recognize the usual word boundaries.

When used with replace-regexp-in-string it might not be immediately
apparent why the regular expression is failing to match.

Wouldn't it make sense to set the standard-syntax-table during the
invocation of the timer?

reply via email to

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