all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Greg Hill <ghill@synergymicro.com>
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	[thread overview]
Message-ID: <p04310102ba537064088f@[198.17.100.22]> (raw)
In-Reply-To: <bf23f78f.0301211238.4a8159bd@posting.google.com>

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

  reply	other threads:[~2003-01-21 22:34 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 [this message]
     [not found] ` <mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>
2003-01-22 18:25   ` Christian Seberino

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='p04310102ba537064088f@[198.17.100.22]' \
    --to=ghill@synergymicro.com \
    /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.