From: "Pete Klammer" <NETRONICS-PE@comcast.net>
Subject: c-mark-function goes too far
Date: Sat, 6 Jan 2007 19:24:13 -0700 [thread overview]
Message-ID: <000c01c73202$ec8e9880$6506a8c0@fountain> (raw)
In certain cases, `M-C-h' (`c-mark-function') goes too far.
The bottom (mark) is placed at end-of-buffer, if my function looks like this
...
void myfunction( void ) {
mychar = getch() ;
}
... But if it looks like this, mark is correctly placed after the closing
brace:
void myfunction( void )
{
mychar = getch() ;
}
I have my C style set to 'k&r', and all automatic indenting, and even M-C-\
region indenting, is doing as I like. I suppose putting the opening
function-block brace up on the same line as the function declaration may not
be pure k&r... However, syntactic analysis (C-c C-s) of the closing brace
shows the same information in either case, and besides, it's consistent with
k&r while() and do etc. brace positioning. So why doesn't c-mark-function
recognize the defun-close and put the mark there?
--
Peter F. Klammer, P.E.
NETRONICS Professional Engineering, Inc.
3200 Routt Street
Wheat Ridge, Colorado 80033-5452
(303)915-2673 (Wireless w/voicemail)
(303)274-6182 (w/voicemail and FAX)
Mailto:PKlammer@NETRONICS-PE.com
"Net:Working Programmable Electronics!"
next reply other threads:[~2007-01-07 2:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-07 2:24 Pete Klammer [this message]
2007-01-07 23:31 ` c-mark-function goes too far Eric Hanchrow
[not found] ` <mailman.2837.1168213818.2155.bug-gnu-emacs@gnu.org>
2007-01-09 23:53 ` Miles Bader
2007-01-10 18:46 ` Richard Stallman
2007-01-10 20:44 ` Alan Mackenzie
2007-01-11 4:55 ` Miles Bader
2007-01-11 5:10 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000c01c73202$ec8e9880$6506a8c0@fountain' \
--to=netronics-pe@comcast.net \
--cc=PKlammer@NETRONICS-PE.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.