From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: font-lock-syntactic-keywords obsolet? Date: Tue, 12 Jul 2016 01:44:27 +0300 Message-ID: References: <20160620200830.GE2192@acm.fritz.box> <18697155-06d3-2191-6a6b-3ea58e8d17cb@yandex.ru> <20160621144047.GB3177@acm.fritz.box> <20160623163021.GA4946@acm.fritz.box> <7762a6a6-9554-945d-cc5a-4a14157eaeb0@yandex.ru> <20160630095215.GB3082@acm.fritz.box> <9b26e260-337c-36ea-5d85-6e955fa36c3a@yandex.ru> <20160710221151.GA3551@acm.fritz.box> <20160711172016.GA1801@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1468277092 1076 80.91.229.3 (11 Jul 2016 22:44:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 22:44:52 +0000 (UTC) Cc: Noam Postavsky , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 12 00:44:48 2016 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 1bMjwW-0005mS-0m for ged-emacs-devel@m.gmane.org; Tue, 12 Jul 2016 00:44:48 +0200 Original-Received: from localhost ([::1]:36375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMjwV-0004y6-2q for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2016 18:44:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMjwL-0004ws-17 for emacs-devel@gnu.org; Mon, 11 Jul 2016 18:44:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMjwF-0000Vv-HH for emacs-devel@gnu.org; Mon, 11 Jul 2016 18:44:37 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:34974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMjwF-0000Vo-Ai for emacs-devel@gnu.org; Mon, 11 Jul 2016 18:44:31 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id f65so80491940wmi.0 for ; Mon, 11 Jul 2016 15:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Od+RqIQb1KkgJu2BNtlkZPoUnKR1ePIutLmMeP5qTqI=; b=f/eq8l5gygieGRlvKRjMQQZGUeisVUHXgI8sC9NnFJFTX6m+eRREG0z81NLTy3gaKD RHv4T2R5y1EtHTb8AQin2fj3oxZuVrdVLV0+TjmvTOEymW2pvraQ1680jAnE0eKZsHMb kwQy+dL195snwtTcvefJ4JdpMZMaY5IkrLBaDpL+rg/XaZtFxBs2BmcLVHnPDngF8Vv7 lO8L3AC1e+BgH6tIC4OIvFusIREwefl/hZVFzE0dS6xrOHO0hYKkEYaAHYz5+7ykuM30 RTXH78sjL0dp19JKCBL25LRbn8WVy8jrTzv2iID1ZJd15s5dXpXbn+a6a12ICut1uP0g wqWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Od+RqIQb1KkgJu2BNtlkZPoUnKR1ePIutLmMeP5qTqI=; b=mEnKr9ESljB7rdad7g8dcEBLhaOtN1XvMOE+3BqXa6YHHZ7G+3Hl2cdGYzzYyPUUmJ oVw8407JJmxIhLYkr1lz46TEN35dw+XC2wQU+pMy0kwfurhFxnHHzSOwNV6brjroTIre HTwmtNBFk8qZSUuEfJPl5tUoGSNDYSvCoUwVgjNl3JQdKUgdDQ6px7J6eCTLCMYSyhEn qSWHLZNVjVFL43qL915q+4m0bT/XDJneGwJP9coVzEva7zAkHaplYeqbR75NayE7ytsI UPtGVR3fY2QRUHqaSi2vTXhKvafkvsfw4n35K6B00BMtu5X1Zj71CQSm4reipkSqOd9K yE3w== X-Gm-Message-State: ALyK8tI5S/2arYawTkUAN/nWr4j/WLY25ehJwWHi0XMd1y8q20L2MGViNvr5414K7V6Y7Q== X-Received: by 10.194.161.4 with SMTP id xo4mr1986012wjb.157.1468277070496; Mon, 11 Jul 2016 15:44:30 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id w7sm1937432wjh.35.2016.07.11.15.44.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2016 15:44:29 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Thunderbird/47.0 In-Reply-To: <20160711172016.GA1801@acm.fritz.box> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 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:205563 Archived-At: Hi Alan, On 07/11/2016 08:20 PM, Alan Mackenzie wrote: > Yes. Thank you for finding these glitches, and sorry I've not been more > careful to find them myself. Please try out the following patch (as a > supplement to the last one, not a replacement): It seems to do it, thanks. If I find any further problems, I'll send them to the bug tracker. > Optimisation does make code more complicated. My feeling is that raw > strings of length 1Mbyte are going to be quite rare, and that I should > wait for somebody to complain, first. Naturally, but a code reorganization can both improve performance and reduce the complexity, or at least keep it on the same level. I'm repeating myself, but in ruby-mode I can have a 1Mbyte long heredoc (or a percent literal, which is like a C++ raw string, but with more features), and edit either of its bounds with much better latency. Anyway, this subject seems exhausted. Thanks for the discussion.