From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "A. Soare" Newsgroups: gmane.emacs.devel Subject: Re: C-code : printing into a buffer Date: Fri, 29 May 2009 09:49:05 +0200 (CEST) Message-ID: <14301356.3397951243583345455.JavaMail.www@wwinf4609> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243583365 28787 80.91.229.12 (29 May 2009 07:49:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 07:49:25 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 29 09:49:22 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M9wq9-00065g-K5 for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 09:49:21 +0200 Original-Received: from localhost ([127.0.0.1]:44402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9wq8-00044X-R3 for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 03:49:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9wq2-000402-EG for emacs-devel@gnu.org; Fri, 29 May 2009 03:49:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9wpx-0003o1-VD for emacs-devel@gnu.org; Fri, 29 May 2009 03:49:13 -0400 Original-Received: from [199.232.76.173] (port=56530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9wpx-0003nV-Oz for emacs-devel@gnu.org; Fri, 29 May 2009 03:49:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:46534) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9wpx-0006Sm-8g for emacs-devel@gnu.org; Fri, 29 May 2009 03:49:09 -0400 Original-Received: from smtp3.voila.fr ([193.252.22.173] helo=smtp1.voila.fr) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9wpw-0007TT-Ef for emacs-devel@gnu.org; Fri, 29 May 2009 03:49:08 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4919.voila.fr (SMTP Server) with ESMTP id 7C26170000A0; Fri, 29 May 2009 09:49:05 +0200 (CEST) Original-Received: from wwinf4609 (wwinf4609 [10.232.13.52]) by mwinf4919.voila.fr (SMTP Server) with ESMTP id 708EE7000084; Fri, 29 May 2009 09:49:05 +0200 (CEST) X-ME-UUID: 20090529074905461.708EE7000084@mwinf4919.voila.fr X-Originating-IP: [91.201.80.240] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~| X-WUM-REPLYTO: |~| X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111180 Archived-At: >=20 > "A. Soare" writes: >=20 > > My problem is to define a buffer in emacs such that in the moment when = I call this function via a pointer, all its output to be discarged in that = buffer, not in the terminal of emacs. > > > > Is that possible? Any ideas of how to solve it? >=20 > Use sprintf instead. >=20 No, printf is just an example. I want to do something such that the output = from _all_ the functions of libc be redirected to a buffer of emacs, not ju= st printf. Saying, temporary to define the terminal of emacs as a buffer of= emacs. Al.in ____________________________________________________ D=C3=A9couvrez le nouveau Voila.fr et apprenez =C3=A0 ma=C3=AEtriser le web= 2.0=C2=A0sur http://voila.fr