From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: auto-fill mode in java-mode Date: Mon, 13 Oct 2003 09:10:53 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066039412 2706 80.91.224.253 (13 Oct 2003 10:03:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2003 10:03:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 12:03:30 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 1A8zY1-0007yf-01 for ; Mon, 13 Oct 2003 12:03:29 +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 1A8zW9-0000Bl-Pa for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2003 06:01:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!news-nue1.dfn.de!uni-erlangen.de!lmu.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1066038452 35608 193.149.49.134 (13 Oct 2003 09:47:32 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 13 Oct 2003 09:47:32 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:117223 Original-To: help-gnu-emacs@gnu.org 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:13152 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13152 Adam Hardy wrote on Sun, 12 Oct 2003 00:07:00 +0200: > I'm trying to get my java-mode to wrap lines at 75 cols and I've not > got it working. What do you mean by "lines"? In the CC Modes, only comments get auto-filled by default. Are your comment lines getting auto-filled? Do you also want code lines to get auto-filled? If you want lines of code to get filled too, set the user option c-ignore-auto-fill. For example, in your mode hook add something like (setq c-ignore-auto-fill '(cpp)) which will fill everything but preprocessor lines (do such exist in Java?). c-ignore-auto-fill is fully documented on the page "Text Filling and Line Breaking" in the CC Mode info pages. I'm not sure how useful the auto-filling is in lines other than comment lines. [ .... ] > Thanks for any help. Best of luck! Come back again if the above doesn't help. > Adam > -- > GNU Emacs 21.3.1 on Linux 2.4.20 RH9 -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").