From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: Re: c-mark-function goes too far Date: Sun, 07 Jan 2007 15:31:27 -0800 Message-ID: <87wt3ypg6o.fsf@offby1.atm01.sea.blarg.net> References: <000c01c73202$ec8e9880$6506a8c0@fountain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168213844 5487 80.91.229.12 (7 Jan 2007 23:50:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2007 23:50:44 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 08 00:50:42 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3hmN-0007nf-PU for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jan 2007 00:50:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3hmM-0002Dk-LO for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jan 2007 18:50:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3hmL-0002DL-Ae for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2007 18:50:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3hmK-0002CV-Qz for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2007 18:50:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3hmJ-0002CL-S5 for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2007 18:50:15 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H3hmI-0007do-NJ for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2007 18:50:15 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1H3hm6-0004Ji-Aj for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2007 00:50:02 +0100 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jan 2007 00:50:02 +0100 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jan 2007 00:50:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:5fwc85pKUg6EH6N16hUf7oUOE6E= X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15514 Archived-At: >>>>> "Pete" == Pete Klammer writes: Pete> In certain cases, `M-C-h' (`c-mark-function') goes too far. Pete> The bottom (mark) is placed at end-of-buffer, if my function Pete> looks like this ... Pete> void myfunction( void ) { mychar = getch() ; Pete> } I don't remember the details, but I think Emacs always assumed that function definitions begin with a left-brace at the left column. Presumably c-mark-function is making that same assumption, and searching forward for one, and not finding it. -- When it comes to electronic voting, most liberals are just plain old-fashioned nuts. -- Joe Andrew, former chairman of the Democratic National Committee