unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Daboul <danieldaboul@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alexis <flexibeast@gmail.com>, 18756@debbugs.gnu.org
Subject: bug#18756: 24.4; shell-script-mode does wrong indentation
Date: Mon, 20 Oct 2014 19:13:00 +0300	[thread overview]
Message-ID: <CAFj5VXHvnNpzmKFbr9K2dJ74XGguNas0vbc0WT9ZLqJSsjJ=rA@mail.gmail.com> (raw)
In-Reply-To: <83zjcqbwed.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

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 <return>) 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.

[-- Attachment #2: Type: text/html, Size: 1909 bytes --]

  reply	other threads:[~2014-10-20 16:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 19:36 bug#18756: 24.4; shell-script-mode does wrong indentation Daniel Daboul
2014-10-17 22:35 ` Glenn Morris
2014-10-18 18:49   ` Daniel Daboul
2014-10-19 17:37     ` Glenn Morris
2014-10-19 18:35       ` Daniel Daboul
2014-10-20  5:35         ` Glenn Morris
2014-10-20 13:59           ` Alexis
2014-10-20 15:20             ` Eli Zaretskii
2014-10-20 16:13               ` Daniel Daboul [this message]
2014-10-22  1:01                 ` Alexis
2014-10-22  3:22                   ` Stefan Monnier
2014-10-22  3:37                     ` Alexis
2014-10-22 13:04                       ` Stefan Monnier
2014-10-25 19:20                         ` Daniel Daboul
2014-10-26  2:43                           ` Stefan Monnier
2014-12-04  8:06 ` Gilles Pion
2014-12-04 14:43   ` Stefan Monnier
2014-12-22 20:34 ` bug#18756: Peter Oliver
2015-01-06 18:55   ` bug#18756: 24.4; shell-script-mode does wrong indentation Glenn Morris

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='CAFj5VXHvnNpzmKFbr9K2dJ74XGguNas0vbc0WT9ZLqJSsjJ=rA@mail.gmail.com' \
    --to=danieldaboul@gmail.com \
    --cc=18756@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=flexibeast@gmail.com \
    /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).