From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: replacing characters and whacky trans-buffer conversion Date: Fri, 09 Mar 2007 15:34:17 -0500 Message-ID: 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=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1173472853 8297 80.91.229.12 (9 Mar 2007 20:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 20:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 21:40:48 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 1HPltH-00012p-8C for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 21:40:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPlta-0006wu-W9 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 15:40:59 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 09 Mar 2007 14:34:18 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:V6Ib9hH79+hzGV+kKDxjyBIFBuw= Original-Lines: 21 Original-NNTP-Posting-Host: 132.204.27.213 Original-X-Trace: sv3-pyNy1imMheiJZus0Ajc6s5elrBR/uJpi/LFLIgQsYN38PsUaynLjCvsPYN3DmB0i0qS0j1y/+tvR8pD!Ra+pohQTSm9P/OGZtBhgbJ9/4ngcVFqjOR/vfgoV9Jg4LTGPhAsjppCPwq9wIShUIBvfVn+rJlY2!6J0RkZfHyxMdRVGivw== Original-X-Complaints-To: abuse@umontreal.ca X-DMCA-Complaints-To: abuse@umontreal.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:146237 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:41841 Archived-At: > In both the *.el file and in the *scratch* buffer > default-enable-multibyte-characters is t. Good (it can't be different: it's a global var. To see differences, you'd have to look at enable-multibyte-characters). > Here's the entirety of the *.el file: Hmm... the problem is that you have bytes in your file, rather than chars. Part of it is likely due to bugs in Emacs (it shouldn't let you get into such a state). Try to open your file and replace all the funny "“" or "\NNN" (3-chars) with "\NNN" (6 chars). Then save&reload. I.e. turn your file into a plain ASCII file. To help you find all the chars you need to replace by escape sequences, you can use C-u C-s [^[:ascii:]] Stefan