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: Wed, 29 Jun 2016 03:30:27 +0300 Message-ID: <7762a6a6-9554-945d-cc5a-4a14157eaeb0@yandex.ru> References: <20160620105850.GB3166@acm.fritz.box> <23d7473e-50da-b6dc-17a7-1fec4aad6bfa@yandex.ru> <20160620152535.GB2192@acm.fritz.box> <076b7311-ad16-4913-b0ec-fc73ea4550a1@yandex.ru> <20160620181218.GC2192@acm.fritz.box> <20160620200830.GE2192@acm.fritz.box> <18697155-06d3-2191-6a6b-3ea58e8d17cb@yandex.ru> <20160621144047.GB3177@acm.fritz.box> <20160623163021.GA4946@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 1467160254 27639 80.91.229.3 (29 Jun 2016 00:30:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2016 00:30:54 +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 Wed Jun 29 02:30:49 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 1bI3Ox-0002jo-L8 for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2016 02:30:47 +0200 Original-Received: from localhost ([::1]:40463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI3Ot-0008Vk-HS for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 20:30:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI3Om-0008VO-OX for emacs-devel@gnu.org; Tue, 28 Jun 2016 20:30:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bI3Og-0001D6-OK for emacs-devel@gnu.org; Tue, 28 Jun 2016 20:30:35 -0400 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:34949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bI3Og-0001Cy-GO for emacs-devel@gnu.org; Tue, 28 Jun 2016 20:30:30 -0400 Original-Received: by mail-wm0-x22a.google.com with SMTP id v199so159699366wmv.0 for ; Tue, 28 Jun 2016 17:30:30 -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=1/SLHrFL5NTTiO+wYcACzwKokYDRQGMY9kXDrbdy2KE=; b=d2kbBl7oJysrBAuJrbqzaAZ1nibu2z7evFgSAZfL+2u+H259cYjosOAIZB3MvTQNeP Z+nEDdcB2zlWlqWW+f3XZvRWdQxifNTtr9ytsGSFIg+TkdvT7T61KRdLK75rbL3uigID qWgwcdLLB6TU2q0pECNyhR2t3DzPtWXoMDlEmcqzBIds2BH0Rn5D9bd8RsINznlpqs1G U9kIJpmhgA7/r6VNLNOJKyrKVxHflEALujNDVwa3fKF3awkqItN6GabwvMzughjB+0g8 NmNyf1zxtpU/p19T9ONHMHVcmsO6ENBych05LS9k+SAzYycVw5ZTZpPtt1cQlDYwVQDp SCGw== 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=1/SLHrFL5NTTiO+wYcACzwKokYDRQGMY9kXDrbdy2KE=; b=glq8QMFyHrpIzASE0hPJ9YvDlTeo9JRSt6no01Z7zbthp6fPqzGWZDgHHgjXOmGjZ6 a9dUxufVEtxqGfmSEAPbtBzkPUMx7SIVLFni/POcXHXSIpFa4XUcBNTaPhDYvZpXKlk0 TYia664TmdllpV4XGtQBX9vzOEkfjtP+bRpJGjJFLsxRXoaiqxFYaI5+jdd4gDsvoD2f p95amqfKUQjKGqFUH19qzX2oBPqSdZwgMmEmI1PNlpooOadrY4JfyQa+fTYK4/He/aPS 2Ok3UX/chOkwnGoO4bzSvEgXQi7exAIswtSIdZ3Az2/u+ULv9VEJ57swed26Vr5thXrQ A+Xg== X-Gm-Message-State: ALyK8tLKfhWXZqn6fV+Yg7GE1LQKPEH8qiobni9r/ZTvpZKZ3fACeGM6chVuX4d6CeydNw== X-Received: by 10.194.153.98 with SMTP id vf2mr5416875wjb.72.1467160229501; Tue, 28 Jun 2016 17:30:29 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id x194sm4568303wmf.13.2016.06.28.17.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 17:30:28 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Thunderbird/47.0 In-Reply-To: <20160623163021.GA4946@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::22a 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:204908 Archived-At: On 06/23/2016 07:30 PM, Alan Mackenzie wrote: > 1)... There were two functions in cc-fonts.el that were using > (point-max) as a limit for something, when they should have been using, > respectively, (min limit (point-max)), and limit. A bit of playing > around suggests there is more to fix, there. So now the raw strings are properly using limits? Does that mean there is a limit on the length of a raw string that CC Mode supports? (Testing indicates so). Maybe it's not too terrible, but, depending on the limit's value, it could be a problem in certain specialized files (e.g. in a game sources where the author decided to keep some art assets in the code, or in some test files). Anyway, that's the performance-vs-correctness tradeoff I've mentioned earlier. Using syntax-propertize-function, I've never seen the necessity to make that choice, so far. And Ruby has several counterparts to C++'s raw strings, all with irregular syntax. > 2) ... This was caused by a low level function failing to do > (save-match-data ...) around a (looking-at ....) with the result that > the match-data was corrupted for the higher level function. That bug's > been there for some while. That works now, thanks.