help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: predictive mode and 'ã'


From: Mathias Dahl
Subject: Re: predictive mode and 'ã'
Date: Mon, 16 Jul 2007 18:16:08 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt)

weber <hugows@gmail.com> writes:

> Hello folks.
> I'm trying to start using predictive and have this annoying problem.
> It looks like predictive considers portuguese characters like ã or ó
> as end-of-word characters (I have to type them pressing ~ then a,
> maybe that's a problem?)
>
> Here's the situation: when I type 'n', predictive suggests '(0)
> nil'.  If I continue typing 'não' , I end up getting 'nilão'. The
> nil is inserted...

I had the exact same problem and, Toby, the author, helped me debug
it. I don't remember the exact cause, but it didn't help playing with
syntax tables ("some maybe almost might be possibly bug"). Instead I
had to do this, which works and which I hope will help you as well:

(eval-after-load "predictive"
  '(progn
     (completion-define-word-constituent-binding (kbd "é") ?é)
     (completion-define-word-constituent-binding (kbd "å") ?å)
     (completion-define-word-constituent-binding (kbd "ä") ?ä)
     (completion-define-word-constituent-binding (kbd "ö") ?ö)
     (completion-define-word-constituent-binding (kbd "Å") ?Å)
     (completion-define-word-constituent-binding (kbd "Ä") ?Ä)
     (completion-define-word-constituent-binding (kbd "Ö") ?Ö)))

/Mathias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]