all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 27692@debbugs.gnu.org
Subject: bug#27692: 25.2; Indentation issue with strings in scheme mode
Date: Fri, 14 Jul 2017 19:28:31 +0530	[thread overview]
Message-ID: <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com> (raw)


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





             reply	other threads:[~2017-07-14 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 13:58 Arun Isaac [this message]
2017-07-14 19:01 ` bug#27692: 25.2; Indentation issue with strings in scheme mode Alex
2017-07-17 12:17   ` Arun Isaac
2017-07-17 13:22     ` Noam Postavsky
2017-07-18 16:51       ` Arun Isaac

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com \
    --to=arunisaac@systemreboot.net \
    --cc=27692@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.