From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: How to pass messages between emacs and a Python program? (goal: trying to use emacs as a UI) Date: Fri, 26 Aug 2016 10:14:35 +0200 Message-ID: <87wpj42bh0.fsf@zigzag.favinet> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1472217471 14059 195.159.176.226 (26 Aug 2016 13:17:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2016 13:17:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Brian Merchant Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 15:17:42 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdH0s-0002k4-Si for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 15:17:38 +0200 Original-Received: from localhost ([::1]:60467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdH0p-0006NQ-K8 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 09:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdH05-0006MH-N0 for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 09:16:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdGzz-0000l9-Sw for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 09:16:48 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:48048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdGzz-0000l3-PN for help-gnu-emacs@gnu.org; Fri, 26 Aug 2016 09:16:43 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.82) (envelope-from ) id 1bdFsC-0006bq-1Z; Fri, 26 Aug 2016 08:04:36 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1bdCHk-0005mI-Jn; Fri, 26 Aug 2016 10:14:44 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Brian Merchant's message of "Thu, 25 Aug 2016 15:18:19 -0700") X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 67.59.132.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111203 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Brian Merchant () Thu, 25 Aug 2016 15:18:19 -0700 Could this be done? If the program can read stdin and write stdout, you could make it into a REPL. Probably the easiest would be to adapt Inferior Python mode (try =E2=80=98M-x run-python RET=E2=80=99 and then =E2=80=98C-h= m=E2=80=99 in the resulting buffer, for details). I think that would be easier than a "live update"-style design, although certainly that is possible as well (w/ a SMOP). =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (defun responsep (type via) (case type (technical (eq 'mailing-list via)) ...)) 748E A0E8 1CB8 A748 9BFA =2D-------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAle/+m4ACgkQZwMiJEyAdQLBcwCfczFflEsc1z/GdCpMkgkyiT5m kj0AoLgRXqhXqjWcwyKtW2Fiklr33tfT =yuXL -----END PGP SIGNATURE----- --=-=-=--