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: Fri, 09 Mar 2007 05:21:44 -0500 Message-ID: <45F13538.5010805@speakeasy.net> References: <45ED8574.3040201@speakeasy.net> <45EF2512.9060200@speakeasy.net> <45EF28B8.2050905@speakeasy.net> <953CC6C7-14E6-4321-8899-665613380DC2@Web.DE> 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 1173435729 4330 80.91.229.12 (9 Mar 2007 10:22:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 10:22:09 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 11:22:05 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 1HPcEe-0003xm-Kb for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 11:22:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPcEw-0004cs-1o for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 05:22:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPcEk-0004cn-8E for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 05:22:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPcEh-0004cb-MQ for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 05:22:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPcEh-0004cY-H3 for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 05:22:07 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPcEN-0001om-Pa for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 05:21:48 -0500 Original-Received: (qmail 31246 invoked from network); 9 Mar 2007 10:21:46 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Mar 2007 10:21:46 -0000 User-Agent: Thunderbird 2.0pre (X11/20070214) In-Reply-To: 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:41823 Archived-At: On 03/08/2007 08:51 PM 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've further discovered that it's not even a matter of cutting & pasting/yanking. If I simply enter C-q 5 5 4 2 RETURN in *.el and again in *scratch*, this results in a different character in each buffer, the *.el file getting it wrong (which is the kern of the problem). -- "Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds." -- Samuel Butler