From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#21343: 24.5; parse-partial-sexp mistakes string for a comment Date: Wed, 26 Aug 2015 16:52:41 +0200 Message-ID: <55DDD2B9.1010001@easy-emacs.de> References: <87lhczjyx5.fsf@gmail.com> <55DCA9C7.7070609@easy-emacs.de> <87pp2awaqp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1440600809 16242 80.91.229.3 (26 Aug 2015 14:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 14:53:29 +0000 (UTC) Cc: 21343@debbugs.gnu.org To: Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 16:53:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZUc4g-00037W-Fj for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 16:53:14 +0200 Original-Received: from localhost ([::1]:38597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUc4f-0005mL-MF for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 10:53:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUc4X-0005fU-Qc for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 10:53:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUc4U-0004HE-Jb for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 10:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUc4U-0004H6-Hb for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 10:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUc4U-0006HB-2m for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 10:53:02 -0400 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, 26 Aug 2015 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21343-submit@debbugs.gnu.org id=B21343.144060077624114 (code B ref 21343); Wed, 26 Aug 2015 14:53:02 +0000 Original-Received: (at 21343) by debbugs.gnu.org; 26 Aug 2015 14:52:56 +0000 Original-Received: from localhost ([127.0.0.1]:38884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUc4N-0006Gr-Gp for submit@debbugs.gnu.org; Wed, 26 Aug 2015 10:52:55 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.130]:56549) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUc4M-0006Gk-9F for 21343@debbugs.gnu.org; Wed, 26 Aug 2015 10:52:54 -0400 Original-Received: from [192.168.178.31] ([77.6.218.200]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MUxEy-1ZE4jZ0XKW-00YBJQ; Wed, 26 Aug 2015 16:52:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87pp2awaqp.fsf@gmail.com> X-Provags-ID: V03:K0:by4s7QgHnt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/EPe7rC6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105834 Archived-At: Am 26.08.2015 um 13:27 schrieb Oleh Krehel: > Andreas Röhler writes: > >> Am 25.08.2015 um 15:11 schrieb Oleh Krehel: >>> To reproduce, paste this code into *scratch*, "|" is the point: >>> >>> ("|foo" >>> ";; (bar)") >>> >>> M-x indent-sexp will result in " ;" being inserted after the sexp. >>> >>> This is because `parse-partial-sexp' for the second line detects a >>> comment at one stage. >> Can't reproduce with GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ >> Version 2.24.23) of 2015-08-10 >> >> TAB indents nicely both lines, detects inside string when cursor at >> bar. > This is reproducible with "emacs -Q" on both 25 and 24.5.2. You need to > not press "TAB", but "M-x indent-sexp" from the specified point > position. > > `parse-partial-sexp' will detect comment on line 2 only when called in a > sequence that `indent-sexp' calls it, i.e. with the previous pps data > passed to the second pps call. Okay, see the bug now, thanks.