From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arnaldo Mandel Newsgroups: gmane.emacs.help Subject: Re: Why do I need to eval this? Date: Fri, 19 Jan 2007 10:46:40 -0200 Message-ID: <17840.48560.734231.654863@galena.ime.usp.br> References: <17835.53962.828333.510421@galena.ime.usp.br> <4ee61$45aefddf$49f2619$7384@DIALUPUSA.NET> NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1169210800 17499 80.91.229.12 (19 Jan 2007 12:46:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 12:46:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 13:46:35 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 1H7t8a-0002Hm-P7 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 13:46:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7t8Z-0003DE-TX for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 07:46:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7t8J-0003D3-Le for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 07:46:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7t8G-0003Cm-E5 for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 07:46:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7t8G-0003Cj-BB for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 07:46:12 -0500 Original-Received: from [143.107.45.59] (helo=birosca.ime.usp.br) by monty-python.gnu.org with smtp (Exim 4.52) id 1H7t8F-0006ya-LU for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 07:46:12 -0500 Original-Received: (qmail 1819 invoked from network); 19 Jan 2007 12:45:03 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1-r2 (http://www.enderunix.org/qsheff/) Original-Received: from galena.ime.usp.br (143.107.45.17) by birosca.ime.usp.br with QMQP; 19 Jan 2007 12:44:59 -0000 Original-To: help-gnu-emacs@gnu.org Original-Newsgroups: gnu.emacs.help In-Reply-To: <4ee61$45aefddf$49f2619$7384@DIALUPUSA.NET> X-Mailer: VM 7.03 under Emacs 21.2.2 Full-Name: Arnaldo Mandel 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:40460 Archived-At: 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. 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. am -- Arnaldo Mandel am@ime.usp.br