[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: did the abbrev mechanism ever expand «two words» to «two different w
From: |
Stefan Monnier |
Subject: |
Re: did the abbrev mechanism ever expand «two words» to «two different words». |
Date: |
Thu, 07 Jan 2021 15:36:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> An “abbrev” is a word that has been defined to “expand” into a specified
> “expansion”. When you insert a word-separator character following the
> abbrev, that expands the abbrev—replacing the abbrev with its expansion.
> For example, if ‘foo’ is defined as an abbrev expanding to ‘find outer
> otter’, then typing ‘f o o .’ will insert ‘find outer otter.’.
>
> This mean a word-separator character cannot be part of an abbrev.
That's true for the default behavior.
Since Emacs-24, abbrev tables do support abbrevs whose name includes
non-word characters, but it requires extra work on the part of the user
in order to characterize the possible names via the `:regexp` property
(see `C-h o define-abbrev-table`).
Stefan
- did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/07
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Eli Zaretskii, 2021/01/07
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/07
- Re: did the abbrev mechanism ever expand «two words» to «two different words».,
Stefan Monnier <=
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Eli Zaretskii, 2021/01/07
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Robert Pluim, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Robert Pluim, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Robert Pluim, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Stefan Monnier, 2021/01/08
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/08