From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: idle timer and current syntax-table Date: Thu, 18 May 2017 19:17:49 +0200 Message-ID: <87y3tu6q4i.fsf@wavexx.thregr.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495127924 31841 195.159.176.226 (18 May 2017 17:18:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 May 2017 17:18:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 18 19:18:40 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 1dBP4Q-00086Z-0g for ged-emacs-devel@m.gmane.org; Thu, 18 May 2017 19:18:38 +0200 Original-Received: from localhost ([::1]:54883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBP4V-0006nE-JR for ged-emacs-devel@m.gmane.org; Thu, 18 May 2017 13:18:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBP3o-0006lD-7a for emacs-devel@gnu.org; Thu, 18 May 2017 13:18:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBP3l-0004Cz-3f for emacs-devel@gnu.org; Thu, 18 May 2017 13:18:00 -0400 Original-Received: from [195.159.176.226] (port=46200 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBP3k-0004BX-UM for emacs-devel@gnu.org; Thu, 18 May 2017 13:17:57 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dBP3d-00070o-Kb for emacs-devel@gnu.org; Thu, 18 May 2017 19:17:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:cPk9AmkGjv4KLIl1DairGyr9ZQs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:214950 Archived-At: 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?