From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: hijack C function, use it transparently with in-between layer Date: Tue, 07 Jun 2016 18:22:36 +0300 Message-ID: <83fusprpkz.fsf@gnu.org> References: <868tyjnghn.fsf@student.uu.se> <868tyi4jss.fsf@student.uu.se> <86ziqy30mp.fsf@student.uu.se> <8660tl3oo9.fsf@student.uu.se> <87wpm1tfqr.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465313533 6883 80.91.229.3 (7 Jun 2016 15:32:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 15:32:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 17:32:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1bAIyz-0008Nm-Jh for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 17:31:57 +0200 Original-Received: from localhost ([::1]:50992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIyy-0004I3-Qw for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 11:31:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIpU-0003yB-Ox for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAIpQ-0005cq-EH for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:22:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAIpQ-0005cm-B7 for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:22:04 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4659 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bAIpO-0000ZY-1T for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:22:02 -0400 In-reply-to: <87wpm1tfqr.fsf@russet.org.uk> (phillip.lord@russet.org.uk) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:110364 Archived-At: > From: phillip.lord@russet.org.uk (Phillip Lord) > Date: Tue, 07 Jun 2016 12:12:12 +0100 > > The messaging framework of Emacs is a little under-powered at the > moment -- one which bugs me, for instance, is Emacs has now (lisp level) > ability to write to standard out. ??? What's wrong with /dev/stdout (as long as you are on a Posix system)? As in (append-to-file "Hi, there!\n" nil "/dev/stdout") > Probably the best way to achieve this would be to pull message out > of C and into lisp. 'message' is just a thin wrapper around format-message, which I don't see being rewritten in Lisp any time soon. In any case, if you want more flexibility in the available destinations, the way to achieve that is by adding new kinds of streams, so that all the print functions could benefit from that, not just 'message'.