From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leschinsky Oleg Newsgroups: gmane.emacs.help Subject: Re: Abbrev-mode question Date: Thu, 13 Sep 2007 11:23:34 +0300 Message-ID: <87ejh3km7t.fsf@leschinsky.in.ua> References: <87abrt8rdd.fsf@leschinsky.in.ua> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189671930 18251 80.91.229.12 (13 Sep 2007 08:25:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 08:25:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 10:25: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 1IVk0j-0000Bc-Nv for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 10:25:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVk0j-0000E9-BH for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 04:25:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVjzX-0007hZ-EY for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 04:24:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVjzV-0007fb-ET for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 04:24:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVjzV-0007fJ-0l for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 04:24:01 -0400 Original-Received: from leschinsky.in.ua ([82.193.101.91]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IVjzU-0003yU-79 for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 04:24:00 -0400 Original-Received: from helge by leschinsky.in.ua with local (Exim 4.67) (envelope-from ) id 1IVjz4-0004UM-73 for help-gnu-emacs@gnu.org; Thu, 13 Sep 2007 11:23:34 +0300 In-Reply-To: (Stefan Monnier's message of "Wed, 12 Sep 2007 16:04:01 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 3) 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:47553 Archived-At: Evening, Stefan Monnier. Stefan Monnier 16:04 12/9/2007 wrote: SM> Currently, abbrevs work by extracting the word before point and SM> looking it up in a hash-table, so it does not get noticeably slower in SM> the presence of many abbrevs. Somehow XEmacs don't become much slower. Maybe its because multi-language nature of text (see below). >> As this is for text in natual language, abbrevs start and end on >> word boundaries. SM> I did understand that your abbrev expansions are natural language, but SM> it wasn't obvious that you chose to name your abbrevs in a similar SM> way. >> 5 words is a limit. SM> Would it be OK to add a constraint such as that words in an abbrev SM> need to be connected with hyphens? And if you have an abbrev SM> "foo-bar", would it be OK for it *not* to be expanded in a case like SM> "toto-foo-bar"? I have better (I think) constraint: abbrevs consist of english words when all other words are ukrainian/russian (cyrillic). So only several words before point consisting of [a-zA-Z- ] need expanding as abbrevs. I'm using XEmacs/Emacs to translate text from english to ukrainian/russian, so abbrev mode plays role of dictionary for terminology. Is there another tool for this task (automagic replacing of terms by their translation) that I don't know about?