From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r118247: Make blink-parens work with a closing template delimiter. Date: Sat, 01 Nov 2014 21:14:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414890883 13369 80.91.229.3 (2 Nov 2014 01:14:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 01:14:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 02:14:36 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XkjkZ-0000ac-N4 for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 02:14:35 +0100 Original-Received: from localhost ([::1]:54251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkjkZ-0007sc-7w for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2014 21:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkjkN-0007s0-Ri for emacs-devel@gnu.org; Sat, 01 Nov 2014 21:14:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkjkG-00039f-6S for emacs-devel@gnu.org; Sat, 01 Nov 2014 21:14:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:34900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkjkG-00039b-3U for emacs-devel@gnu.org; Sat, 01 Nov 2014 21:14:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBBFYjEAsOJhIUGA0kiFTLcgEBAQEGAQEBAR6RCAeESwWyIIFvgjSBYCGCegEBAQ X-IPAS-Result: Au0MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBBFYjEAsOJhIUGA0kiFTLcgEBAQEGAQEBAR6RCAeESwWyIIFvgjSBYCGCegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95767966" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO ceviche.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Nov 2014 21:14:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 729ED66108; Sat, 1 Nov 2014 21:14:15 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Sat, 01 Nov 2014 15:57:58 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176226 Archived-At: > + ;; Currently (2014-10-19), the syntax-table text properties on < and > > + ;; are only applied in code called during Emacs redisplay. We thus > + ;; explicitly cause a redisplay so that these properties have been > + ;; applied when `blink-paren-function' gets called. > + (sit-for 0) > + (funcall blink-paren-function))))) I recommend you use font-lock-ensure rather than sit-for (of course, after testing (fboundp 'font-lock-ensure). Stefan