From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: called by a process filter? Date: Thu, 12 May 2005 07:16:03 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115896689 20436 80.91.229.2 (12 May 2005 11:18:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 May 2005 11:18:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 12 13:18:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DWBhY-00030H-7G for ged-emacs-devel@m.gmane.org; Thu, 12 May 2005 13:18:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWBqT-000415-Rw for ged-emacs-devel@m.gmane.org; Thu, 12 May 2005 07:27:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWBnB-000375-J4 for emacs-devel@gnu.org; Thu, 12 May 2005 07:23:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWBn1-00031I-1A for emacs-devel@gnu.org; Thu, 12 May 2005 07:23:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWBn0-0002za-5C for emacs-devel@gnu.org; Thu, 12 May 2005 07:23:38 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DWBnT-0004xE-Lw for emacs-devel@gnu.org; Thu, 12 May 2005 07:24:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DWBff-0003wZ-2F; Thu, 12 May 2005 07:16:03 -0400 Original-To: Kevin Rodgers In-reply-to: (message from Kevin Rodgers on Wed, 11 May 2005 13:39:08 -0600) 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:37027 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37027 Is there a way to tell whether a function was called via process filter? Not currently. We could envision making the code that calls process filters bind this-command to the process that sent the output. That is an incompatible change, but your arguments show that probably the code that runs in filters would not want to test this-command, so it probably won't break anything. We could also create a new variable, perhaps this-process, and bind that instead. I think the former is more elegant.