From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24434: [25.1.1] parse-partial-sexp: opening delimiter missed Date: Wed, 14 Sep 2016 10:04:11 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473862242 18789 195.159.176.226 (14 Sep 2016 14:10:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 14:10:42 +0000 (UTC) Cc: 24434@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 Sep 14 16:10:32 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 1bkAt2-0001aT-TX for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 16:10:05 +0200 Original-Received: from localhost ([::1]:56284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkAsy-0007w7-1Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 10:10:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkAoF-0003sb-7p for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 10:05:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkAoA-0004lh-D5 for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 10:05:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkAoA-0004lW-AM for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 10:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkAoA-0004CA-4I for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2016 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24434 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24434-submit@debbugs.gnu.org id=B24434.147386187316087 (code B ref 24434); Wed, 14 Sep 2016 14:05:02 +0000 Original-Received: (at 24434) by debbugs.gnu.org; 14 Sep 2016 14:04:33 +0000 Original-Received: from localhost ([127.0.0.1]:59622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkAnd-0004BD-5V for submit@debbugs.gnu.org; Wed, 14 Sep 2016 10:04:33 -0400 Original-Received: from mail-oi0-f53.google.com ([209.85.218.53]:34564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkAnR-0004Aj-AY for 24434@debbugs.gnu.org; Wed, 14 Sep 2016 10:04:22 -0400 Original-Received: by mail-oi0-f53.google.com with SMTP id m11so22602597oif.1 for <24434@debbugs.gnu.org>; Wed, 14 Sep 2016 07:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=mdikKfIFdp2y74+SJeM+TaI2XTxY2yruX/4GU399jSQ=; b=yoJOeDQhzGi6D+Z2EVaY1HAA+hr4XyqTG/4Wct/zxAGaCyPbgvndBY2TKmQbQjZt4P ZdFxaLiXtft+AkiFvPmsKvc8BAC61tiTPXOLMzzNlfFTjBPOsyLi3ycsIB/RthZtUbB/ I3gDojKZtI0Qif0JjVHlfQycBX8xwRq+bPDWO0ncQf8JVErHvrKygLyWj0PSdPXutn2h iFxtciwvENAjntp2+Xy3XRvWa9viS4f6heTL8G0lb521lG2hH1rYHCIM9JA3PoYDFpCM wyuOj7fs3nlkgpUe+X8WajgxDWPGX6TpIkXz6P7P+ESzxUE3H9BAyR7YuwXLy0LsLkJF vctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=mdikKfIFdp2y74+SJeM+TaI2XTxY2yruX/4GU399jSQ=; b=G2u24iQNjG0kTQvMOukysHaHS00rfaU2i2U9yYdxV3nBAbZnBbcL+Qwz9Fr2QsApw+ OaIx68tQfsWG2aoT2JCZwQvj93Rn+T6TOkvOf5pL9EcMFSJQJII8L1RvgqZbXl4Uz7DS a6fKxWmi+ko0fPBYnktIWTWb9AKNB4r8GBGD6ecB1KW6mfDbuyXPDyKcIZ7uzwiGwbFh QnR+RkBvWlaXXgOgmN4MEpCa99Xff6hBLEp4DNDq46dD9puw+J9kJb6QXZ428tmfFIl9 XK9MCJ7kyVAAGee4ZXg4+cLWOuxH+Vi3twZuIaeGJN9TpUV0nwBlUelHDbFOnuQiQied 7tSw== X-Gm-Message-State: AE9vXwNvUo3oVeXYpO1zMSZ/39lA/LvQJr5Sz80w8Rk/bj9JQVidD/C1oH81fXe3NrKPcTUVkbtfx0DtBQEn+A== X-Received: by 10.157.43.109 with SMTP id f42mr2155657otd.77.1473861851722; Wed, 14 Sep 2016 07:04:11 -0700 (PDT) Original-Received: by 10.157.41.144 with HTTP; Wed, 14 Sep 2016 07:04:11 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: AtqNCV6WPlkf8391qCy25hJkBZI 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:123288 Archived-At: tag 24434 moreinfo quit On Wed, Sep 14, 2016 at 5:46 AM, Andreas R=C3=B6hler wrote: > python-mode, problem seems not restricted to. > > When after curly bracket in example below from > https://docs.python.org/3/library/string.html#formatstrings > 6.1.3. Format String Syntax: > > str.format("Bring me a { > > depth-in-paren. i.e. > > (nth 0 (parse-partial-sexp ...)) This bug report is a bit incomplete, what do you put for "..."? > > should indicate "2", but says "1". > > When outside a string, `{' is recognized as opener. I think this is correct, parse-partial-sexp detects whether it's in a string-literal or not. If you want to parse the contents of the string literal, FROM should be inside the literal.