unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex <agrambot@gmail.com>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: 27692@debbugs.gnu.org
Subject: bug#27692: 25.2; Indentation issue with strings in scheme mode
Date: Fri, 14 Jul 2017 13:01:42 -0600	[thread overview]
Message-ID: <87h8yekfl5.fsf@lylat> (raw)
In-Reply-To: <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com> (Arun Isaac's message of "Fri, 14 Jul 2017 19:28:31 +0530")

Arun Isaac <arunisaac@systemreboot.net> writes:

> 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

I can also reproduce this with Emacs 25.2 in emacs-lisp-mode and
lisp-mode.

However, I can't reproduce this on an up-to-date master branch. Can you
confirm if it works correctly for you on the master branch?





  reply	other threads:[~2017-07-14 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 13:58 bug#27692: 25.2; Indentation issue with strings in scheme mode Arun Isaac
2017-07-14 19:01 ` Alex [this message]
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

  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=87h8yekfl5.fsf@lylat \
    --to=agrambot@gmail.com \
    --cc=27692@debbugs.gnu.org \
    --cc=arunisaac@systemreboot.net \
    /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).