From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Hardy Newsgroups: gmane.emacs.help Subject: Re: auto-fill mode in java-mode Date: Fri, 17 Oct 2003 11:38:40 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F8FB8A0.3020301@cyberspaceroad.com> References: Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1066383657 7492 80.91.224.253 (17 Oct 2003 09:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2003 09:40:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 11:40:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AAR6N-0006cJ-00 for ; Fri, 17 Oct 2003 11:40:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAR5h-0004s1-JC for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2003 05:40:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAR5U-0004q4-Ny for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 05:40:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAR4x-0004jU-0z for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 05:39:59 -0400 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAR4w-0004j3-IN for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 05:39:26 -0400 Original-Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AAR4v-0001xY-00 for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 11:39:25 +0200 Original-Received: from [217.88.246.178] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AAR4u-0003Oj-00 for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 11:39:24 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en, en-us, de-de Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13285 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13285 On 10/16/2003 11:16 PM Alan Mackenzie wrote: > Adam Hardy wrote on Mon, 13 Oct 2003 23:58:08 > +0200: >>On 10/13/2003 11:10 AM Alan Mackenzie wrote: >>>>I'm trying to get my java-mode to wrap lines at 75 cols and I've not >>>>got it working. > [ .... ] >>>I'm not sure how useful the auto-filling is in lines other than >>>comment lines. > [ .... ] >>There is only one quibble that I have with the arrangement as I now >>have it, and the cc-mode help, which is great, is not telling me how or >>why it happens: > >> - when auto-fill breaks a line, it ignores my idea of what the >>indentation should be. I have to hit tab (or an electric key) for the >>indentation to sort itself out. I assume my settings are in need of >>some adjustment, but I don't know which of the following it is: > [ settings snipped ] > > I don't think there's any code in CC Mode to re-indent auto-filled stuff > (apart from comments). It's one of these things that "nobody" will ever > really need (Hah!), and nobody can be bothered to code. The variable > c-ignore-auto-fill seems more like an emergency kludge than a fully > worked out facility. > > If you think about it, auto-fill with reindentation would be complicated - > The Java code could be filled, then reindented, causing it to spill over > the right margin, requiring re-filling, then reindentation, ..... It > would probably end up looking like an Outlook-Express Usenet posting. :-( > > You could always reindent the code with C-M-\ or C-M-q or something. But > that will ruin the 75 column limit. :-( There probably isn't a good > solution to this (other than to enhance CC Mode). Sorry. That's what I'm doing now - it's only 1 key-press. I can definitely live with it though. Interesting to see you are based in Munich. I am too. I would have posted off-list but your email address doesn't show. Thanks for the help! Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 RH9