From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil (Christian Seberino) Newsgroups: gmane.emacs.help Subject: Re: Can't turn on auto-fill-mode in c-mode (is it only for text-mode??) Date: 22 Jan 2003 10:25:36 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1043260376 11250 80.91.224.249 (22 Jan 2003 18:32:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2003 18:32:56 +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 18bPgF-0002vJ-00 for ; Wed, 22 Jan 2003 19:32:55 +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 18bPdu-00020O-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 22 Jan 2003 13:30:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: 128.49.22.159 Original-X-Trace: posting.google.com 1043259936 8777 127.0.0.1 (22 Jan 2003 18:25:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 22 Jan 2003 18:25:36 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109353 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:5875 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5875 Greg I'm impressed and amazed that you found this info out. I grep'ed thru the Emacs Lisp Ref Manual for ver. 21 and there was not one place where they mentioned c-do-auto-fill. How did you find this out?!?! I cannot believe it is this difficult to set this mode for c-mode. Surely I cannot be the only one that uses Emacs for programming and wants to keep his code from being as wide as 2 pages!??!? Please tell me if you don't mind the proper to turn on c-do-auto-fill so that it only activates in c-mode and doesn't mess up other modes. thanks, Chris P.S. BTW is there a difference between c-mode and cc-mode?? I turn on c-mode but I see messages about cc-mode appear when Emacs turns on. I dunno. Greg Hill wrote in message news:... > 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