From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodrigo Canellas Newsgroups: gmane.emacs.help Subject: auto 'new-line' in C++ lines too long Date: Thu, 22 Jan 2009 17:15:25 -0200 Organization: TQTVD Message-ID: <200901221715.25767.rodrigo.canellas@tqtvd.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232651847 24188 80.91.229.12 (22 Jan 2009 19:17:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 19:17:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 20:18:37 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 1LQ54H-0000rR-Gv for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 20:18:21 +0100 Original-Received: from localhost ([127.0.0.1]:49481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ530-0007Jj-1n for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 14:17:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ51n-0006Ex-Lv for help-gnu-emacs@gnu.org; Thu, 22 Jan 2009 14:15:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ51m-0006Cx-2h for help-gnu-emacs@gnu.org; Thu, 22 Jan 2009 14:15:46 -0500 Original-Received: from [199.232.76.173] (port=40667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ51l-0006Ci-Ru for help-gnu-emacs@gnu.org; Thu, 22 Jan 2009 14:15:45 -0500 Original-Received: from mail.quality.com.br ([200.179.60.40]:38754) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQ51l-0004Vd-HJ for help-gnu-emacs@gnu.org; Thu, 22 Jan 2009 14:15:45 -0500 Original-Received: from kent.localnet (unknown [10.0.8.165]) by mail.quality.com.br (Postfix) with ESMTP id C6CF215809B for ; Thu, 22 Jan 2009 17:07:29 -0200 (BRST) User-Agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; ) Content-Disposition: inline X-Quality-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: C6CF215809B.A03CC X-Quality-MailScanner: Found to be clean X-Quality-MailScanner-From: rodrigo.canellas@tqtvd.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:61567 Archived-At: Hi, I have defined '(c-max-one-liner-length 80), but I do not know how to make 'emacs' insert a 'new-line' char when a C++ line is more than 80 chars long, like this: void tedious:: g ( ) { for ( m = 0, g = 12; m < 12, g > 0; ++m, --g ) { if ( some_very_long_function_name_is_called ( m, g, a_very_big_var_name ) ) { I mean, I would like a 'new-line' char to be inserted before the 'a_very_big_var_name', so the code looks like this: void tedious:: g ( ) { for ( m = 0, g = 12; m < 12, g > 0; ++m, --g ) { if ( some_very_long_function_name_is_called ( m, g, a_very_big_var_name ) ) { Thanks a lot! -- Rodrigo Canellas Software Developer Digital TV Products +55 21 3147-3000/8675 rodrigo.canellas@tqtvd.com www.tqtvd.com TQTVD Software -- Rodrigo Canellas Software Developer Digital TV Products +55 21 3147-3000/8675 rodrigo.canellas@tqtvd.com www.tqtvd.com TQTVD Software -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.