From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Writing to STDOUT from elisp Date: Fri, 11 Jul 2014 14:04:49 +0200 Message-ID: <87r41sayou.fsf@zigzag.favinet> References: <83mwcjdhp8.fsf@gnu.org> <871ttvu6kx.fsf@uwakimon.sk.tsukuba.ac.jp> <87oawzfzi0.fsf@igel.home> <83zjgiaq3i.fsf@gnu.org> <83vbr5b6hy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1405083403 25101 80.91.229.3 (11 Jul 2014 12:56:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2014 12:56:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 11 14:56:37 2014 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 1X5aNQ-0005VY-39 for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2014 14:56:36 +0200 Original-Received: from localhost ([::1]:44641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5aNP-0004Bj-N2 for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2014 08:56:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5aNF-0004B8-BZ for emacs-devel@gnu.org; Fri, 11 Jul 2014 08:56:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5aN7-0006Ej-SF for emacs-devel@gnu.org; Fri, 11 Jul 2014 08:56:25 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:55731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5aN7-0006EZ-NY for emacs-devel@gnu.org; Fri, 11 Jul 2014 08:56:17 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.71) (envelope-from ) id 1X5aN6-0003Sa-Fb for emacs-devel@gnu.org; Fri, 11 Jul 2014 08:56:16 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1X5ZZW-0000ng-Jv for emacs-devel@gnu.org; Fri, 11 Jul 2014 14:05:02 +0200 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Craig Muth's message of "Thu, 10 Jul 2014 11:01:24 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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.6.x X-Received-From: 67.59.132.6 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:172980 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Please find attached an old (needs love) patch to write messages to stderr on exit. Perhaps it can be of use. --=-=-= Content-Type: application/mbox Content-Disposition: attachment; filename=message-to-stderr-on-exit.mbox Content-Transfer-Encoding: base64 RnJvbSBkYTk5NzIwNGNjYWMxNTEzNDUyZTgwMWU5NzRjZjU2ODk1ZjE1NDg2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUaGllbi1UaGkgTmd1eWVu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bWVzc2FnZXMsIGRpc3BsYXkgdGhlbSBu b3cuCisgICAgIFNpbGVudGx5IGlnbm9yZSBpbGwtZm9ybWVkIGRhdGEsIHdoaWNoIGlzIGEgbGF0 ZW50IGJ1Zy4gICovCisgIHdoaWxlIChDT05TUCAoVmVtYWNzX2V4aXRfbWVzc2FnZXMpKQorICAg IHsKKyAgICAgIExpc3BfT2JqZWN0IG1zZyA9IEZjYXIgKFZlbWFjc19leGl0X21lc3NhZ2VzKTsK KyAgICAgIEZJTEUgKnRvID0gc3RkZXJyOworCisgICAgICBpZiAoQ09OU1AgKG1zZykgJiYgSU5U RUdFUlAgKEZjYXIgKG1zZykpKQorICAgICAgICB7CisgICAgICAgICAgaWYgKDEgPT0gWElOVCAo RmNhciAobXNnKSkpCisgICAgICAgICAgICB0byA9IHN0ZG91dDsKKyAgICAgICAgICBtc2cgPSBG Y2RyIChtc2cpOworICAgICAgICB9CisgICAgICBpZiAoU1RSSU5HUCAobXNnKSkKKyAgICAgICAg eworICAgICAgICAgIHNpemVfdCBleHBlY3RlZCA9IFNCWVRFUyAobXNnKTsKKyAgICAgICAgICBz aXplX3QgYWN0dWFsbHkgPSBmd3JpdGUgKFNEQVRBIChtc2cpLCAxLCBleHBlY3RlZCwgdG8pOwor CisgICAgICAgICAgaWYgKGV4cGVjdGVkID4gYWN0dWFsbHkpCisgICAgICAgICAgICBhYm9ydCAo KTsKKyAgICAgICAgfQorICAgICAgVmVtYWNzX2V4aXRfbWVzc2FnZXMgPSBGY2RyIChWZW1hY3Nf ZXhpdF9tZXNzYWdlcyk7CisgICAgfQorCiAgIHN0dWZmX2J1ZmZlcmVkX2lucHV0IChzdHVmZik7 CiAKICAgaW5oaWJpdF9zZW50aW5lbHMgPSAxOwpAQCAtMjMxNCw2ICsyMzM4LDE0IEBAIEJlZm9y ZSBFbWFjcyAyNC4xLCB0aGUgaG9vayB3YXMgbm90IHJ1biBpbiBiYXRjaCBtb2RlLCBpLmUuLCBp ZgogYG5vbmludGVyYWN0aXZlJyB3YXMgbm9uLW5pbC4gICovKTsKICAgVmtpbGxfZW1hY3NfaG9v ayA9IFFuaWw7CiAKKyAgREVGVkFSX0xJU1AgKCJlbWFjcy1leGl0LW1lc3NhZ2VzIiwgVmVtYWNz X2V4aXRfbWVzc2FnZXMsCisgICAgICAgICAgICAgICBkb2M6IC8qIExpc3Qgb2Ygc3RyaW5ncyB0 byBkaXNwbGF5IHRvIHN0ZGVyciBhdCBleGl0LgorVGhlc2UgYXJlIG91dHB1dCBhcy1pcywgc28g eW91IG5lZWQgdG8gaW5jbHVkZSBhIG5ld2xpbmUuCitFYWNoIGVsZW1lbnQgbWF5IGFsc28gaGF2 ZSBmb3JtIChGRCAuIFNUUklORyksIHdoZXJlIEZEIGlzCithIHNtYWxsIGludGVnZXI6IDEgZm9y IHN0YW5kYXJkIG91dHB1dCwgMiBmb3Igc3RhbmRhcmQgZXJyb3IuCitBbGwgb3RoZXIgRkQgdmFs dWVzIGFyZSB0YWtlbiBhcyAyLiAgKi8pOworICBWZW1hY3NfZXhpdF9tZXNzYWdlcyA9IFFuaWw7 CisKICAgREVGVkFSX0xJU1AgKCJwYXRoLXNlcGFyYXRvciIsIFZwYXRoX3NlcGFyYXRvciwKIAkg ICAgICAgZG9jOiAvKiBTdHJpbmcgY29udGFpbmluZyB0aGUgY2hhcmFjdGVyIHRoYXQgc2VwYXJh dGVzIGRpcmVjdG9yaWVzIGluCiBzZWFyY2ggcGF0aHMsIHN1Y2ggYXMgUEFUSCBhbmQgb3RoZXIg c2ltaWxhciBlbnZpcm9ubWVudCB2YXJpYWJsZXMuICAqLyk7Ci0tIAoxLjkuMQoK --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlO/0ucACgkQZwMiJEyAdQIvvACfephHBK2koBQwP9Z+t3dzSk1j v4cAoIBYsVN9xtDCm8Que6ve6IJL4s1y =92LO -----END PGP SIGNATURE----- --==-=-=--