From: Lars Ingebrigtsen <larsi@gnus.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 43324@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#43324: Auto-indenting csh/tcsh shell scripts [emacs-28]
Date: Tue, 07 Jun 2022 11:20:36 +0200 [thread overview]
Message-ID: <87r140ommz.fsf@gnus.org> (raw)
In-Reply-To: <CAFyQvY2qM_rvi2RBNebZzadj+RZxNJ3_qFMzKQR88reTET+RQg@mail.gmail.com> (Kaushal Modi's message of "Mon, 6 Jun 2022 12:44:35 -0400")
Kaushal Modi <kaushal.modi@gmail.com> writes:
> Here's a GIF recording (attached with this email) showing me opening a
> tcsh script in emacs -Q and attempting to auto-indent the whole buffer
> and also a region. Both mess up the whole indentation.
>
> Example script:
Thanks for the example.
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Does this mean that indentation doesn't work for tcsh in
>> shell-script-mode?
>
> IIRC sh-script.el provides usable indentation (based on SMIE) for `sh`
> and for `rc` but for `csh` there's basically nothing (or if there's
> something it's naive enough to be nearly unusable).
Ah, I see.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-06-07 9:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-11 3:25 bug#43324: Auto-indenting csh/tcsh shell scripts [emacs-28] Kaushal Modi
2022-06-06 16:20 ` Lars Ingebrigtsen
2022-06-06 16:44 ` Kaushal Modi
2022-06-06 16:58 ` Kaushal Modi
2022-06-07 9:20 ` Lars Ingebrigtsen [this message]
2022-06-06 17:03 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=87r140ommz.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=43324@debbugs.gnu.org \
--cc=kaushal.modi@gmail.com \
--cc=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.
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).