all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* idle timer and current syntax-table
@ 2017-05-18 17:17 Yuri D'Elia
  2017-05-18 17:45 ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Yuri D'Elia @ 2017-05-18 17:17 UTC (permalink / raw)
  To: emacs-devel

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?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-19 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 17:17 idle timer and current syntax-table Yuri D'Elia
2017-05-18 17:45 ` Dmitry Gutov
2017-05-19  9:12   ` Yuri D'Elia
2017-05-19 12:30     ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.