unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27692: 25.2; Indentation issue with strings in scheme mode
@ 2017-07-14 13:58 Arun Isaac
  2017-07-14 19:01 ` Alex
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Isaac @ 2017-07-14 13:58 UTC (permalink / raw)
  To: 27692


I have the following text in an otherwise empty scheme mode buffer.

===file-begins-here===
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
(eiusmod tempor) incididunt ut labore et dolore (magna aliqua. Ut enim
ad)"
===file-ends-here===

I apply indent-region on the three lines, and they become:

===file-begins-here===
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
(eiusmod tempor) incididunt ut labore et dolore (magna aliqua. Ut enim
						       ad)"
===file-ends-here===

The parentheses in the string are wrongly indented as S-expressions.

However, if I have the following text in an otherwise empty scheme mode
buffer, indentation works correctly.

===file-begins-here===
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
incididunt ut labore et dolore (magna aliqua. Ut enim
ad)"
===file-ends-here===

Note that the only difference between the two text samples is the parentheses
around "eiusmod tempor". Also note that the buffer text is intended to be a
scheme string. So, the double quotes are part of the buffer text.

In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.15)
 of 2017-06-23





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-18 16:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-14 13:58 bug#27692: 25.2; Indentation issue with strings in scheme mode Arun Isaac
2017-07-14 19:01 ` Alex
2017-07-17 12:17   ` Arun Isaac
2017-07-17 13:22     ` Noam Postavsky
2017-07-18 16:51       ` Arun Isaac

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).