From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arun Isaac Newsgroups: gmane.emacs.bugs Subject: bug#27692: 25.2; Indentation issue with strings in scheme mode Date: Fri, 14 Jul 2017 19:28:31 +0530 Message-ID: <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500041248 3523 195.159.176.226 (14 Jul 2017 14:07:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 14:07:28 +0000 (UTC) To: 27692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 14 16:07:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW1FT-0000KY-Q0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 16:07:15 +0200 Original-Received: from localhost ([::1]:38193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW1FZ-0007yH-6s for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 10:07:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW17b-0000Jn-7i for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dW17X-00056k-Bq for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dW17X-00056g-8e for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dW17X-0004xY-2M for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:59:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150004074219053 (code B ref -1); Fri, 14 Jul 2017 13:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2017 13:59:02 +0000 Original-Received: from localhost ([127.0.0.1]:39139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW17V-0004xC-UQ for submit@debbugs.gnu.org; Fri, 14 Jul 2017 09:59:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17U-0004wu-K1 for submit@debbugs.gnu.org; Fri, 14 Jul 2017 09:59:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17O-00054U-IQ for submit@debbugs.gnu.org; Fri, 14 Jul 2017 09:58:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17O-00054O-F1 for submit@debbugs.gnu.org; Fri, 14 Jul 2017 09:58:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17N-0008At-6Q for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:58:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17J-00053M-A2 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:58:53 -0400 Original-Received: from o118.p9.mailjet.com ([87.253.234.118]:39257) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@bnc3.mailjet.com>) id 1dW17J-00052s-1l for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 09:58:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; q=dns/txt; d=bnc3.mailjet.com; i=arunisaac=3Dsystemreboot.net@bnc3.mailjet.com; s=mailjet; h=message-id:mime-version:from:to:subject:date:list-unsubscribe:x-csa-complaints: x-mj-mid:content-type:content-transfer-encoding; bh=OeyTMM1Udjk1TOUyVYpNBTWg6RA=; b=FQLQSbSb1EU7ufIT7axIEJ9TLbmUSkquLNHiC2ycm5hL9D/ApPVtRF5dq /uL33+Dj5c97rt+ee4hVWwAuo9RPmaDWfmUARFle8GrwYHb1X2fqC9nvKJgD 9PzQn274p6eHYQLnalS1mQo5gQlz99dCLF2t2U0PHWlS7ewJNPDtG8= X-CSA-Complaints: whitelist-complaints@eco.de X-MJ-Mid: ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4WXz1EmzRpRLq8hfRj1HHm1wAFgUc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134559 Archived-At: I have the following text in an otherwise empty scheme mode buffer. =3D=3D=3Dfile-begins-here=3D=3D=3D "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do (eiusmod tempor) incididunt ut labore et dolore (magna aliqua. Ut enim ad)" =3D=3D=3Dfile-ends-here=3D=3D=3D I apply indent-region on the three lines, and they become: =3D=3D=3Dfile-begins-here=3D=3D=3D "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do (eiusmod tempor) incididunt ut labore et dolore (magna aliqua. Ut enim ad)" =3D=3D=3Dfile-ends-here=3D=3D=3D 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. =3D=3D=3Dfile-begins-here=3D=3D=3D "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do incididunt ut labore et dolore (magna aliqua. Ut enim ad)" =3D=3D=3Dfile-ends-here=3D=3D=3D Note that the only difference between the two text samples is the parenthes= es 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 =