unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <ecinmn@alcisp.com>
Subject: Re: Why do I need to eval this?
Date: Wed, 17 Jan 2007 22:55:56 -0600	[thread overview]
Message-ID: <4ee61$45aefddf$49f2619$7384@DIALUPUSA.NET> (raw)
In-Reply-To: mailman.3142.1168948826.2155.help-gnu-emacs@gnu.org


"Arnaldo Mandel" <am@ime.usp.br> 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.

  parent reply	other threads:[~2007-01-18  4:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-15 19:15 Why do I need to eval this? Arnaldo Mandel
2007-01-15 22:10 ` Reiner Steib
2007-01-16 12:00   ` Arnaldo Mandel
     [not found]   ` <mailman.3142.1168948826.2155.help-gnu-emacs@gnu.org>
2007-01-18  4:55     ` B. T. Raven [this message]
2007-01-19 12:46       ` Arnaldo Mandel
     [not found]       ` <mailman.3308.1169210776.2155.help-gnu-emacs@gnu.org>
2007-01-19 14:22         ` B. T. Raven
     [not found] <mailman.3105.1168892132.2155.help-gnu-emacs@gnu.org>
2007-01-16  2:44 ` HS

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4ee61$45aefddf$49f2619$7384@DIALUPUSA.NET' \
    --to=ecinmn@alcisp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).