From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#27692: 25.2; Indentation issue with strings in scheme mode Date: Fri, 14 Jul 2017 13:01:42 -0600 Message-ID: <87h8yekfl5.fsf@lylat> References: <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500058992 3020 195.159.176.226 (14 Jul 2017 19:03:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 19:03:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27692@debbugs.gnu.org To: Arun Isaac Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 14 21:03:07 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 1dW5rm-0000X9-TO for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 21:03:07 +0200 Original-Received: from localhost ([::1]:39520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW5rs-0007o5-9B for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 15:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW5rl-0007nl-KA for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 15:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dW5ri-00005S-I4 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 15:03:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dW5ri-00005I-Es for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 15:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dW5ri-0005oF-6W for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 15:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27692-submit@debbugs.gnu.org id=B27692.150005893422273 (code B ref 27692); Fri, 14 Jul 2017 19:03:02 +0000 Original-Received: (at 27692) by debbugs.gnu.org; 14 Jul 2017 19:02:14 +0000 Original-Received: from localhost ([127.0.0.1]:39310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW5qw-0005nA-B2 for submit@debbugs.gnu.org; Fri, 14 Jul 2017 15:02:14 -0400 Original-Received: from mail-io0-f175.google.com ([209.85.223.175]:34178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW5qv-0005mx-06 for 27692@debbugs.gnu.org; Fri, 14 Jul 2017 15:02:13 -0400 Original-Received: by mail-io0-f175.google.com with SMTP id r36so19130944ioi.1 for <27692@debbugs.gnu.org>; Fri, 14 Jul 2017 12:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zSU5pYJIkdyDZ/opPtYLPwIQyFk0a/SLuhpNT0Wgqf0=; b=kjlIAJ3iKwqULX8EVjn7KYTS88WH9b21wjs1uzEKgXbKdZ1lH0ADngjDn4boqS8LqH wPFzmEM7+x0CQh6HLXR7865tQHQXzd5jAPtqXdUaT+k45jyPTRzciclNm1rmbt423V8Z EGfHfFcn4FFZz3JzoarMMFbRGi6uudI/hFJgs/HDvWQujOXc9rAV/7lJmg+kaMbZV2U2 3PchAISk1IGLjeNppZavVIEa+sZuDzhZlIAy3UF7GQzP+bhO/199/GJv+1v98kMbzw/x HZcpNqBiTDPTdcEeWrhG693wavPcWlRq0eg3eRlBvgQZPEmwQBUUsa5ig21OgPwwjlrq PISQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zSU5pYJIkdyDZ/opPtYLPwIQyFk0a/SLuhpNT0Wgqf0=; b=NCpBvfzkn1FTMvYlvTcKpPiqhFbd1DzrJX8zqTOpdXmR3q7GyO0yU1hNpjD21Q4own rJN8bShawN+SOSav9nsd+Or9fZT9mqE0ZJvOS4IbNXV4n81uKNSuFizJRy9S+Sah7jPU 8BJzMFMgNsfTX9ukp1WVFoGvSDLW9gLn6PlPhjwxwt/3uAm0i+lsRHyPo5ppf4bYnXmD vOp+DvCBRb6RziPDfEGSjyzxhn9m0YYB2mGFHuhO9vy+CxVBHMU5Kzmnts4XLfOXN6Zd IQIhBcSG/vGVo8SopJiIjXx3iB36LLNztcSwSM8KmX8YnbOtp7Ns7oZi+2gcWfPAgUsz LsyQ== X-Gm-Message-State: AIVw113COg6j8pCwEpuj/lNJz2EDH8sibb6cY8UOF7SyQVPA5gg5LCFS a9JjUNMO4Gw6kPmA X-Received: by 10.107.153.140 with SMTP id b134mr10989065ioe.200.1500058926842; Fri, 14 Jul 2017 12:02:06 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id b185sm1719988itb.14.2017.07.14.12.02.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2017 12:02:05 -0700 (PDT) In-Reply-To: <5bd983d4.ADkAACRRmRwAAAAAAAAAAAPVV04AAAACwQwAAAAAAAW9WABZaM4W@mailjet.com> (Arun Isaac's message of "Fri, 14 Jul 2017 19:28:31 +0530") 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:134569 Archived-At: Arun Isaac 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?