all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: seberino@spawar.navy.mil (Christian Seberino)
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	[thread overview]
Message-ID: <bf23f78f.0301221025.6bc73068@posting.google.com> (raw)
In-Reply-To: mailman.741.1043189082.21513.help-gnu-emacs@gnu.org

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 <ghill@synergymicro.com> wrote in message news:<mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>...
> 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

      parent reply	other threads:[~2003-01-22 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-21 20:38 Can't turn on auto-fill-mode in c-mode (is it only for text-mode??) Christian Seberino
2003-01-21 22:34 ` Greg Hill
     [not found] ` <mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>
2003-01-22 18:25   ` Christian Seberino [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf23f78f.0301221025.6bc73068@posting.google.com \
    --to=seberino@spawar.navy.mil \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.