From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nishith Nand Newsgroups: gmane.emacs.help Subject: Re: automatic new-line after 80 columns Date: Tue, 17 Mar 2009 18:39:30 +0530 Message-ID: <48f64c030903170609h1af583cdlf107d6117f329c2a@mail.gmail.com> References: <200902181125.40739.rodrigo.canellas@tqtvd.com> <87k57nhebe.fsf@blackbart.sedgenet> <200902181549.34051.rodrigo.canellas@tqtvd.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=002215048d6f0fae1a04655047bb X-Trace: ger.gmane.org 1237302106 27399 80.91.229.12 (17 Mar 2009 15:01:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 15:01:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rodrigo Canellas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 16:03:03 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjaoO-000627-Im for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 16:02:36 +0100 Original-Received: from localhost ([127.0.0.1]:52307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljan2-0001UG-DU for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 11:01:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjZ33-0006hO-Ii for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 09:09:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjZ2y-0006dZ-NJ for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 09:09:37 -0400 Original-Received: from [199.232.76.173] (port=36818 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjZ2y-0006dQ-Dn for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 09:09:32 -0400 Original-Received: from mail-gx0-f174.google.com ([209.85.217.174]:62783) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjZ2y-0000mO-1g for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 09:09:32 -0400 Original-Received: by gxk22 with SMTP id 22so38320gxk.18 for ; Tue, 17 Mar 2009 06:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=3eMuouR0BPcX2VGFWQ06zOn2dNPJ5qngNzz1TbgdXIU=; b=qTnc1mONaAWArNR88m9r2v+CA98UUlQef+2/42CuQwvGY6L7WvntdH4ENuljI/8g+Y rXT3shDFiRPEJjQeWwZup8GwtKIYVQ7wkF1j59+owDw3rryd+MtIEon33E+UKAZwO63G ofnJDP7dFylEoE5dPhM0yoIL1HKzRlv2EC9AE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=p92wAeFOfE5WnF1Elrma5h0b0K1/kq0u+MSgbbPhW260x6jLUeiaQqrgXQgKVqXVR4 NsaQFccStOQGV/oQQfofVgc0HDfC9aA4BtU8InhTID3kul4O4vHZRh+4+wIQzmh9Ec00 KRUzm89NodOiNW6T3ZdnvLwRLMMNBfOuVgmKc= Original-Received: by 10.231.32.70 with SMTP id b6mr1340753ibd.56.1237295370841; Tue, 17 Mar 2009 06:09:30 -0700 (PDT) In-Reply-To: <200902181549.34051.rodrigo.canellas@tqtvd.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 17 Mar 2009 11:00:03 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63012 Archived-At: --002215048d6f0fae1a04655047bb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > OK! > > I inserted > > '(fill-column 80) > '(c-ignore-auto-fill (quote (string cpp))) > > in my '.emacs' file and it worked fine!! > Hi, I have the exact same requirement. I tried adding those lines to my .emacs and then wrote the following line in a file called test.cpp int a = b = c = d = e = f = g = h = i = j = k = l = m = n = o = p = q = r = s = t = u = v = w = x = y = z = 0; But, unfortunately, no newline. I enabled auto newline (C-c C-a). I tried both c and c++ mode. The Fill minor mode is enabled. I am using 23.0.60.1 GTK Snapshot on ubuntu 9.04 alpha 6. Any suggestions? Thanks and Regards, Nishith Nand --002215048d6f0fae1a04655047bb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK!

I inserted

=A0'(fill-column 80)
=A0'(c-ignore-auto-fill (quote (string cpp)))

in my '.emacs' file and it worked fine!!

Hi,

=A0=A0=A0 I have the exact same requirem= ent. I tried adding those lines to my .emacs and then wrote the following l= ine in a file called test.cpp

int a =3D b =3D c =3D d =3D e =3D f = =3D g =3D h =3D i =3D j =3D k =3D l =3D m =3D n =3D o =3D p =3D q =3D r =3D= s =3D t =3D u =3D v =3D w =3D x =3D y =3D z =3D 0;

But, unfortunately, no newline.

I enabled auto newline (C-c C-a)= .
I tried both c and c++ mode.
The Fill minor mode is enabled.
I am using 23.0.60.1 GTK Snapshot on ubuntu 9.04 alpha 6.

Any sugg= estions?

Thanks and Regards,
Nishith Nand
--002215048d6f0fae1a04655047bb--