From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.devel Subject: Re: Problems with syntax-ppss: Was [... Apply `comment-depth' text properties when calling `back_comment'.] Date: Fri, 11 Mar 2016 08:27:17 +0100 Message-ID: <56E27355.4000707@online.de> References: <20160308183010.GB6269@acm.fritz.box> <20160308200753.GC6269@acm.fritz.box> <20160309104900.GA3948@acm.fritz.box> <20160309141930.GC3948@acm.fritz.box> <20160309193758.GH3948@acm.fritz.box> <20160310130156.GA4831@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 1457681200 21177 80.91.229.3 (11 Mar 2016 07:26:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 07:26:40 +0000 (UTC) Cc: Alan Mackenzie To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 11 08:26:28 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 1aeHSt-0001y5-2J for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2016 08:26:27 +0100 Original-Received: from localhost ([::1]:53172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeHSs-0006hq-G6 for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2016 02:26:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeHSZ-0006d9-Pf for emacs-devel@gnu.org; Fri, 11 Mar 2016 02:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeHSU-0006eY-Kl for emacs-devel@gnu.org; Fri, 11 Mar 2016 02:26:07 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.10]:53835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeHSU-0006eC-C2 for emacs-devel@gnu.org; Fri, 11 Mar 2016 02:26:02 -0500 Original-Received: from [192.168.178.35] ([77.6.176.232]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0M2M3o-1ZoeqA1FMy-00s7uK; Fri, 11 Mar 2016 08:25:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0 In-Reply-To: <20160310130156.GA4831@acm.fritz.box> X-Provags-ID: V03:K0:hHPHJbakVnTHEkvbpJROnVErdSg/8F7SLnhR5fl6kfm6fwOplVb ARfqbY8hCE4jzDDWvXysuOmyN/8pSLjgEnUP+O9qCHvXCG+d79wYkMpKSguAF3nygriBLGq WfO5z+M0WNH9MBAmjfLHI5ARsmJnQ7VI+cDExdMqNBZoyrABoN0DWhE3DS8vAJZQMiCdZpm njrR/z4vj82wfsSRYBUmg== X-UI-Out-Filterresults: notjunk:1;V01:K0:r0X2SQgrw5Y=:SBXi1TnxoWSYf80eF7H4w7 /I/q0OQhImRkUk4VpgmxciaFj6IY3a6X6i+boWkBAysn1gQF6Zg3XE8y3qhaC9lNX0vY5XgUl diVumJF0W+QWFgV4v4xTDV/3kCuMY+4NAdVi/krhDYDc7W++tZoPqHNGADq+t7PuYgaw7UxWT b1BIoiOpUmYVvYZYGI3kSyl08H42jz++7VJplAvLuVlM/0gxngztHwHemcESutpcsjj2GLUB6 tBSC1sJeO/ss1k89AkkcPHx1N705HwgQYViy8qXkoG997dnNuFPGtS92NyGTD4dRMmzQEH1IA qdUTFEUcjI7+GLRoF8pHaI02WDHhFugmGikBfodNOMYcvacOQHh2UVlMalz3aBWCNKnjUoYlH pIiLnGCQMqaXzWSXO+sQzX8CkiqHzG5gtO36vFap9BbJQi29l73niJVuVPKLDbQ0q7NPN0aLR sFDUdpArqNwqUb3UbcsC2dl19CI8F3SxUOcQyxfEEgTuBV6GxBYJQQA6wq8uYWrGXaqZ/fwXJ C56TCpBu6iIngYWOu4huo5/lLT4CkNujZk5P1WkY11SZOxnZJdldt5cb+zknqvADcOyQhhSpX WTo8LPZLDNeLD5nqLOJ6jg7lnsLZhdYzmCsV/3ITwWFO8EhVS50oBtGSgiA8xOUXfXSkAtEv0 KloTKcL+HsRHL2XjP/8t3dO2F+ZDgWvfeTIB4Gkqf+DoD1yFpVBmAHBBj6xqQYK3/JmfrnABS irk6KvMUgxSkInsP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.10 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:201447 Archived-At: On 10.03.2016 14:01, Alan Mackenzie wrote: > Hello, Stefan. > > On Wed, Mar 09, 2016 at 04:40:45PM -0500, Stefan Monnier wrote: >>>>>> ...., so if you have a problem with the implementation, fix it (or >>>>>> report it as a bug, at the very least) and everyone else will benefit. >>>>> Perhaps you could fix the problems I've identified here and in my last >>>>> email. >>>> Why would I bother, since I don't even know of any real use case where >>>> those problems are triggered? >>> OK, fine. So we go with my approach to back_comment, then? >> Why? > Well, given that syntax-ppss is not suitable for fixing back_comment, > the alternatives are not fixing it, substantially amending syntax-ppss, > using my new code, or fixing it some other way. I really think it > should be fixed. You don't want syntax-ppss to be changed. Do you have > an idea for an "other way"? > > There is neither a need nor a way to fix syntax-ppss : Determining syntax must check from beginning of buffer, as parse-partial-sexp does. parse-partial-sexp is in C, it's fast. Best, Andreas