From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Umar Said Newsgroups: gmane.emacs.help Subject: Re: tidy up code Date: Fri, 21 Dec 2007 13:30:30 +0100 (CET) Organization: Aioe.org NNTP Server Message-ID: References: <8fe575ee-5f12-4e70-9818-34d7b3769336@e25g2000prg.googlegroups.com> <1116db7a-9821-4383-9529-9637460e8b5e@e23g2000prf.googlegroups.com> <87wsr8qoso.fsf@muscle.bealbywm.plus.com> <1a7b6c7f-f885-4c70-bf05-4e4c87099c47@b1g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1198250326 20679 80.91.229.12 (21 Dec 2007 15:18:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2007 15:18:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 21 16:18:58 2007 Return-path: Envelope-to: geh-help-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 1J5je2-0001LT-0c for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Dec 2007 16:18:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5jdi-00024I-4m for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Dec 2007 10:18:18 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed2.scan-plus.net!news.germany.com!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: M4mGb045M78K7yvZpFpbeg.user.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: pan 0.119 (Karma Hunters) Original-Xref: shelby.stanford.edu gnu.emacs.help:154854 X-Mailman-Approved-At: Fri, 21 Dec 2007 10:09:12 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50281 Archived-At: On Fri, 21 Dec 2007 04:07:05 -0800, nullius.filius wrote: > X-no-archive: Yes > > > You have to give a hint to emacs that you want to format a c++ file. > You do that by naming the file before you try and format it. > > Go to the file menu and click on the menu item 'Visit new File' go to > the directory you want to save your file, and type in your file name > (test.cpp) and click the open button. > > Now paste your code into emacs. > > Once emacs has a hint on what type of file it is formatting, then > it can format it. Thank you nullius. It solves the problem.