From: Alan Mackenzie <acm@muc.de>
To: Leo <sdl.web@gmail.com>
Cc: 12188@debbugs.gnu.org
Subject: bug#12188: 24.1; awk-mode eletric { incorrectly inserts newline
Date: Wed, 15 Aug 2012 14:42:33 +0000 [thread overview]
Message-ID: <20120815144233.GA4016@acm.acm> (raw)
In-Reply-To: <m2628n8wdp.fsf@gmail.com>
Hello, Leo,
On Mon, Aug 13, 2012 at 08:32:18AM +0800, Leo wrote:
> 1. emacs -q x.awk
> 2. C-c C-a to enable auto-newline mode
> 3. Type: NR==3 {
> You should see { starts at a new line instead of following NR==3, i.e. {
> helps creating incorrect awk programs.
The current assumption is that the "{" starts the action for the pattern
"NR==3".
Although the implicit action (i.e., print the line) isn't rare, having
such a line followed by the implicit pattern (i.e., match everything) is
surely uncommon enough not to make it the default assumption.
I think this default is fine as it is. It is, of course, possible to
configure auto newlines to behave as you suggest.
> Leo
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2012-08-15 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 0:32 bug#12188: 24.1; awk-mode eletric { incorrectly inserts newline Leo
2012-08-15 14:42 ` Alan Mackenzie [this message]
2012-08-15 17:41 ` Glenn Morris
[not found] ` <20120815144233.GA4016__1127.2007170648$1345042054$gmane$org@acm.acm>
2012-08-15 22:44 ` Leo
2012-08-17 21:05 ` Alan Mackenzie
2012-08-18 19:57 ` Alan Mackenzie
2012-08-19 0:54 ` Leo
2012-09-16 22:44 ` Leo
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=20120815144233.GA4016@acm.acm \
--to=acm@muc.de \
--cc=12188@debbugs.gnu.org \
--cc=sdl.web@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).