From: Leschinsky Oleg <helge@leschinsky.in.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: Abbrev-mode question
Date: Thu, 13 Sep 2007 11:23:34 +0300 [thread overview]
Message-ID: <87ejh3km7t.fsf@leschinsky.in.ua> (raw)
In-Reply-To: <jwvtzpzvesc.fsf-monnier+gnu.emacs.help@gnu.org> (Stefan Monnier's message of "Wed, 12 Sep 2007 16:04:01 -0400")
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?
next prev parent reply other threads:[~2007-09-13 8:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 9:48 Abbrev-mode question Leschinsky Oleg
2007-09-11 19:13 ` Andreas Röhler
[not found] ` <mailman.722.1189537888.18990.help-gnu-emacs@gnu.org>
2007-09-12 6:13 ` Stefan Monnier
2007-09-12 9:20 ` Leschinsky Oleg
[not found] ` <mailman.747.1189588823.18990.help-gnu-emacs@gnu.org>
2007-09-12 20:04 ` Stefan Monnier
2007-09-13 8:23 ` Leschinsky Oleg [this message]
2007-09-13 19:06 ` Andreas Röhler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ejh3km7t.fsf@leschinsky.in.ua \
--to=helge@leschinsky.in.ua \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.