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: Re: line length control setting Date: Sat, 08 Nov 2003 15:47:49 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FAD0215.3050809@cyberspaceroad.com> References: 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 1068303229 4283 80.91.224.253 (8 Nov 2003 14:53:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2003 14:53:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 15:53:46 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 1AIUTC-0007Cf-00 for ; Sat, 08 Nov 2003 15:53:46 +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 1AIVNQ-000084-K6 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Nov 2003 10:51:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AIVMK-0008Le-JH for help-gnu-emacs@gnu.org; Sat, 08 Nov 2003 10:50:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AIVLm-0008E3-RW for help-gnu-emacs@gnu.org; Sat, 08 Nov 2003 10:50:42 -0500 Original-Received: from [212.227.126.185] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIVLi-0008Bp-12 for help-gnu-emacs@gnu.org; Sat, 08 Nov 2003 10:50:06 -0500 Original-Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AIUOG-0002Zt-00 for help-gnu-emacs@gnu.org; Sat, 08 Nov 2003 15:48:40 +0100 Original-Received: from [217.228.254.74] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AIUOG-0002PF-00 for help-gnu-emacs@gnu.org; Sat, 08 Nov 2003 15:48:40 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en, en-us, de-de Original-To: help-gnu-emacs@gnu.org In-Reply-To: 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:13953 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13953 On 11/07/2003 07:40 PM Gareth Rees wrote: > Adam Hardy wrote: > >>I am using a brute force method of stopping myself from writing long >>lines of code, using this in my .emacs: > > > It's very drastic to do this using 'after-change-functions'; this stops > you from doing useful operations that temporarily create long lines that > you then propose to reformat (such as query-replace, delete-indentation, > or indent-region). > > I suggest you use 'local-write-file-hooks' instead, perhaps using Line > Limit Mode, as described in this post to comp.emacs: > http://groups.google.com/groups?selm=uhfdaw35e.fsf%40pobox.com From what I can tell, it looks like it only alerts me to the over-long lines when I try to save - which would be too late for the way I work - or have I misunderstood it? Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 RH9