From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.help Subject: cc-mode indent, exception for long lines Date: Tue, 15 Oct 2002 15:09:34 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1034719349 14876 80.91.224.249 (15 Oct 2002 22:02:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2002 22:02:29 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 181Zlj-0003rn-00 for ; Wed, 16 Oct 2002 00:02:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 181Zkc-0001Wu-00; Tue, 15 Oct 2002 18:01:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!News.GigaNews.Com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 15 Oct 2002 17:00:06 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Linux) Original-Lines: 29 Original-X-Trace: sv3-mODIJXYSmOTs009cp2sYpEzJSeoPCmBAqHpNBnpMe+F/jA+QI6z6FySpFRb+ZLZVBduat+jOqSJSFls!1QzLa9Ty3tlaf3sEoBJLZ4mkl91V6u5B7KVrZ6cXnGbcT26ikh29ap0raknw4E+tr03DJK4kpzkZ!G0fjRXcM+/r98hZmv1C9UDA= Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106103 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2651 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2651 I like to keep my C code lines to 80 columns, for easier editing/printing. But, sometimes I have a long string constant or identifier, and cc-mode's indentation isn't optimal. E.g. if (ReallyLongFunctionName(AnotherReallyLongFunctionName("a really long string constant") { } I haven't been able to get cc-mode to help me much here. It'd be great if it had a way to sense that the result of an indentation will go beyond N columns and go into an alternate mode that results in something like this: if (ReallyLongFunctionName( AnotherReallyLongFunctionName( "a really long string constant") { } (the above indentation is the "vim" editor's default indentation -- the first line after a paren is indented 8 spaces, all subsequent lines 8+4 spaces). Any tips? -- matt