unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* line length control setting
@ 2003-11-06 11:24 Adam Hardy
  0 siblings, 0 replies; 23+ messages in thread
From: Adam Hardy @ 2003-11-06 11:24 UTC (permalink / raw)


Hi All,
I am using a brute force method of stopping myself from writing long 
lines of code, using this in my .emacs:

(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)

But I discovered this is also acting on the command buffer, so I cannot 
add more than my fill column when doing simple file copies or renames or 
text search & replaces.

Is there a way that I can adapt my function above to stop it applying to 
the command buffer?

Thanks
Adam

-- 
GNU Emacs 21.3.1 on Linux 2.4.20 RH9

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-12-13 18:13 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3297.1068117967.21628.help-gnu-emacs@gnu.org>
2003-11-06 15:41 ` line length control setting Jesper Harder
2003-11-06 18:27 ` Kevin Rodgers
2003-11-07 13:57   ` Adam Hardy
2003-11-07 18:40 ` Gareth Rees
2003-11-08 14:47   ` Adam Hardy
     [not found]   ` <mailman.46.1068306647.2005.help-gnu-emacs@gnu.org>
2003-11-10 18:39     ` Gareth Rees
2003-11-11 11:10       ` Adam Hardy
2003-11-11 11:20       ` Adam Hardy
2003-11-11 13:47 ` Oliver Scholz
2003-11-13  9:49   ` Adam Hardy
     [not found]   ` <mailman.28.1068720748.399.help-gnu-emacs@gnu.org>
2003-11-13 12:02     ` Oliver Scholz
2003-11-13 17:01       ` Kevin Rodgers
2003-11-17 13:08         ` Adam Hardy
     [not found]         ` <mailman.157.1069078348.399.help-gnu-emacs@gnu.org>
2003-11-17 14:56           ` Phillip Lord
2003-12-07 15:29 ` Kai Grossjohann
2003-12-08  9:55   ` Adam Hardy
     [not found]   ` <mailman.1329.1070881092.399.help-gnu-emacs@gnu.org>
2003-12-08 18:14     ` Johan Bockgård
2003-12-10 12:47       ` Adam Hardy
2003-12-12 11:37       ` Adam Hardy
     [not found]       ` <mailman.1629.1071232851.399.help-gnu-emacs@gnu.org>
2003-12-12 18:58         ` Johan Bockgård
2003-12-13 11:06           ` Adam Hardy
     [not found]           ` <mailman.15.1071317460.868.help-gnu-emacs@gnu.org>
2003-12-13 18:13             ` Johan Bockgård
2003-11-06 11:24 Adam Hardy

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).