From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.help Subject: Re: Forcing C++ to reformat Date: Fri, 19 Dec 2003 05:30:45 +0100 Organization: 1&1 Internet AG Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071809326 21629 80.91.224.253 (19 Dec 2003 04:48:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2003 04:48:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 19 05:48:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AXCZ9-0007fq-00 for ; Fri, 19 Dec 2003 05:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXDSG-0007vU-VW for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2003 00:45:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: p5088ed64.dip0.t-ipconnect.de Original-X-Trace: online.de 1071808245 1090 80.136.237.100 (19 Dec 2003 04:30:45 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Fri, 19 Dec 2003 04:30:45 +0000 (UTC) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:I59/ePPh5srGLgt7MMAv8nSUutY= Original-Xref: shelby.stanford.edu gnu.emacs.help:119508 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15447 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15447 exits funnel writes: > Hello, > > I use emacs to edit C++ source files. I've modified > cc mode to format my code as I desire but I' run into > a common problem. Let's say I'm typing and I > accidently forget to close a brace or a paren and then > continue on coding. The following code is (of course) > formatted correctly according to what I actually typed > but incorrectly according to what I meant to type :) > Okay, so I discover the probelm (say a missing close > paren after an argument list) and go back and fix it. > How can I force the buffer to be reformatted at this > point? I hope this makes sense as I'm not too hip to > all the emacs lingo yet. Thanks in advance for any > replies. Have you tried 'M-x show-paren-mode'? Harald