From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: Bug #25608 and the comment-cache branch Date: Sun, 12 Feb 2017 16:20:21 +0800 Message-ID: References: <20170202202418.GA2505@acm> <83lgtouxpf.fsf@gnu.org> <20170202215154.GB2505@acm> <83h94bvhzw.fsf@gnu.org> <20170203172952.GC2250@acm> <0a40d539-b7bc-2655-5429-6280022106ee@yandex.ru> <20170204102410.GA2047@acm> <8f9e68fc-4314-625d-b4bf-796c71c91798@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d092aab093c054851001d X-Trace: blaine.gmane.org 1486887675 20386 195.159.176.226 (12 Feb 2017 08:21:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 08:21:15 +0000 (UTC) To: emacs-devel , Alan Mackenzie , Dmitry Gutov , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 09:21:09 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 1ccpPA-0004nF-Ub for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 09:21:09 +0100 Original-Received: from localhost ([::1]:51116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccpPE-0003OC-Qo for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 03:21:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccpOW-0003Jh-0G for emacs-devel@gnu.org; Sun, 12 Feb 2017 03:20:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccpOU-0004r6-PB for emacs-devel@gnu.org; Sun, 12 Feb 2017 03:20:27 -0500 Original-Received: from mail-ua0-x22d.google.com ([2607:f8b0:400c:c08::22d]:34444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccpOU-0004qC-Jg; Sun, 12 Feb 2017 03:20:26 -0500 Original-Received: by mail-ua0-x22d.google.com with SMTP id 35so51297724uak.1; Sun, 12 Feb 2017 00:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vZIWN5d9akWzXTh+WIxQaciP91ES5OwXQxSA51Nld/c=; b=FkLNE1us2iwfDpfwv3ZCpxZeZ+Ojc2ME7SZys6e53yeBYCvvQQQZ02WnLgJUiwO0Pb XsNlIKC9Spz224iMD71UtVcmIi55XVjpW/A/s8C2Bif+saHy9s2QL5zF+7ztm2dRkwha 6Q0p6TBfXYYf/XobFvvYgj1I3HWPMMUrBhNuKnJmwUT+aJnnAf8dFbf1Zr4mBL6byCvM +kWfvFVjgDwP5s/eXEulW1lVVwJjxgpunUg/obd4IqEQ2ob+XtfFPbIgk7OWNLtxVA5O vKbDH/a9XOSU+mWalrb11ud28Mg8NxG2Ra7WnnCLKSHJ3/Xj6dEA0zcclTqtjf020CXI t42A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vZIWN5d9akWzXTh+WIxQaciP91ES5OwXQxSA51Nld/c=; b=ltrsloU4ML4HXxaxbakrnHv/54k6WlEvWf24qFgIsMe+nkdbTD5p36Rvt542BXEmAg Nb32z8kzmuoZKdNwwHWbUbgqmBHT68xmN8/BbDCxwmEUpTXVfcPklsi4eXLEzHwAHrtH kZlERT+raLEL+KQWHoLtX0F150yIjG737d7nfnAM1A7FIKycp1o2MmIL9eDMyv+/mgrg MCbEUZjmMkSRYG30v6KbHBGc24w+p0NQlDGJsVDDnls2kYHetFYjgZbMzGcoVloO88rt tzH8nFnWPANsrdEnN0KTpYeyZkwyGQD0VIdtTNWcSghrCmB2w477zuR3d4Kedt5NU+6h 5OZA== X-Gm-Message-State: AMke39nMAsJtPjdds+C73T+vU7Qk3JVye5ZodGj+VO0iskEFHHddGEbXA+cAqC9uQX6QJzrQL2NeEXM9UUccoA== X-Received: by 10.159.36.112 with SMTP id 103mr8898657uaq.76.1486887624311; Sun, 12 Feb 2017 00:20:24 -0800 (PST) Original-Received: by 10.103.131.215 with HTTP; Sun, 12 Feb 2017 00:20:21 -0800 (PST) Original-Received: by 10.103.131.215 with HTTP; Sun, 12 Feb 2017 00:20:21 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::22d 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:212267 Archived-At: --001a113d092aab093c054851001d Content-Type: text/plain; charset=UTF-8 On 12 Feb 2017 10:55, "John Wiegley" wrote: This argument right here is why I would vote against comment-cache: I'd rather have parens-in-comments-at-column-0 parsed incorrectly -- at least, until syntax-ppss is fixed -- than to add another cache just to fix this problem. Unless I've missed something... I'm sorry for butting in on this discussion, but I've been following it with great interest. During the course of this thread, it has been mentioned that merging comment-cache would create two different systems: the new one used to track comments, and syntax-ppss for everything else. Is there a technical reason why this isn't being considered? >From what I've understood, the way comment-cache solves the problem is clearly superior so I'm wondering why, when it was implemented, it was restricted to tracking comments only. Wouldn't this mechanism be useful as a complete replacement for the current implementation of syntax-ppss. It seems as though Stefan is also thinking along those lines? --001a113d092aab093c054851001d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 12 Feb 2017 10:55, "John Wiegley" <jwiegley@gmail.com> wrote:
<= blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc = solid;padding-left:1ex">
This argument right here is why I would vote against comment-cache: I'd= rather
have parens-in-comments-at-column-0 parsed incorrectly -- at least, until syntax-ppss is fixed -- than to add another cache just to fix this problem.=
Unless I've missed something...

I'm sorry for butting in on this = discussion, but I've been following it with great interest.=C2=A0
=

During the course of this thr= ead, it has been mentioned that merging comment-cache would create two diff= erent systems: the new one used to track comments, and syntax-ppss for ever= ything else. Is there a technical reason why this isn't being considere= d?=C2=A0



From what I've understood, the= way comment-cache solves the problem is clearly superior so I'm wonder= ing why, when it was implemented, it was restricted to tracking comments on= ly. Wouldn't this mechanism be useful as a complete replacement for the= current implementation of syntax-ppss.=C2=A0

It seems as though Stefan is also thinking along thos= e lines?=C2=A0

--001a113d092aab093c054851001d--