From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: called by a process filter? Date: Thu, 12 May 2005 10:10:33 -0600 Message-ID: References: <874qd95xet.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115914027 18670 80.91.229.2 (12 May 2005 16:07:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 May 2005 16:07:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 12 18:07:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DWGCs-00058Q-G7 for ged-emacs-devel@m.gmane.org; Thu, 12 May 2005 18:06:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWGLq-00042x-JW for ged-emacs-devel@m.gmane.org; Thu, 12 May 2005 12:15:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWGLT-0003wD-W9 for emacs-devel@gnu.org; Thu, 12 May 2005 12:15:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWGLT-0003vg-26 for emacs-devel@gnu.org; Thu, 12 May 2005 12:15:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWGLS-0003v3-Ek for emacs-devel@gnu.org; Thu, 12 May 2005 12:15:30 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DWGPH-0005bm-9x for emacs-devel@gnu.org; Thu, 12 May 2005 12:19:27 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DWG9e-0004bk-GQ for emacs-devel@gnu.org; Thu, 12 May 2005 18:03:18 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2005 18:03:18 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2005 18:03:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <874qd95xet.fsf-monnier+emacs@gnu.org> 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:37043 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37043 Stefan Monnier wrote: > Could you give us more info about what you're trying to do. Maybe > there's a better way. There certainly is a better way, suggested on gnu.emacs.sources several years ago by Dave Love, but I haven't had the time to properly generalize it. What I'd like to do right now is help someone using my legacy code, with a patch to work around this problem. You are also correct, that this after-change-function implements a minor mode, and that I'm hoping for a general solution like Richard proposed (vs. advising every filter function as Kim proposed). It just seems to me that the command loop info variables and functions ought to return distinctly different values forms are evaluated outside of that context. -- Kevin Rodgers