* Can't turn on auto-fill-mode in c-mode (is it only for text-mode??)
@ 2003-01-21 20:38 Christian Seberino
2003-01-21 22:34 ` Greg Hill
[not found] ` <mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Christian Seberino @ 2003-01-21 20:38 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can't turn on auto-fill-mode in c-mode (is it only for text-mode??)
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>
1 sibling, 0 replies; 3+ messages in thread
From: Greg Hill @ 2003-01-21 22:34 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>]
* Re: Can't turn on auto-fill-mode in c-mode (is it only for text-mode??)
[not found] ` <mailman.741.1043189082.21513.help-gnu-emacs@gnu.org>
@ 2003-01-22 18:25 ` Christian Seberino
0 siblings, 0 replies; 3+ messages in thread
From: Christian Seberino @ 2003-01-22 18:25 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-22 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.