From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#21343: 24.5; parse-partial-sexp mistakes string for a comment Date: Wed, 26 Aug 2015 13:27:26 +0200 Message-ID: <87pp2awaqp.fsf@gmail.com> References: <87lhczjyx5.fsf@gmail.com> <55DCA9C7.7070609@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440588464 3825 80.91.229.3 (26 Aug 2015 11:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 11:27:44 +0000 (UTC) Cc: 21343@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 13:27:33 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 1ZUYrc-0000B3-7k for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 13:27:32 +0200 Original-Received: from localhost ([::1]:37560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYrb-0004IN-Jd for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 07:27:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYrC-0003rX-Sp for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 07:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUYr8-00046n-SN for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 07:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYr8-00046i-PF for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 07:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUYr8-0008TJ-Dw for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 07:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 11:27: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.144058840532540 (code B ref 21343); Wed, 26 Aug 2015 11:27:02 +0000 Original-Received: (at 21343) by debbugs.gnu.org; 26 Aug 2015 11:26:45 +0000 Original-Received: from localhost ([127.0.0.1]:38594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUYqr-0008Sm-Aw for submit@debbugs.gnu.org; Wed, 26 Aug 2015 07:26:45 -0400 Original-Received: from mail-wi0-f170.google.com ([209.85.212.170]:33183) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUYqp-0008Sd-4j for 21343@debbugs.gnu.org; Wed, 26 Aug 2015 07:26:43 -0400 Original-Received: by wijn1 with SMTP id n1so21055363wij.0 for <21343@debbugs.gnu.org>; Wed, 26 Aug 2015 04:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=+qYWYITMdWbzYfbNOoKiiTuzzCn30RaO+/k6hHrXpHA=; b=MCtnaV6DwYPxj9SqomdpL9iPDWueK9+omISGqSxZK0ecW7dfZhJK+NFe1pS/WD7Huy XwhvW7E4HIGia1Hp9ER7A5Lk+4KxClXoRHtMj9kH+tNaFwYzSma/6FbuUOturrp09k9F 3co3/k5pnFdxJ6PRyINAXKSBICJiqJlYF6gCHjpE4R0GU063ncY6diWxX3k3mNCwgZmW w7dW4bzJW/oagt7lXQq+7Sqi9pb9wGILxjvL3mTBE6br/flRQQEvOBt4+OozWOUTzlTg 0Hf4DIEbVWavogWLQrY1tHsgKt4BUoQKPswRlce9XVIQ7tk8YnXVSC1Zd931qZPmCPoi Ogvw== X-Received: by 10.194.190.79 with SMTP id go15mr55803286wjc.80.1440588402565; Wed, 26 Aug 2015 04:26:42 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id y13sm3380671wjq.26.2015.08.26.04.26.41 (version=TLS1_2 cipher=AES128-SHA256 bits=128/128); Wed, 26 Aug 2015 04:26:41 -0700 (PDT) In-Reply-To: <55DCA9C7.7070609@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Tue, 25 Aug 2015 19:45:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) 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:105831 Archived-At: Andreas R=C3=B6hler 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.