all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: hijack C function, use it transparently with in-between layer
Date: Tue, 07 Jun 2016 18:22:36 +0300	[thread overview]
Message-ID: <83fusprpkz.fsf@gnu.org> (raw)
In-Reply-To: <87wpm1tfqr.fsf@russet.org.uk> (phillip.lord@russet.org.uk)

> 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'.



  reply	other threads:[~2016-06-07 15:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06  3:28 hijack C function, use it transparently with in-between layer Emanuel Berg
2016-06-06  3:46 ` Marcin Borkowski
2016-06-06  7:32 ` Barry Margolin
2016-06-06 10:55   ` Emanuel Berg
2016-06-06 11:30   ` Phillip Lord
     [not found]   ` <mailman.967.1465212644.1216.help-gnu-emacs@gnu.org>
2016-06-06 11:51     ` Emanuel Berg
2016-06-06 13:12       ` Stefan Monnier
     [not found]       ` <mailman.971.1465218784.1216.help-gnu-emacs@gnu.org>
2016-06-06 13:30         ` Emanuel Berg
2016-06-06 13:58           ` Stefan Monnier
     [not found]           ` <mailman.974.1465221532.1216.help-gnu-emacs@gnu.org>
2016-06-06 14:42             ` Barry Margolin
2016-06-06 14:58               ` Stefan Monnier
2016-06-06 23:03               ` Emanuel Berg
2016-06-06 23:44                 ` Barry Margolin
2016-06-07  1:12                   ` Emanuel Berg
2016-06-06 23:49                 ` John Mastro
     [not found]                 ` <mailman.1031.1465256987.1216.help-gnu-emacs@gnu.org>
2016-06-07  1:08                   ` Emanuel Berg
2016-06-07 11:12                 ` Phillip Lord
2016-06-07 15:22                   ` Eli Zaretskii [this message]
2016-06-07 17:05                   ` Emanuel Berg
     [not found]                 ` <mailman.1050.1465298004.1216.help-gnu-emacs@gnu.org>
2016-06-07 12:00                   ` Emanuel Berg
2016-06-06 14:40     ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fusprpkz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.