[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: |
Uwe Brauer |
Subject: |
Re: did the abbrev mechanism ever expand «two words» to «two different words». |
Date: |
Fri, 08 Jan 2021 14:28:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "RP" == Robert Pluim <rpluim@gmail.com> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> Thanks, I read the documentation but I am unable to figure out, what
>> regexp has to be used for that regexp I should use in order to make a
>> two word expansion work.
>>
>> All regexp I tried returned error.
>>
>> So this
>>
>> (define-abbrev-table 'fundamental-mode-abbrev-table
>> '(
>> ("a que" "a qué" :regexp 1 :count 0)))
>>
>>
>> Does not return error but does not work as well.
>>
> You've forgotten the 'hook' argument in the abbrev definition. Also,
> :regexp is a property for the whole table, so you need something like
> this:
> (define-abbrev-table 'fundamental-mode-abbrev-table
> '(
> ("a que" "a qué" nil :count 0))
> "Uwe's table"
> :regexp "\\(\\w+ ?\\w+\\)")
> (I agree the documentation could be clearer)
Thanks but it did not work.
I am using emacs (28) master
commit
"84ec57fe06e187f41a3546131d5dae3b185c3511"
I overwrote my complete fundamental-mode-abbrev-table
with your suggestion and restarted emacs
(BTW edit-abbrev did not show the regexp)
In any case
a que was not expanded to a qué
To make matter worse, I added your suggestion to my old
fundamental-mode-abbrev-table restarted emacs and then *nothing* was
expanded.
I am puzzled
Uwe
smime.p7s
Description: S/MIME cryptographic signature
- 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, 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/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 <=
- 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
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Eric S Fraga, 2021/01/09
- Re: did the abbrev mechanism ever expand «two words» to «two different words»., Uwe Brauer, 2021/01/09
- [BUG? write-abbrev-file destroys this construction] (was: did the abbrev mechanism ever expand «two words» to «two different words».), Uwe Brauer, 2021/01/09
Re: did the abbrev mechanism ever expand «two words» to «two different words»., Richard Stallman, 2021/01/09