bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21343: 24.5; parse-partial-sexp mistakes string for a comment


From: Andreas Röhler
Subject: bug#21343: 24.5; parse-partial-sexp mistakes string for a comment
Date: Tue, 25 Aug 2015 19:45:43 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]