From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Intercepting input in comint Date: Fri, 4 Dec 2015 12:08:00 +0100 Message-ID: <56617410.3020702@thregr.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1449227300 923 80.91.229.3 (4 Dec 2015 11:08:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 11:08:20 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?Q?Elias_M=c3=a5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 04 12:08:15 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a4oDn-0005tS-0R for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2015 12:08:15 +0100 Original-Received: from localhost ([::1]:39998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oDm-00072d-KT for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2015 06:08:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oDh-0006xk-Ug for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:08:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4oDd-00070M-Vc for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:08:09 -0500 Original-Received: from e.thregr.org ([80.68.88.20]:37096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oDd-0006yu-Pq for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:08:05 -0500 Original-Received: from [2a02:27e8:20:9049:8edc:d4ff:fed6:5d5b] by e.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86) (envelope-from ) id 1a4oDa-0007rC-0K; Fri, 04 Dec 2015 12:08:02 +0100 Original-Newsgroups: gmane.emacs.devel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Icedove/42.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 80.68.88.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195879 Archived-At: On 03/12/15 14:16, Elias MÃ¥rtenson wrote: > You can do this by setting comint-input-sender to a function that can > intercept the entered commands. > > I'm doing exactly this in > gnu-apl-mode: https://github.com/lokedhs/gnu-apl-mode/blob/a4fdcede138a4777b1fa3780574ef931d155f464/gnu-apl-interactive.el#L219 Thanks for the example. Very helpful. I feared to miss some other higher-level entry points I could use.