From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Why do I need to eval this? Date: Fri, 19 Jan 2007 08:22:49 -0600 Organization: UseNetServer.com Message-ID: <81d66$45b0d43d$49f209a$19347@DIALUPUSA.NET> References: <17835.53962.828333.510421@galena.ime.usp.br><4ee61$45aefddf$49f2619$7384@DIALUPUSA.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 1169217663 10987 80.91.229.12 (19 Jan 2007 14:41:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 14:41:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 15:41:01 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 1H7uvM-00063P-VH for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 15:41:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7uvM-0005qy-IR for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 09:41:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 46 Original-X-Trace: 81d6645b0d43da13a853f19347 Original-Xref: shelby.stanford.edu gnu.emacs.help:144860 Original-To: help-gnu-emacs@gnu.org 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:40464 Archived-At: "Arnaldo Mandel" wrote in message news:mailman.3308.1169210776.2155.help-gnu-emacs@gnu.org... > B. T. Raven wrote (on Jan 17, 2007): > > > > I think is has to be a coding system problem. > > I cannot understand how that would come to be. Can you (or somebody > else) give me a hint of why it goes wrong? > > > I copy pasted your lisp code > > into a buffer and then saved the buffer with an .el extension. After M-x > > load-file and M-x crases it worked for changing all the grave accents to > > tildes in the lisp source. I would recommend that you change your default > > encoding to utf-8. > > I have always uses emacs --unibyte, and everything here is iso8859-1 > encoded. I suppose it would be a real PITA moving to utf-8. It is a PITA but that seems to be the way the world is going. > > Anyway, I solved my problem reimplementing the function in a less > elegant way (used substring searches instead of the assoc list). So, > what remains is just to get a real understanding of what went wrong. > I do not like to see (apparent) bugs going away by simple finesse, I > want to be able to really avoid them. > It seems that your function "can't" be wrong if you're using unibyte but, just out of curiosity, check the representation of all the glyphs in question in both your lisp source and the target file using something like C-x =, just to be sure. > am > > -- > Arnaldo Mandel > am@ime.usp.br > >