From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#24870: 26.0.50; parse-partial-sexp ignores comment-end Date: Wed, 30 Nov 2016 13:37:06 +0100 Message-ID: References: <7cb86247-1e30-f029-0b9b-c53cc096ec4b@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------588C47EDB22CB718449476F4" X-Trace: blaine.gmane.org 1480508959 2932 195.159.176.226 (30 Nov 2016 12:29:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2016 12:29:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 Cc: 24870@debbugs.gnu.org To: Matt Armstrong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 13:29:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cC40e-0007s2-Nt for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 13:29:12 +0100 Original-Received: from localhost ([::1]:43547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC40f-0007kz-EZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 07:29:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC40X-0007js-3E for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:29:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC40U-0003Mj-EY for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:29:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cC40U-0003MZ-6Q for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cC40U-0003PX-0c for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2016 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24870 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 24870-submit@debbugs.gnu.org id=B24870.148050889713058 (code B ref 24870); Wed, 30 Nov 2016 12:29:01 +0000 Original-Received: (at 24870) by debbugs.gnu.org; 30 Nov 2016 12:28:17 +0000 Original-Received: from localhost ([127.0.0.1]:47039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC3zk-0003OY-T3 for submit@debbugs.gnu.org; Wed, 30 Nov 2016 07:28:17 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.75]:64151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC3zi-0003OJ-MD for 24870@debbugs.gnu.org; Wed, 30 Nov 2016 07:28:15 -0500 Original-Received: from [192.168.178.35] ([77.12.119.56]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M6xID-1cxRLO0lPB-00wmH6; Wed, 30 Nov 2016 13:28:07 +0100 In-Reply-To: X-Provags-ID: V03:K0:zo3zyJmIXEbmJ5XrIg86R1SThy1EhQB2n4hoa9SuGUpX/lDKUvl pROQ8iqMIU7UaBxes6aC/AymrR46cjbQSJvvZi2/YbBn1K5yD1V53av+yQKp+EoDMxwRzOo RZ8e8p5gT6O4nyW9uJY9EzCDS8G5JuPlHhXDGZ6lTdx92RC7MyS8TChKGGp/4+dR5cSfiaS B8swiYW8Zo2SFTqDg3jeA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Vp14YC/9AAs=:lh+fCNjSuviGdm8hgkn0ET T6QV06ZPG51FexropWlJ+c028WoBBytuvPvBH5St68cFr26PPbfZTmEDRqg1PNFxWURGwmjdy fx0tD035Y5ZTW3zKuNEFUwaECgh4UyiLI/L+tW1BtJ5WDPqnVOrmfvV/u6jhscTcdWChIOJHR 2DxHdjpvHSncc3yO3Q1Qu4xI51wUXsbJ3mF1zGHtPO3pZNixLdKjTf5JKHOpwWEAahkKi4+08 AM0N+Og1pi3s0MU5jdOcWDh4Jq7lR8qXDzIDGxUwu1AUyzU9p2sI28uvM9bp5p52hSILtZ+y3 sZog78YBFPcm732G55CCxqLMpdFFwg6BbeCvQ6ELxe6pp38r1Fx+QqVis9krgUIozNEVwnL+h jFwCuQH708Nmcj8paBCUfJQNEmtaNmQh6S/V0jAFoR56DmQqNV8K2buDRbZtIJODdgP9AiC9i NK1EFNPXrexAiiVNi+UIhqthKhPgW9TIADYLaH8wraQROnFDCeZBbDscfT1ZhNXk/OZ//YrbE zWENCLzAnJdq+ut0diswGsqHCNhSSgPFS7BtrX7edfsBZD4YylfIhU0kb4npKcf9CaT0NReQU idyDfcR8OKQmys9lpUUR+23fi8W8bu9kQ94PJaWIQuD5jteveBr4Uox/ZcKnvAHXzuTaOh5wx AtYVpkk2vVnOp0C72ydCfizTBcZn+KgaPTDxM4fW4e1uQF9zgBWAYm4cT9bkgcjuT0d/TdrCe thEuwvJWC6+tNMvT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126302 Archived-At: This is a multi-part message in MIME format. --------------588C47EDB22CB718449476F4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 30.11.2016 10:10, Matt Armstrong wrote: > Andreas Röhler writes: >> haskell-mode, at EOB: --- {- To explore this file: -} asdf = --- >> parse-partial-sexp thinks being inside a paren - see attachment. GNU >> Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-10-11 > Hi Andreas, Emacs does not have a haskell-mode, so this bug is > difficult to reproduce. It may be more appropriate to report this to > the haskell-mode maintainers for triage. They can figure out if it is > a problem that should be fixed in haskell-mode itself, or a problem > with Emacs. Alternatively, can you provide a series of clear > instructions to reproduce the problem in a fresh Emacs started without > your customizations? For example, begin by running "emacs -Q" and go > from there. Your attached .png presents a buffer called > *parse-partial-sexp-output*, but it is not clear how this was > generated. Thanks Hi Matt, checked that with help of the haskell-mode folks already. https://github.com/haskell/haskell-mode/issues/1459 As it's nice at current pretest Emacs, concluded a bug in trunk. Here a shortened recipe. Put code below in a buffer: || |{- Just a comment: -}| M-x haskell-mode RET As after a comment, there should be no nesting. Than evaluate one of the forms below |(insert (format "%S" (syntax-ppss)))| |(insert (format "%S" (parse-partial-sexp (point-min) (point))))| Result both: (1 1 22 nil nil nil 0 nil nil (1) nil) GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-11-15 --------------588C47EDB22CB718449476F4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 30.11.2016 10:10, Matt Armstrong wrote:
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
haskell-mode, at EOB: --- {- To explore this file: -} asdf = --- parse-partial-sexp thinks being inside a paren - see attachment. GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-10-11
Hi Andreas, Emacs does not have a haskell-mode, so this bug is difficult to reproduce. It may be more appropriate to report this to the haskell-mode maintainers for triage. They can figure out if it is a problem that should be fixed in haskell-mode itself, or a problem with Emacs. Alternatively, can you provide a series of clear instructions to reproduce the problem in a fresh Emacs started without your customizations? For example, begin by running "emacs -Q" and go from there. Your attached .png presents a buffer called *parse-partial-sexp-output*, but it is not clear how this was generated. Thanks
Hi Matt,

checked that with help of the haskell-mode folks already.
https://github.com/haskell/haskell-mode/issues/1459

As it's nice at current pretest Emacs, concluded a bug in trunk.
Here a shortened recipe. Put code below in a buffer:

{- Just a comment: -}

M-x haskell-mode RET

As after a comment, there should be no nesting.
Than evaluate one of the forms below

(insert (format "%S" (syntax-ppss)))
(insert (format "%S" (parse-partial-sexp (point-min) (point))))

Result both: (1 1 22 nil nil nil 0 nil nil (1) nil)

GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-11-15
--------------588C47EDB22CB718449476F4--