From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Daboul Newsgroups: gmane.emacs.bugs Subject: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Mon, 20 Oct 2014 19:13:00 +0300 Message-ID: References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfcf0104ea3010505dcfeb5 X-Trace: ger.gmane.org 1413821674 25410 80.91.229.3 (20 Oct 2014 16:14:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2014 16:14:34 +0000 (UTC) Cc: Alexis , 18756@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 18:14:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgFb8-0007kg-NU for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2014 18:14:18 +0200 Original-Received: from localhost ([::1]:45804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgFb8-0004ld-99 for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2014 12:14:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgFay-0004lM-Ry for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 12:14:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgFas-0001C4-LT for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 12:14:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgFas-0001C0-It for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 12:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XgFas-0007Nu-0i for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Daboul Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Oct 2014 16:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18756 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18756-submit@debbugs.gnu.org id=B18756.141382161028332 (code B ref 18756); Mon, 20 Oct 2014 16:14:01 +0000 Original-Received: (at 18756) by debbugs.gnu.org; 20 Oct 2014 16:13:30 +0000 Original-Received: from localhost ([127.0.0.1]:57441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgFaL-0007Mt-Jb for submit@debbugs.gnu.org; Mon, 20 Oct 2014 12:13:30 -0400 Original-Received: from mail-wg0-f52.google.com ([74.125.82.52]:40160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgFaJ-0007Mb-6p for 18756@debbugs.gnu.org; Mon, 20 Oct 2014 12:13:27 -0400 Original-Received: by mail-wg0-f52.google.com with SMTP id a1so5813496wgh.35 for <18756@debbugs.gnu.org>; Mon, 20 Oct 2014 09:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KWNWMVT/CEUVn4kgzbgVtC8o5EfmEi9WvBzfMh9N4HQ=; b=yQ/g/aZT1z+q2FRfhuWuhfS77j3/spjSYYoq/9Y0IUKEaFteJ1pv3o2SmKsyuDHzt3 H5HBaisOghwV9Qrz+ukZ6spQ2bM8x369hHH4R29+YkWsmZcH/A4p7l/WJNCV5NM5iRi1 IbDI12SwfrBwuoRBtN6cgg1rHwoZwSzWML3/ereMzbjCbZ02xXsx60MkEZdFR3hiN8B8 4+ECVmKR67bPPVa9blwexWbD4SGNSaOiIWZP95W0xC2lgXhU9hJL0R13Ieif7JO3awlD tiAvP2AnXKa85myTPcB84BC5nQ+m7ArsIkagm60DU5icJ/Kmt3Uasv6Amm64CYu95l9O G+Iw== X-Received: by 10.194.78.238 with SMTP id e14mr12573689wjx.106.1413821601061; Mon, 20 Oct 2014 09:13:21 -0700 (PDT) Original-Received: by 10.217.91.70 with HTTP; Mon, 20 Oct 2014 09:13:00 -0700 (PDT) In-Reply-To: <83zjcqbwed.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94831 --047d7bfcf0104ea3010505dcfeb5 Content-Type: text/plain; charset=UTF-8 On Mon, Oct 20, 2014 at 6:20 PM, Eli Zaretskii wrote: > Daniel, is it true that the problem exists in both GUI and text-mode > sessions? > Yes, that is true. Also, it is noticeable that a line is indented after I press return and then the point is aligned with the first character in the line above it (rather than just moving down). And I think we know that pressing enter usually causes a chain of events. Help tells me: RET (translated from ) runs the command newline, which is an interactive compiled Lisp function in `simple.el'. It is bound to RET. (newline &optional ARG INTERACTIVE) Insert a newline, and move to left margin of the new line if it's blank. If option `use-hard-newlines' is non-nil, the newline is marked with the text-property `hard'. With ARG, insert that many newlines. If `electric-indent-mode' is enabled, this indents the final new line that it adds, and reindents the preceding line. To just insert a newline, use M-x electric-indent-just-newline. Calls `auto-fill-function' if the current column number is greater than the value of `fill-column' and ARG is nil. A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'. I didn't mention it before, but there are modes that superficially seem to work OK, like for example c-mode and lisp-interaction-mode. --047d7bfcf0104ea3010505dcfeb5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Oct 20, 2014 at 6:20 PM, Eli Zaretskii=C2=A0 w= rote:
Daniel, is it true that the problem exists in both GUI and text-mode
sessions?

Yes, that is true.<= br>
Also, it is noticeable that a line = is indented after I press return
and th= en the point is aligned with the first character in the line above it
(rather than just moving down).

And I think we know that pressing enter usually= causes a chain of
events. Help tells me:

RET (translated from <return>) runs the command newline, wh= ich is an
interactive compiled Lisp function in `simple.el'.

= It is bound to RET.

(newline &optional ARG INTERACTIVE)

I= nsert a newline, and move to left margin of the new line if it's blank.=
If option `use-hard-newlines' is non-nil, the newline is marked wit= h the
text-property `hard'.
With ARG, insert that many newlines.<= br>
If `electric-indent-mode' is enabled, this indents the final new= line
that it adds, and reindents the preceding line.=C2=A0 To just inse= rt
a newline, use M-x electric-indent-just-newline.

Calls `auto-f= ill-function' if the current column number is greater
than the value= of `fill-column' and ARG is nil.
A non-nil INTERACTIVE argument mea= ns to run the `post-self-insert-hook'.

I didn't mentio= n it before, but there are modes that superficially seem
to work OK, li= ke for example c-mode and lisp-interaction-mode.
--047d7bfcf0104ea3010505dcfeb5--