From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: replacing characters and whacky trans-buffer conversion Date: Thu, 08 Mar 2007 06:55:57 -0500 Message-ID: <45EFF9CD.5030309@speakeasy.net> References: <45ED8574.3040201@speakeasy.net> <45EF2512.9060200@speakeasy.net> <45EF28B8.2050905@speakeasy.net> <953CC6C7-14E6-4321-8899-665613380DC2@Web.DE> <45EFE810.8010009@speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173354985 23611 80.91.229.12 (8 Mar 2007 11:56:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 11:56:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 12:56:19 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPHEJ-0006af-2m for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 12:56:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPHEV-0002Fh-7H for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 06:56:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPHEG-0002Fb-R1 for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 06:56:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPHEF-0002FN-Fb for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 06:56:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPHEF-0002FK-9Y for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 06:56:15 -0500 Original-Received: from mail7.sea5.speakeasy.net ([69.17.117.9]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPHE2-0003St-6n for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 06:56:02 -0500 Original-Received: (qmail 30345 invoked from network); 8 Mar 2007 11:56:00 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Mar 2007 11:56:00 -0000 User-Agent: Thunderbird 2.0pre (X11/20070214) In-Reply-To: <45EFE810.8010009@speakeasy.net> X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41791 Archived-At: On 03/08/2007 05:40 AM somebody named ken wrote: > On 03/08/2007 02:50 AM somebody named Stefan Monnier wrote: >>> The first buffer is a *scratch* buffer, the modeline starts "--:". The >>> second contains the *.el file mentioned in the original post; its >>> modeline begins "-:". >> For some reason this second buffer is in unibyte mode. >> That's the source of your problem. Tell us how you created that buffer. > > C-x C-f > > .... I should add that this is how I create most all files in emacs. Occasionally I'll use vi(m) to create or edit a file and subsequently edit it using emacs. Less occasionally I'll use "cat > filename" to create a file, or "[some (series of) command(s)] > filename" and then pull it into emacs. And, as mentioned earlier, sometimes I'll open a file (C-x C-f) and yank the clipboard contents into it. It seems you're implying that different means of creating a file will force emacs' use of different character encodings, yes? (Actually, I've encountered many times that emacs, after C-x C-s, tells me to select some other encoding system... which I almost never want to do.) tnx -- "Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds." -- Samuel Butler