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: line length control setting Date: Thu, 06 Nov 2003 12:24:24 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FAA2F68.4070409@cyberspaceroad.com> 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 1068118664 3996 80.91.224.253 (6 Nov 2003 11:37:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 11:37:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 12:37:42 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 1AHiSM-0003Si-00 for ; Thu, 06 Nov 2003 12:37:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AHiRy-0004Pc-NK for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2003 06:37:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AHiH0-0003DA-8Y for help-gnu-emacs@gnu.org; Thu, 06 Nov 2003 06:25:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AHiGN-00031l-P8 for help-gnu-emacs@gnu.org; Thu, 06 Nov 2003 06:25:50 -0500 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AHiGL-000310-Fx for help-gnu-emacs@gnu.org; Thu, 06 Nov 2003 06:25:17 -0500 Original-Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AHiGK-0005L8-00 for help-gnu-emacs@gnu.org; Thu, 06 Nov 2003 12:25:16 +0100 Original-Received: from [217.228.242.11] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AHiGJ-0002di-00 for help-gnu-emacs@gnu.org; Thu, 06 Nov 2003 12:25:16 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031025 X-Accept-Language: en, en-us, de-de 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:13851 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13851 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