[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45693: [two word expansion works, but write-abbrev-file destroys it]
From: |
Robert Pluim |
Subject: |
bug#45693: [two word expansion works, but write-abbrev-file destroys it] |
Date: |
Wed, 13 Jan 2021 11:09:53 +0100 |
Uwe Brauer <oub@mat.ucm.es> writes:
>> Uwe Brauer <oub@mat.ucm.es> writes:
>
>> Thatʼs under the control of your code, no? Itʼs whatever does 'setq
>> local-abbrev-table (list ... ...)'
>
>
> That is what I expect. I have
> (define-minor-mode american-minor-mode
> nil nil nil nil
> (setq local-abbrev-table
> (if american-minor-mode
> american-minor-mode-abbrev-table)))
>
> Now if in LaTeX (mayor) mode (which has its own local-abbrev-table)
> I turn on the american mode, in my understanding the local-abbrev-table
> of american minor mode should be first in the list. At least if I add an
> abbrev (via flyspell) it is added to the amercian-minor-mode-abbrev-table
> not to the latex-mode-abbrev-table.
>
> If that is the case I would say yes to your question, but I am not sure
> how to check that it is indeed the first in the list. (I only know it is
> «activated»)
Based on the code above, there is no list: youʼre unconditionally
setting local-abbrev-table to a single table. You'd want something
like:
(define-minor-mode american-minor-mode
nil nil nil nil
(setq local-abbrev-table
(if american-minor-mode
(list american-minor-mode-abbrev-table local-abbrev-table))))
which would then fail when adding abbrevs, of course.
Robert
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], (continued)
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/12
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Robert Pluim, 2021/01/12
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/12
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/12
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Robert Pluim, 2021/01/12
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Robert Pluim, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Robert Pluim, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it],
Robert Pluim <=
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Robert Pluim, 2021/01/13
- bug#45693: [two word expansion works, but write-abbrev-file destroys it], Uwe Brauer, 2021/01/13