From: Oleh Krehel <ohwoeowho@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 21343@debbugs.gnu.org
Subject: bug#21343: 24.5; parse-partial-sexp mistakes string for a comment
Date: Wed, 26 Aug 2015 13:27:26 +0200 [thread overview]
Message-ID: <87pp2awaqp.fsf@gmail.com> (raw)
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")
Andreas Röhler <andreas.roehler@easy-emacs.de> 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.
next prev parent reply other threads:[~2015-08-26 11:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 13:11 bug#21343: 24.5; parse-partial-sexp mistakes string for a comment Oleh Krehel
2015-08-25 17:45 ` Andreas Röhler
2015-08-26 11:27 ` Oleh Krehel [this message]
2015-08-26 14:52 ` Andreas Röhler
2016-07-03 2:40 ` npostavs
2017-03-05 6:12 ` npostavs
2017-03-05 13:59 ` npostavs
2017-03-13 0:15 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pp2awaqp.fsf@gmail.com \
--to=ohwoeowho@gmail.com \
--cc=21343@debbugs.gnu.org \
--cc=andreas.roehler@easy-emacs.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).