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: Thu, 13 Nov 2003 10:49:19 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FB3539F.8040309@cyberspaceroad.com> References: <87n0b3auxe.fsf@ID-87814.user.dfncis.de> 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 1068717183 18713 80.91.224.253 (13 Nov 2003 09:53:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2003 09:53:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 10:53:00 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 1AKE9s-0000mr-00 for ; Thu, 13 Nov 2003 10:53:00 +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 1AKF6M-0000zX-Ct for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2003 05:53:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AKF5L-0000iw-LE for help-gnu-emacs@gnu.org; Thu, 13 Nov 2003 05:52:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AKF4a-0000W7-4c for help-gnu-emacs@gnu.org; Thu, 13 Nov 2003 05:52:07 -0500 Original-Received: from [212.227.126.188] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AKF4Z-0000VK-8I for help-gnu-emacs@gnu.org; Thu, 13 Nov 2003 05:51:35 -0500 Original-Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AKE78-00008m-00 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2003 10:50:10 +0100 Original-Received: from [80.128.23.242] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AKE77-0004XA-00 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2003 10:50:10 +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 In-Reply-To: <87n0b3auxe.fsf@ID-87814.user.dfncis.de> 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:14139 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14139 On 11/11/2003 02:47 PM Oliver Scholz wrote: > Adam Hardy writes: >>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. > > > Well, you could just check whether the current buffer is the > minibuffer: > > (when (and (not (minibufferp)) > (> (current-column) > fill-column)) > ...) > Hi Oliver, emacs is choking on (minibufferp) - says it's a null-function. I presume it's saying it doesn't exist? I can't find any mention of it in the help. Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 RH9