From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: Re: automatic new-line after 80 columns Date: Wed, 18 Feb 2009 12:58:45 -0400 Message-ID: <87k57nhebe.fsf@blackbart.sedgenet> References: <5q2dnbZjSrLIpQbUnZ2dnUVZ_rLinZ2d@sysmatrix.net> <200902181125.40739.rodrigo.canellas@tqtvd.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234976390 12888 80.91.229.12 (18 Feb 2009 16:59:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 16:59:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 18:01:06 2009 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 1LZpn5-0002PQ-9y for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 18:00:55 +0100 Original-Received: from localhost ([127.0.0.1]:57665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZpll-0001Jr-2Y for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 11:59:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZplO-0001JR-T0 for help-gnu-emacs@gnu.org; Wed, 18 Feb 2009 11:59:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZplO-0001JA-1M for help-gnu-emacs@gnu.org; Wed, 18 Feb 2009 11:59:10 -0500 Original-Received: from [199.232.76.173] (port=41450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZplN-0001J3-PB for help-gnu-emacs@gnu.org; Wed, 18 Feb 2009 11:59:09 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:48961 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZplN-0007tf-7S for help-gnu-emacs@gnu.org; Wed, 18 Feb 2009 11:59:09 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LZplM-0002I1-Ap for help-gnu-emacs@gnu.org; Wed, 18 Feb 2009 16:59:08 +0000 Original-Received: from hlfxns0169w-142068221100.pppoe-dynamic.ns.aliant.net ([142.68.221.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2009 16:59:08 +0000 Original-Received: from tyler.smith by hlfxns0169w-142068221100.pppoe-dynamic.ns.aliant.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2009 16:59:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hlfxns0169w-142068221100.pppoe-dynamic.ns.aliant.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:oaDiJzLBDUElKpTfizr7G6U4osc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:62181 Archived-At: Rodrigo Canellas writes: > > I created a file '/var/tmp/t.cpp'. > Then when I typed 'C-u 80 C-x f', 'emacs' said 'Fill column set to 80 (was 70)' > And when I typed 'C-u 1 M-x auto-fill-mode', it did not say anything. You need to customize c-ignore-auto-fill. By default autofill only works for c comments, but you can change this so that it works in code too. After doing this you example worked like you wanted it to (you may need to hit the tab key to get the filling to work after the line break is added). Tyler -- Don't learn the tricks of the trade; learn the trade.