From: lawrence mitchell <wence@gmx.li>
Subject: Re: auto-fill mode in java-mode
Date: Sat, 18 Oct 2003 22:23:49 +0100 [thread overview]
Message-ID: <?fnord?uy8vi5jfe.fsf@ID-97657.usr.dfncis.de> (raw)
In-Reply-To: mailman.1944.1066497425.21628.help-gnu-emacs@gnu.org
Adam Hardy wrote:
[...]
> I realise now that my issue here is that it would actually be
> preferable to have emacs just stop taking input beyond line 72 - and
> beep instead. Or perhaps color the text red, because I can imagine
> situations where I can't break the line.
How about:
(defun my-dont-insert-after-fill-column (&rest x)
(when (> (current-column)
fill-column)
(delete-char -1)
(beep)))
(add-hook 'after-change-functions 'my-dont-insert-after-fill-column)
> Is anything like that possible?
[...]
--
lawrence mitchell <wence@gmx.li>
next prev parent reply other threads:[~2003-10-18 21:23 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
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='?fnord?uy8vi5jfe.fsf@ID-97657.usr.dfncis.de' \
--to=wence@gmx.li \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).