From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Torsten Mueller Newsgroups: gmane.emacs.help Subject: Re: auto-indenting C++ files upon saving Date: Mon, 22 Feb 2010 07:10:48 +0100 Message-ID: References: Reply-To: Urlicht@gmx.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1266825193 6830 80.91.229.12 (22 Feb 2010 07:53:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 07:53:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 08:53:10 2010 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.69) (envelope-from ) id 1NjRyU-0007jY-P3 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Feb 2010 07:40:58 +0100 Original-Received: from localhost ([127.0.0.1]:34238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjRyT-0005P1-ND for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Feb 2010 01:40:57 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: individual.net XYIc++hyoZRhz+tIkYgXjgtpTdSpCbX2HoAEjFIPgLFOiqa0g= Cancel-Lock: sha1:oOzDd91s1CX6CeDQ4w0LhIUAarg= sha1:5usJD553F3MFS+5ZtWRPPOXViT4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Original-Xref: news.stanford.edu gnu.emacs.help:176961 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:72003 Archived-At: Richard Riley schrieb: > > How can this be automated, so that a file gets auto-indented > > whenever it's saved? > > As a point of contention, I don't think you should do this when you > save. When you save you should be saving what you see. Students > should be indenting as they go. I agree with this completely. For me it would be horror to get noticed that any automatic process in the background modified my sources and I cannot control it. If this really has to be done for any reason I would prefer if this would happen in front of my eyes while I'm editing. (Indeed I'm also not a fan of this, I want the text to be what I type in, not what any dumb tool thinks it should be.) T.M.