From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gabriel Parrondo Newsgroups: gmane.emacs.help Subject: Re: tidy up code Date: Sun, 23 Dec 2007 03:01:32 -0300 Message-ID: <1198389692.28270.7.camel@localhost.localdomain> 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: multipart/mixed; boundary="===============1871181179==" X-Trace: ger.gmane.org 1198389702 31510 80.91.229.12 (23 Dec 2007 06:01:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2007 06:01:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 23 07:01:54 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 1J6JuJ-0002iY-6U for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Dec 2007 07:01:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6Jty-0007Vw-R4 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Dec 2007 01:01:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6JtK-0007QX-3m for help-gnu-emacs@gnu.org; Sun, 23 Dec 2007 01:00:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6JtH-0007OH-2a for help-gnu-emacs@gnu.org; Sun, 23 Dec 2007 01:00:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6JtG-0007Nx-CT for help-gnu-emacs@gnu.org; Sun, 23 Dec 2007 01:00:46 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6JtG-0006Ix-3s for help-gnu-emacs@gnu.org; Sun, 23 Dec 2007 01:00:46 -0500 Original-Received: by an-out-0708.google.com with SMTP id c25so190598ana.84 for ; Sat, 22 Dec 2007 22:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=l+pDzrxvldhiJUAmJDRZDySlB2X+wIv1X/20jYSjDG8=; b=T0ZHzJeJwq3/zdoMchTNxx4VHFU1acTXRUnrrxvKV80FGeooX5g9RDamq3RUfiyCf4nYQjKFAnwj1w2srZleFV891dLSb6iA0RWHjKvaY9GIMIK7E3PbArXRdL+G+OBQmv4E+/yoXqWHoVTTJbEP6oa2rE9rqV2dlEaTH+2gWfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=aqtiFvJKUmVZqvhykARXe2zckN5dmxDowCq+N3aRmkkF5tfU+yZ8vghJnPp1iOcaytHdnF+rNI5XI9EKZzFI5d37ekG/nIA7ZVsWUa9PQ4k7Ppvgu+L7NCIDqQgGq+Eo8q/ktDGTLA12SIxQReW4GLCXC8px2KPCNJOyrQvx/es= Original-Received: by 10.100.41.16 with SMTP id o16mr6497847ano.116.1198389644494; Sat, 22 Dec 2007 22:00:44 -0800 (PST) Original-Received: from ?190.55.83.110? ( [190.55.83.110]) by mx.google.com with ESMTPS id 3sm2336886hsw.12.2007.12.22.22.00.42 (version=SSLv3 cipher=RC4-MD5); Sat, 22 Dec 2007 22:00:43 -0800 (PST) In-Reply-To: X-Mailer: Evolution 2.10.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:50300 Archived-At: --===============1871181179== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vjM9EF5lk7oPfcynLKLv" --=-vjM9EF5lk7oPfcynLKLv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable El vie, 21-12-2007 a las 13:30 +0100, Umar Said escribi=C3=B3: > On Fri, 21 Dec 2007 04:07:05 -0800, nullius.filius wrote: > > X-no-archive: Yes > >=20 > >=20 > > 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. > >=20 > > 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. > >=20 > > Now paste your code into emacs. > >=20 > > Once emacs has a hint on what type of file it is formatting, then > > it can format it. >=20 > Thank you nullius. It solves the problem. Note that you don't really need to name the file with the usual extension for the file format. You can tell emacs that you're editing a C++ file with "M-x c++-mode", despite of its name. I strongly recommend reading the emacs tutorial (C-h t) if you didn't already. --=20 Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: gabrielp@xmpp.us "The only difference between theory and practice is that, in theory, there'= s no difference between theory and practice." --=-vjM9EF5lk7oPfcynLKLv Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: GnuPG digital signature iD8DBQBHbfm8IOmrXr7Xv0MRAkhbAJ4qL4xastSSyAhmP9WJhAhDWpPmNQCZARgI JhpP48Cpk3KvLbXVqPUy9As= =DHf1 -----END PGP SIGNATURE----- --=-vjM9EF5lk7oPfcynLKLv-- --===============1871181179== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1871181179==--