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: Fri, 17 Aug 2012 21:05:09 +0000 [thread overview]
Message-ID: <20120817210509.GA4270@acm.acm> (raw)
In-Reply-To: <m1d32r3hdg.fsf@gmail.com>
Hello, Leo and Glenn.
On Thu, Aug 16, 2012 at 06:44:27AM +0800, Leo wrote:
> On 2012-08-15 22:42 +0800, Alan Mackenzie wrote:
> > The current assumption is that the "{" starts the action for the pattern
> > "NR==3".
I got confused by the "should" in your original report. Sorry. Yes, it
is a bug, and thanks for the report.
> syntax after NR==3 is not recognised as `defun-open' which causes { to
> be inserted in a new line. I think there is a bug somewhere (probably
> c-guess-basic-syntax) regarding this.
In AWK Mode, the recognition of a beginning-of-defun (for C-M-a) is done
heuristically. c-guess-b-s can't detect an AWK defun-open.
Which all means the solution will be messy and heuristic too. <sigh>.
> Leo
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2012-08-17 21:05 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
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 [this message]
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=20120817210509.GA4270@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).