From: Adam Hardy <emacs@cyberspaceroad.com>
Subject: Re: auto-fill mode in java-mode
Date: Fri, 17 Oct 2003 11:38:40 +0200 [thread overview]
Message-ID: <3F8FB8A0.3020301@cyberspaceroad.com> (raw)
In-Reply-To: <as1nmb.941.ln@acm.acm>
On 10/16/2003 11:16 PM Alan Mackenzie wrote:
> Adam Hardy <emacs@cyberspaceroad.com> 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
next prev parent reply other threads:[~2003-10-17 9:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1541.1065910097.21628.help-gnu-emacs@gnu.org>
2003-10-13 9:10 ` auto-fill mode in java-mode Alan Mackenzie
2003-10-13 21:58 ` Adam Hardy
[not found] ` <mailman.1632.1066082371.21628.help-gnu-emacs@gnu.org>
2003-10-16 21:16 ` Alan Mackenzie
2003-10-17 9:38 ` Adam Hardy [this message]
2003-10-17 14:49 ` Stefan Monnier
2003-10-18 17:15 ` Adam Hardy
[not found] ` <mailman.1944.1066497425.21628.help-gnu-emacs@gnu.org>
2003-10-18 21:03 ` Johan Bockgård
2003-10-18 21:23 ` lawrence mitchell
2003-10-19 9:07 ` Micah Cowan
2003-10-11 22:07 Adam Hardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F8FB8A0.3020301@cyberspaceroad.com \
--to=emacs@cyberspaceroad.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.