unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 15089@debbugs.gnu.org
Subject: bug#15089: awk-mode indentation of line after /= statement with comment
Date: Tue, 13 Aug 2013 15:08:18 -0400	[thread overview]
Message-ID: <k2haet8l3x.fsf@fencepost.gnu.org> (raw)

Package: emacs,cc-mode
Version: 24.3
Severity: minor

emacs -Q foo.awk

Enter buffer contents:

#!/usr/bin/gawk -f
BEGIN {
   x = 4
   x /= 2    # comment
        y = 3
   print x, y
}

Use TAB to indent each line. The "y =" line is indented too much.
No such problem with +=, -=, etc; only with /=. And only if a comment
after if (actually, only if whitespace after "/= 2", it seems).





             reply	other threads:[~2013-08-13 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3149.1376421825.12400.bug-gnu-emacs@gnu.org>
2013-08-13 19:08 ` Glenn Morris [this message]
2013-08-15 16:39   ` bug#15089: awk-mode indentation of line after /= statement with?comment Alan Mackenzie
2013-08-17 16:00   ` bug#15089: awk-mode indentation of line after /= statement with comment Alan Mackenzie
2013-08-20  6:57     ` Glenn Morris
2013-08-25 10:18       ` Alan Mackenzie
2013-08-25 19:08         ` 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=k2haet8l3x.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=15089@debbugs.gnu.org \
    /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).