From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: immerrr again Newsgroups: gmane.emacs.devel Subject: Re: Bug in font-lock-syntactic-keywords handling? Date: Tue, 7 Oct 2014 03:27:06 +0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1412638049 31136 80.91.229.3 (6 Oct 2014 23:27:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 23:27:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 07 01:27:22 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 1XbHgY-0006Mk-2E for ged-emacs-devel@m.gmane.org; Tue, 07 Oct 2014 01:27:22 +0200 Original-Received: from localhost ([::1]:55201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbHgX-0006yN-JP for ged-emacs-devel@m.gmane.org; Mon, 06 Oct 2014 19:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbHgK-0006yG-Tc for emacs-devel@gnu.org; Mon, 06 Oct 2014 19:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbHgJ-00021N-Ve for emacs-devel@gnu.org; Mon, 06 Oct 2014 19:27:08 -0400 Original-Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:38107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbHgJ-00021B-QC for emacs-devel@gnu.org; Mon, 06 Oct 2014 19:27:07 -0400 Original-Received: by mail-qg0-f49.google.com with SMTP id a108so4505866qge.36 for ; Mon, 06 Oct 2014 16:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=jk2QaCqJ9JRQUnx54s5zva2v7IJ972MqVWZNs5k8dx0=; b=05o8ESPtQWx1pA2Fhb93cbblCg7+CvQAtdECbCdlt+SydylB+5uXl1Ltc7goTVEq6i MI26j6wgh+OoMFjp57DJQbdnb9JTUKLhRE/iM1gxH5528avNmR2n0Qzpe0TgO2fnBZPv xeu5GjlZgGa4SBi4rGWVs6qKr7+XSRsCswMsgDyff625H6v1qgU0qlH1a5JTzHKoDqBJ 1ogFQ074a6cqSGC+zy1L30S6Uh4c96HupLwDp14boEUers6Y4UIIdBLde4lP+KeumOug fZdOxGavCDaHfrskQmafyoxnniOZyS2ouq7j+uf4hU+JBHdTT/VMI41O2euiniE/Bhs5 eT5w== X-Received: by 10.224.128.134 with SMTP id k6mr25692761qas.69.1412638027004; Mon, 06 Oct 2014 16:27:07 -0700 (PDT) Original-Received: by 10.140.98.148 with HTTP; Mon, 6 Oct 2014 16:27:06 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: WOmF4lnDrMGedC8KSNDTWiWQbYQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::231 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:175056 Archived-At: On Mon, Oct 6, 2014 at 8:28 PM, Stefan Monnier wrote: > > > Also, I recommend you use syntax-propertize-function when available. > It comes with various advantages (e.g. it also works when font-lock is > disabled). > > Thanks a lot for your help, this should work. For some reason I considered remove-text-properties an expensive operation and avoided it, but a quick benchmark showed that syntax-ppss takes a lot more time during syntactical fontification. > > PS: BTW, do you have any news about the copyright status of lua-mode > that would prevent including it in GNU ELPA? Sadly, no news. I haven't tried reaching those who hadn't signed the assignment since the last time and I'm a lot more humble now in estimates of my spare time to do actual rewriting. I will most likely have another stab at it before Christmas.