From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.devel Subject: Re: filladapt mode stops filling after lengthy amount of emacs uptime Date: Fri, 6 Apr 2007 17:36:59 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175881977 23587 80.91.229.12 (6 Apr 2007 17:52:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2007 17:52:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 06 19:52:27 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZsOL-0002TF-AC for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2007 19:38:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZsRq-0003wg-FC for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2007 13:42:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZsQk-00038M-ER for emacs-devel@gnu.org; Fri, 06 Apr 2007 13:40:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZsQi-00036g-Qc for emacs-devel@gnu.org; Fri, 06 Apr 2007 13:40:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZsQi-00036a-HB for emacs-devel@gnu.org; Fri, 06 Apr 2007 13:40:56 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HZsNC-00078J-La for emacs-devel@gnu.org; Fri, 06 Apr 2007 13:37:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HZsMz-0005vF-PO for emacs-devel@gnu.org; Fri, 06 Apr 2007 19:37:06 +0200 Original-Received: from tapioca.ece.ucdavis.edu ([169.237.74.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Apr 2007 19:37:05 +0200 Original-Received: from john_owens by tapioca.ece.ucdavis.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Apr 2007 19:37:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 169.237.74.159 (Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69129 Archived-At: Howdy, I've got zero response from the SEMI developers. So I hope maybe I can enlist the help of smart folks here to help me fix it myself. The bad function is below: The answer is to make paragraph-start a local variable (make-local-variable). How is this done? Single call to make-local-variable in this function (and that will work)? Where should I put it? A one-sentence explanation of what this does would be very useful for me (I can see having a local variable would be good, but how long does a local variable last, "local variable" to me means "local for the lifetime of the function" - doesn't this function complete immediately after you call it? Thanks - JDO ========================= (defun turn-on-mime-edit () "Unconditionally turn on MIME-Edit mode." (interactive) (if mime-edit-mode-flag (error "You are already editing a MIME message.") (setq mime-edit-mode-flag t) ;; Set transfer level into mode line ;; (setq mime-transfer-level-string (mime-encoding-name mime-transfer-level 'not-omit)) (force-mode-line-update) ;; Define menu for XEmacs. (if (featurep 'xemacs) (mime-edit-define-menu-for-xemacs) ) (enable-invisible) ;; I don't care about saving these. (setq paragraph-start (regexp-or mime-edit-single-part-tag-regexp paragraph-start)) (setq paragraph-separate (regexp-or mime-edit-single-part-tag-regexp paragraph-separate)) (run-hooks 'mime-edit-mode-hook) (message "%s" (substitute-command-keys "Type \\[mime-edit-exit] to exit MIME mode, and type \\[mime-edit-help] to get help.")) ))