From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: ielm changes: display standard-output in buffer Date: Thu, 26 Sep 2013 20:37:28 -0700 Message-ID: <5244FD78.5010401@dancol.org> References: <5244795A.2000009@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Mex4XSc1TAXXxwPJ5dfaKaMLROPebTr1r" X-Trace: ger.gmane.org 1380253143 7812 80.91.229.3 (27 Sep 2013 03:39:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Sep 2013 03:39:03 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 27 05:39:06 2013 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 1VPOtW-0003a6-85 for ged-emacs-devel@m.gmane.org; Fri, 27 Sep 2013 05:39:06 +0200 Original-Received: from localhost ([::1]:32914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPOtV-0005YT-EA for ged-emacs-devel@m.gmane.org; Thu, 26 Sep 2013 23:39:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPOtL-0005Vp-4y for emacs-devel@gnu.org; Thu, 26 Sep 2013 23:39:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPOtC-0002NP-LM for emacs-devel@gnu.org; Thu, 26 Sep 2013 23:38:54 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:43230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPOtC-0002Mx-FR for emacs-devel@gnu.org; Thu, 26 Sep 2013 23:38:46 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.2]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VPOt3-0007vP-IX; Thu, 26 Sep 2013 20:38:37 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: X-Enigmail-Version: 1.5.2 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:163669 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Mex4XSc1TAXXxwPJ5dfaKaMLROPebTr1r Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 9/26/13 1:49 PM, Stefan Monnier wrote: >> How does this change look? >=20 > Looks OK, but see comments/questions. Thanks for taking a look. >=20 >> +;;; -*- lexical-binding: t -*- >> ;;; ielm.el --- interaction mode for Emacs Lisp >=20 > Please just put -*- lexical-binding: t -*- at the end of the first line= Sure. >> +(defun ielm-standard-output-impl (char) >=20 > I don't really understand the standard-output part of your patch. > Could you provide a simple example where it makes a difference (and put= > it in some comment somewhere in the code)? Sure: it's a new feature: the basic idea is that if a form being evaluated through ielm writes to standard-output (say, using princ), that output appears in the ielm buffer, making it work more like a normal command line. I looked into doing the same thing for message output, but I couldn't get after-change-functions in *Messages* to run reliably. --Mex4XSc1TAXXxwPJ5dfaKaMLROPebTr1r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) iQIcBAEBAgAGBQJSRP1+AAoJEMAaIROpHW7IzXQP/1leIH4CIFqEybyqgOuOdY7b q0WjMzKS77RJ5BXiIEW0/8gLb1xkO2xTBkqJTMPum3k2qVDkCezZpgwpe/UibmCk scUeGsuCxXFpA17qs/A5NpTL4iMP8pbi+Q7u40WMqGwgT9KmzbD1rC6P6Nx/FDkJ jvMRrCZzPSP6avOKep1FqBtosUXkwLQ1mkTWHl8yCDd1aH8RNAWTFSfRXcQPdQWj IpnJQRhkcD5VaCLY5OTWODgki2klJjyKQvTWnmpYgYoLPOhgZ9ImZOxRpji3PFqa kv1w3/kbpSDqqe9cwLqYqPYikQPxaA70lKX3cJoe2dz1488jMDN0wmngiBElQEv2 2lsoXTmhY/ExpOwAm0trIlA9AmPHVbULFIX/MLB/VvAosmyAp6cGS2IJc58VPlqL CEfJzDZ7locxjDHydD4ZA04GC4MENChSxH+s5TzRjc+bW9E58t1fD/A/4QPbMq+X UEcqwOFyacFDajZWCbiE0Ii3V38sMByYMgpCScUU4ZQgoc8mzJLH57mPnUmw2ure F7evXI+0iH3rZeF+jVX4ZiQCRabEUq4cLzILBB8uoLMMJJnWG8uqx7ADDehjIVhd FquqmMm/adJby2q+XGWGHOadYPOT4n+CX3jIfPQRUUjxMfQoPh6DE+Kc8O0Sj4Q6 9fuVyfjob2MjzAHV/8fx =bYak -----END PGP SIGNATURE----- --Mex4XSc1TAXXxwPJ5dfaKaMLROPebTr1r--