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: Wed, 17 Jan 2007 22:55:56 -0600 Organization: UseNetServer.com Message-ID: <4ee61$45aefddf$49f2619$7384@DIALUPUSA.NET> References: <17835.53962.828333.510421@galena.ime.usp.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1169098831 13828 80.91.229.12 (18 Jan 2007 05:40:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 05:40:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 06:40:29 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 1H7Q0f-0000bU-7H for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 06:40:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7Q0f-0007iT-Qm for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 00:40:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.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: 42 Original-X-Trace: 4ee6145aefddfa13a83bc07384 Original-Xref: shelby.stanford.edu gnu.emacs.help:144804 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:40409 Archived-At: "Arnaldo Mandel" wrote in message news:mailman.3142.1168948826.2155.help-gnu-emacs@gnu.org... > Reiner Steib wrote (on Jan 15, 2007): > > On Mon, Jan 15 2007, Arnaldo Mandel wrote: > > > > > Here is a short utility command that is useful to those writing > > > Portuguese on US keyboards: > > > > What's wrong with `M-x set-input-method RET portuguese-prefix RET'? > > Unrelated; I am already using an adequate input-method. > > US keyboards have ` and ~ on the same key, ~ is shifted `. The key is > in the NW corner, just below ESC. In order to get, say ã (a tilda), > the input method I use requires one to key first a tilda, then a. > > It often happens that fingers stumble, and instead of Shift-`, just a > ` is keyed, so, instead of ã (a tilda) one gets à (a grave). This > occurs quite frequently. > > That little function helps correcting these errors afterwards, on > a single swipe over the buffer, so that even when one notices that the > error occurred, one does not need to break the typing to correct it. > > So, that gives the rationale for designing the function. However, > even if there was no reason at all for it, the puzzle remains: > > when evaluated in a given session, it performs according to > specification; when loaded, whether byte-compiled or not, it > doesn't. > > am I think is has to be a coding system problem. 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. Ed.