bug-gnu-emacs
[Top][All Lists]
Advanced

[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 15:03:07 +0100

>>>>> On Wed, 13 Jan 2021 14:18:37 +0100, Uwe Brauer <oub@mat.ucm.es> said:

    >> Uwe Brauer <oub@mat.ucm.es> writes:

    >> 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))))

    Uwe> Ok I did not think that through, you were referring to 
    Uwe> (setq local-abbrev-table (list my-abbrev-table 
fundamental-mode-abbrev-table))

    Uwe> And the question is what comes first in that list, right?

    Uwe> You asked whether to take the first or all elements of the list, would
    Uwe> it be very resource consuming to take all?

Not really, but people might find it confusing when 'add a local
abbrev' results in modifying more than one abbrev table.

Robert





reply via email to

[Prev in Thread] Current Thread [Next in Thread]