From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jim Diamond <zlists@ns.sympatico.ca>
Cc: 9193@debbugs.gnu.org
Subject: bug#9193: 23.3; newline-and-indent broken in shell-script (sh mode)
Date: Tue, 02 Aug 2011 21:46:53 -0400 [thread overview]
Message-ID: <jwv1ux3xo8y.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8762mm5rf5.fsf@jdiamond-nb2.acadiau.ca> (Jim Diamond's message of "Thu, 28 Jul 2011 12:57:34 -0300")
> #! /bin/sh
> if [ $a == $b ]
> then
> echo newline-and-indent is OK here
> echo "newline-and-indent is NOT OK here"
> fi
> Now, put the cursor at the end of the first "echo" line and type ^J
> (bound to newline-and-indent). As expected, it does a
> newline-and-indent. Now put the cursor at the end of the second "echo"
> line and type ^J. It does the newline, but not the indent.
> [ Other possibly completely irrelevant information:
> Playing around a bit, I found that if I create my own function and
> instead of using (newline-and-indent) I use
> (newline)
> (sit-for .001)
> (indent-according-to-mode)
> then calling that function Does The Right Thing.
> ]
FWIW it seems to be fixed in the trunk (i.e. in the upcoming Emacs-24).
Could you try it out to confirm it fixes your problems?
Stefan
next prev parent reply other threads:[~2011-08-03 1:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 15:57 bug#9193: 23.3; newline-and-indent broken in shell-script (sh mode) Jim Diamond
2011-07-28 19:22 ` zlists
2011-07-29 4:04 ` Leo
2011-08-03 1:46 ` Stefan Monnier [this message]
[not found] ` <mailman.735.1312336055.939.bug-gnu-emacs@gnu.org>
2011-08-05 1:28 ` Jim Diamond
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1ux3xo8y.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=9193@debbugs.gnu.org \
--cc=zlists@ns.sympatico.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.