From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: suggestion: function: buffer-bytes Date: Mon, 02 Jul 2007 09:48:15 +0900 Message-ID: References: <18054.62174.507770.924924@gargle.gargle.HOWL> <18055.5127.154758.705881@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1183337323 8668 80.91.229.12 (2 Jul 2007 00:48:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 00:48:43 +0000 (UTC) Cc: raman@users.sourceforge.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 02 02:48:40 2007 connect(): Connection refused 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 1I5A5m-0001ZT-67 for ged-emacs-devel@m.gmane.org; Mon, 02 Jul 2007 02:48:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5A5l-0007Pn-E5 for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 20:48:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5A5i-0007Nk-3p for emacs-devel@gnu.org; Sun, 01 Jul 2007 20:48:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5A5h-0007MP-GS for emacs-devel@gnu.org; Sun, 01 Jul 2007 20:48:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5A5h-0007ME-69 for emacs-devel@gnu.org; Sun, 01 Jul 2007 20:48:33 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5A5g-0001Mf-6s for emacs-devel@gnu.org; Sun, 01 Jul 2007 20:48:32 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l620mLdl029684; Mon, 2 Jul 2007 09:48:21 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l620mKat000442; Mon, 2 Jul 2007 09:48:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l620mFnv015993; Mon, 2 Jul 2007 09:48:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1I5A5P-0002sz-PO; Mon, 02 Jul 2007 09:48:15 +0900 In-reply-to: (message from Stefan Monnier on Sun, 01 Jul 2007 08:39:03 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: Solaris 8 (1) 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:74167 Archived-At: In article , Stefan Monnier writes: > > Then perhaps what you need is this. > > (defun buffer-encoded-size (&optional buffer coding) > But in his case, he's probably better off just encoding the buffer manually > before passing the data to the process/network, so that he can get his hands > on the number of bytes with just buffer-size. Perhaps. But, I don't know how and when the data is passed to the process and when he needs the encoded byte size. --- Kenichi Handa handa@m17n.org