From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: Can't turn on auto-fill-mode in c-mode (is it only for text-mode??) Date: Tue, 21 Jan 2003 14:34:58 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1043189268 2289 80.91.224.249 (21 Jan 2003 22:47:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 22:47:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18b7BK-0000ak-00 for ; Tue, 21 Jan 2003 23:47:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b78S-0006WS-03 for gnu-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2003 17:44:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18b77c-0006A5-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 17:43:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18b76j-0005lT-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 17:43:03 -0500 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b6zO-0002aD-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 17:35:26 -0500 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id OAA00656 for ; Tue, 21 Jan 2003 14:36:04 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])OAA02246 for ; Tue, 21 Jan 2003 14:40:53 -0800 In-Reply-To: Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5850 Chris, I see that in Emacs-21 the default value of auto-fill-function for c-mode is c-do-auto-fill, which is defined in lisp/progmodes/cc-cmds.el. (Emacs-20 uses plain old do-auto-fill.) While visiting your .c file, try changing auto-fill-function (which is a buffer-local variable) to 'do-auto-fill, and see if it behaves more like you would expect. If so, then you might want to investigate what the difference is between c-do-auto-fill and plain old do-auto-fill. --Greg At 12:38 PM -0800 1/21/03, Christian Seberino wrote: >"emacs aa" opens a new file and I can do M-x auto-fill-mode to put it >into auto-fill-mode. (I nuked .emacs so that won't be a red herring.) > >"emacs aa.c" throws it into c-mode (cc-mode?) and M-x auto-fill-mode >has no noticeable effect. > >HOW COME AUTO-FILL-MODE DOESN'T WORK IN C-MODE??? > >Chris >_______________________________________________ >Help-gnu-emacs mailing list >Help-gnu-emacs@gnu.org >http://mail.gnu.org/mailman/listinfo/help-gnu-emacs