From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [HELP] (bug?) Saving a buffer without any conversion? Date: Thu, 16 Jan 2003 10:18:21 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301160118.KAA10855@etlken.m17n.org> References: <87fzrxszs8.fsf@lexx.delysid.org> <200301150116.KAA09223@etlken.m17n.org> <5xk7h67k1b.fsf@kfs2.cua.dk> <200301151059.TAA09873@etlken.m17n.org> <5xbs2i7dc4.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1042679919 25649 80.91.224.249 (16 Jan 2003 01:18:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 01:18:39 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Yyg2-0006fZ-00 for ; Thu, 16 Jan 2003 02:18:38 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Yyoj-0001aR-00 for ; Thu, 16 Jan 2003 02:27:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18YyhJ-0004lb-00 for emacs-devel@quimby.gnus.org; Wed, 15 Jan 2003 20:19:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18YygC-0003lu-00 for emacs-devel@gnu.org; Wed, 15 Jan 2003 20:18:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Yyg0-0003JO-00 for emacs-devel@gnu.org; Wed, 15 Jan 2003 20:18:37 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Yyfx-00037k-00 for emacs-devel@gnu.org; Wed, 15 Jan 2003 20:18:33 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h0G1IMk13437; Thu, 16 Jan 2003 10:18:22 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h0G1ILR10535; Thu, 16 Jan 2003 10:18:21 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA10855; Thu, 16 Jan 2003 10:18:21 +0900 (JST) Original-To: storm@cua.dk In-reply-to: <5xbs2i7dc4.fsf@kfs2.cua.dk> (storm@cua.dk) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: mlang@delysid.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10773 In article <5xbs2i7dc4.fsf@kfs2.cua.dk>, storm@cua.dk (Kim F. Storm) writes: > I think we need to write something about this somewhere. Sure. > E.g. add this to the doc string for `set-process-filter': > If the process' input coding system is no-conversion or raw-text, the > string argument to the filter function is a unibyte string; otherwise > it is a multibyte string. More precisely, If the process' input coding system is no-conversion or raw-text, the string argument to the filter function is a unibyte string; otherwise if default-enable-multibyte-characters is nil, the string is a unibyte string that is converted from a multibyte string (that is the decoding result) by string-make-unibyte. In the other case, the string is a multibyte string. Could you paraphrase the above into a better English and add it in the docstring? > Use `string-as-multibyte' on a unibyte > string before inserting it in a multibyte buffer. As Eli wrote, it is better to add something like the above in the docstring of insert. > Note: If the sole purpose of the filter is to insert received data > into a specific buffer, it is better NOT to define a process filter, > but instead set the process' buffer to that buffer. I think the above should go to Elisp info, not to the docstring. --- Ken'ichi HANDA handa@m17n.org