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

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

Re: Abbrev-mode question


From: Leschinsky Oleg
Subject: Re: Abbrev-mode question
Date: Wed, 12 Sep 2007 12:20:16 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Evening, Stefan Monnier. 

Stefan Monnier 02:13 12/9/2007 wrote:

 SM> An abbrev-mode in ELisp with the same behavior as the current one is
 SM> about as fast as it is in C.  Extending it to multi-word abbrevs might
 SM> slow it down significantly, but that's also true in C.  The main issue
 SM> is rather how to avoid the slowdown, which depends on further info:
 SM>  - how many multi-word abbrevs are we talking about?

Several hundreds. No more than thousand.

 SM>  - how can we determine the start (so as not to mistake "afool bo" for a 
case where
 SM> the "ol bo" abbrev should be expanded)?  Should it also necessarily
 SM> start with a word boundary?

As this is for text in natual language, abbrevs start and end on word 
boundaries.

 SM>  - can be put a reasonable upper limit on
 SM> the number of words in a multi-word abbrev (2 or 3, maybe)?

5 words is a limit.

 SM>         Stefan "whose abbrev-mode is all written in ELisp"







reply via email to

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