From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: C-code : printing into a buffer Date: Fri, 29 May 2009 09:16:00 +0200 Message-ID: References: <22137596.3171251243579388560.JavaMail.www@wwinf4630> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243581382 23621 80.91.229.12 (29 May 2009 07:16:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 07:16:22 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 29 09:16:19 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 1M9wKA-0001uV-Eg for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 09:16:18 +0200 Original-Received: from localhost ([127.0.0.1]:44430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9wK9-0007WD-H6 for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 03:16:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9wK3-0007UB-UR for emacs-devel@gnu.org; Fri, 29 May 2009 03:16:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9wJz-0007PY-7p for emacs-devel@gnu.org; Fri, 29 May 2009 03:16:11 -0400 Original-Received: from [199.232.76.173] (port=59634 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9wJz-0007PD-1Q for emacs-devel@gnu.org; Fri, 29 May 2009 03:16:07 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:43835) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9wJy-0006jP-2k for emacs-devel@gnu.org; Fri, 29 May 2009 03:16:06 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9wJx-00053d-0h for emacs-devel@gnu.org; Fri, 29 May 2009 03:16:05 -0400 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id E92411C00103; Fri, 29 May 2009 09:16:01 +0200 (CEST) X-Auth-Info: GmpqCnCZ3SOjITNyZEMwaqXRAYtHaRUTdhZtNgTAzS8= Original-Received: from whitebox.home (DSL01.83.171.190.190.ip-pool.NEFkom.net [83.171.190.190]) by mail.mnet-online.de (Postfix) with ESMTP id 94D2390A28; Fri, 29 May 2009 09:16:01 +0200 (CEST) Original-Received: by whitebox.home (Postfix, from userid 501) id 1C45F1E53E8; Fri, 29 May 2009 09:16:00 +0200 (CEST) X-Yow: Yow! Legally-imposed CULTURE-reduction is CABBAGE-BRAINED! In-Reply-To: <22137596.3171251243579388560.JavaMail.www@wwinf4630> (A. Soare's message of "Fri, 29 May 2009 08:43:08 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:111179 Archived-At: "A. Soare" writes: > 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? Use sprintf instead. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."