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: Bug #22983 (syntax-ppss returns wrong result) is still open. Could we fix it before the release, please. Date: Wed, 8 Jun 2016 02:25:22 +0300 Message-ID: References: <20160607220928.GA5155@acm.fritz.box> <7eeaa57a-698d-bde0-d740-efa8968c7583@yandex.ru> <20160607224829.GC5155@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 1465341943 6385 80.91.229.3 (7 Jun 2016 23:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 23:25:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 08 01:25:36 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 1bAQNL-0000NN-Jv for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2016 01:25:36 +0200 Original-Received: from localhost ([::1]:53554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAQNK-0001fJ-Qq for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2016 19:25:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAQNF-0001fD-N9 for emacs-devel@gnu.org; Tue, 07 Jun 2016 19:25:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAQNB-0003DP-Fo for emacs-devel@gnu.org; Tue, 07 Jun 2016 19:25:28 -0400 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:35076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAQNB-0003CX-7b for emacs-devel@gnu.org; Tue, 07 Jun 2016 19:25:25 -0400 Original-Received: by mail-wm0-x22e.google.com with SMTP id v199so40057017wmv.0 for ; Tue, 07 Jun 2016 16:25:25 -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=l5tGFWBpbqlXOWDB+JZyL7e2UG71ekgdYUoOS1I+NSQ=; b=i2oBs5XvGTVk9HojkcjQaKjjDNh+jsN8p4RKkQYWF8/ITHdYpWLP0MfvekUqMFIbdx LlyJOAFuoIhPgZl/vbm/FToaGgl7+f51nDkKAu9WS5ml4PnPzDEfFrPiU3zFWcwVOXBa h1UrqPFUyreaa+SnmQeIsqWWuk6BHuStx4BLsfapasSkJKPaEPyaSJ9ChG49n/Ytr0cK DDZ1AhFXVOwjIpINx5t/PdGcLcTl8dIfRDhMP/SUgvj5hiENkpB96dl9cLAKSxbWz/Lj gxxuC42bBPmgiaU24XmfsH4LP8NlM4Jp/gVmpwyJxbIXds+4vnFOrRDfh0bXKynHfeGF hRDQ== 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=l5tGFWBpbqlXOWDB+JZyL7e2UG71ekgdYUoOS1I+NSQ=; b=h8gbttjRu9HjR55nUcL8ZtskOF2hQYYN7xbqFy8HbcvbhwFqkrSphxaF0ru8QNHXtg POBCKuwOPcfsIbxuMiiyUsPRUZagGiHiSkigfqJDcYJQsNb2lIySzbeVBtOxCFcH0mwi zjCZu/SNv90iQ7yX1q1cNikMYcmmSZRUp61yJJCrv3M309kI/7YJQeYBx/xCwgRDs7kA BF4adKATKVEhjmSZkfUXVR0QFy1ewJIJbeviOyC17mKG5FcBn7G5QJfGU87IrJFLbC8n 1zShd7+0pZMHg4oio+Gep52X6I5gxL9S+ZlJCTHe7bQyD2yjr/PhT+UkrQ7g6V0m8X5R L88g== X-Gm-Message-State: ALyK8tLdCcaun+KuxY1v+YBonaDQ2wGzgu5BgmgyO7rhxT3At5pAih1tv//r64et8SUPJw== X-Received: by 10.28.107.67 with SMTP id g64mr4575035wmc.65.1465341924480; Tue, 07 Jun 2016 16:25:24 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.173.135]) by smtp.googlemail.com with ESMTPSA id dj4sm27628309wjc.13.2016.06.07.16.25.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Jun 2016 16:25:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 In-Reply-To: <20160607224829.GC5155@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::22e 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:204231 Archived-At: On 06/08/2016 01:48 AM, Alan Mackenzie wrote: > I think I'd be happy enough about it being fixed in master, if the fix > happens before the release. :-). The trouble is, if there's no > deadline, it'll never get fixed. Why before the release in particular? If you're interested in having it fixed sooner, please look into helping Vitalie in http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00850.html. With hard-widen, maybe we won't need syntax-ppss-dont-widen after all. > Yes, I think having the binary toggle `syntax-ppss-dont-widen' purely to > direct the innards of the function is poor programming (since it > explicitly toggles a toggle inside a supposedly abstract function). Abstract? > I > think an improvement would be to dispense with that toggle, and have two > distinct functions, one in place of `syntax-ppss-dont-widen' being nil, > and the other in place of `s-p-d-w' being non-nil. The latter function > might usefully have an extra parameter specifying the base point that > parse-partial-sexp should be calculated from. That would leave quite a > few options open for the internal logic of the function. That wouldn't help in the multi-mode case, which is the primary use I have in mind for syntax-ppss-dont-widen.