unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: sh-basic-offset help?
Date: Thu, 06 Oct 2005 00:01:44 -0400	[thread overview]
Message-ID: <87psqjs3cn.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: slrndk8s3f.j8l.oudeis@isis.thalatta

> I've tried to find a solution to this and failed.  I've been looking
> for some sort of response to this, but none has appeared.  My sole 
> purpose in responding is to indicate that more than one person can't 
> get shell mode to do the right thing - surely someone must be using 
> Emacs for writing shell scripts!

With Emacs-CVS, I get the following which looks OK to me:

  for f in *
  do
      sdfg
  done

  if swrgfef
  then blas
  else sdf
  fi

IIRC the indentation code hasn't really changed, only the default settings,
so you should be able to get basically the same behavior by fiddling with
the sh-indent-* custom vars.


        Stefan

  reply	other threads:[~2005-10-06  4:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org>
2005-10-06  0:31 ` sh-basic-offset help? Will Parsons
2005-10-06  4:01   ` Stefan Monnier [this message]
2005-09-22 16:12 Bruce Korb

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=87psqjs3cn.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.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.
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).